/** * Constructs a new runtime classpath entry based on the * (build) classpath entry. * * @param entry the associated classpath entry */ public RuntimeClasspathEntry(IClasspathEntry entry) { switch (entry.getEntryKind()) { case IClasspathEntry.CPE_PROJECT: setType(PROJECT); break; case IClasspathEntry.CPE_LIBRARY: setType(ARCHIVE); break; case IClasspathEntry.CPE_VARIABLE: setType(VARIABLE); break; default: throw new IllegalArgumentException(NLS.bind(LaunchingMessages.RuntimeClasspathEntry_Illegal_classpath_entry__0__1, new String[] {entry.toString()})); } setClasspathEntry(entry); initializeClasspathProperty(); }
/** * Constructs a new container entry in the context of the given project * * @param entry classpath entry * @param classpathProperty this entry's classpath property */ public RuntimeClasspathEntry(IClasspathEntry entry, int classpathProperty) { switch (entry.getEntryKind()) { case IClasspathEntry.CPE_CONTAINER: setType(CONTAINER); break; case IClasspathEntry.CPE_PROJECT: setType(PROJECT); break; case IClasspathEntry.CPE_LIBRARY: setType(ARCHIVE); break; case IClasspathEntry.CPE_VARIABLE: setType(VARIABLE); break; default: throw new IllegalArgumentException(NLS.bind(LaunchingMessages.RuntimeClasspathEntry_Illegal_classpath_entry__0__1, new String[] { entry.toString() })); } setClasspathEntry(entry); setClasspathProperty(classpathProperty); }
/** * Constructs a new runtime classpath entry based on the * (build) classpath entry. * * @param entry the associated classpath entry */ public RuntimeClasspathEntry(IClasspathEntry entry) { switch (entry.getEntryKind()) { case IClasspathEntry.CPE_PROJECT: setType(PROJECT); break; case IClasspathEntry.CPE_LIBRARY: setType(ARCHIVE); break; case IClasspathEntry.CPE_VARIABLE: setType(VARIABLE); break; default: throw new IllegalArgumentException(NLS.bind(LaunchingMessages.RuntimeClasspathEntry_Illegal_classpath_entry__0__1, new String[] {entry.toString()})); } setClasspathEntry(entry); initializeClasspathProperty(); }
/** * Constructs a new container entry in the context of the given project * * @param entry classpath entry * @param classpathProperty this entry's classpath property */ public RuntimeClasspathEntry(IClasspathEntry entry, int classpathProperty) { switch (entry.getEntryKind()) { case IClasspathEntry.CPE_CONTAINER: setType(CONTAINER); break; default: throw new IllegalArgumentException(NLS.bind(LaunchingMessages.RuntimeClasspathEntry_Illegal_classpath_entry__0__1, new String[] {entry.toString()})); } setClasspathEntry(entry); setClasspathProperty(classpathProperty); }
setType(Integer.parseInt(root.getAttribute("type"))); //$NON-NLS-1$ } catch (NumberFormatException e) { abort(LaunchingMessages.RuntimeClasspathEntry_Unable_to_recover_runtime_class_path_entry_type_2, e);
setType(Integer.parseInt(root.getAttribute("type"))); //$NON-NLS-1$ } catch (NumberFormatException e) { abort(LaunchingMessages.RuntimeClasspathEntry_Unable_to_recover_runtime_class_path_entry_type_2, e);