@Override public List<CPListElement> getInsertedElements() { List<CPListElement> result= super.getInsertedElements(); if (getEntryToEdit().getOrginalPath() == null) result.add(getEntryToEdit()); return result; }
/** * {@inheritDoc} */ public List getInsertedElements() { List result= super.getInsertedElements(); if (getEntryToEdit().getOrginalPath() == null) result.add(getEntryToEdit()); return result; }
@Override public List<CPListElement> getInsertedElements() { List<CPListElement> result= super.getInsertedElements(); if (getEntryToEdit().getOrginalPath() == null) result.add(getEntryToEdit()); return result; }
/** * Sets the default compiler compliance options iff <code>modifiedClassPathEntries</code> * contains a classpath container entry that is modified or new and that points to an execution * environment. Does nothing if the EE or the options could not be resolved. * * @param javaProject the Java project * @param modifiedClassPathEntries a list of {@link CPListElement} * * @see #getEEOptions(IExecutionEnvironment) * * @since 3.5 */ public static void setEEComplianceOptions(IJavaProject javaProject, List<CPListElement> modifiedClassPathEntries) { for (Iterator<CPListElement> iter= modifiedClassPathEntries.iterator(); iter.hasNext();) { CPListElement entry= iter.next(); if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) { IPath path= entry.getPath(); if (! path.equals(entry.getOrginalPath())) { String eeID= JavaRuntime.getExecutionEnvironmentId(path); if (eeID != null) { setEEComplianceOptions(javaProject, eeID, null); return; } } } } }
/** * Sets the default compiler compliance options iff <code>modifiedClassPathEntries</code> * contains a classpath container entry that is modified or new and that points to an execution * environment. Does nothing if the EE or the options could not be resolved. * * @param javaProject the Java project * @param modifiedClassPathEntries a list of {@link CPListElement} * * @see #getEEOptions(IExecutionEnvironment) * * @since 3.5 */ public static void setEEComplianceOptions(IJavaProject javaProject, List<CPListElement> modifiedClassPathEntries) { for (Iterator<CPListElement> iter= modifiedClassPathEntries.iterator(); iter.hasNext();) { CPListElement entry= iter.next(); if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) { IPath path= entry.getPath(); if (! path.equals(entry.getOrginalPath())) { String eeID= JavaRuntime.getExecutionEnvironmentId(path); if (eeID != null) { setEEComplianceOptions(javaProject, eeID, null); return; } } } } }
buf.append(fNewLabel); } else if (cpentry.getOrginalPath() == null) { buf.append(' '); buf.append(fNewLabel);
buf.append(fNewLabel); } else if (cpentry.getOrginalPath() == null) { buf.append(' '); buf.append(fNewLabel);
buf.append(fNewLabel); } else if (cpentry.getOrginalPath() == null) { buf.append(' '); buf.append(fNewLabel);
IPath orginalPath= entry.getOrginalPath(); if (orginalPath == null) { if (!folder.exists()) {
IPath orginalPath= entry.getOrginalPath(); if (orginalPath == null) { if (!folder.exists()) { if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) { IPath path= entry.getPath(); if (! path.equals(entry.getOrginalPath())) { String eeID= JavaRuntime.getExecutionEnvironmentId(path); if (eeID != null) {
IPath orginalPath= entry.getOrginalPath(); if (orginalPath == null) { if (!folder.exists()) { if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) { IPath path= entry.getPath(); if (! path.equals(entry.getOrginalPath())) { String eeID= JavaRuntime.getExecutionEnvironmentId(path); if (eeID != null) {