/** * Initializes the classpath property based on this entry's type. */ private void initializeClasspathProperty() { switch (getType()) { case VARIABLE: if (getVariableName().equals(JavaRuntime.JRELIB_VARIABLE)) { setClasspathProperty(STANDARD_CLASSES); } else { setClasspathProperty(USER_CLASSES); } break; case PROJECT: case ARCHIVE: setClasspathProperty(USER_CLASSES); break; default: break; } }
/** * Initializes the classpath property based on this entry's type. */ private void initializeClasspathProperty() { switch (getType()) { case VARIABLE: if (getVariableName().equals(JavaRuntime.JRELIB_VARIABLE)) { setClasspathProperty(STANDARD_CLASSES); } else { setClasspathProperty(USER_CLASSES); } break; case PROJECT: case ARCHIVE: setClasspathProperty(USER_CLASSES); break; default: break; } }
/** * 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); }
/** * 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); }
setClasspathProperty(Integer.parseInt(root.getAttribute("path"))); //$NON-NLS-1$ } catch (NumberFormatException e) { abort(LaunchingMessages.RuntimeClasspathEntry_Unable_to_recover_runtime_class_path_entry_location_3, e);
setClasspathProperty(Integer.parseInt(root.getAttribute("path"))); //$NON-NLS-1$ } catch (NumberFormatException e) { abort(LaunchingMessages.RuntimeClasspathEntry_Unable_to_recover_runtime_class_path_entry_location_3, e);