/** * @see IRuntimeClasspathEntry#getResource() */ @Override public IResource getResource() { switch (getType()) { case CONTAINER: case VARIABLE: return null; default: return getResource(getPath()); } }
/** * @see IRuntimeClasspathEntry#getResource() */ @Override public IResource getResource() { switch (getType()) { case CONTAINER: case VARIABLE: return null; default: return getResource(getPath()); } }
/** * @see IRuntimeClasspathEntry#getVariableName() */ @Override public String getVariableName() { if (getType() == IRuntimeClasspathEntry.VARIABLE || getType() == IRuntimeClasspathEntry.CONTAINER) { return getPath().segment(0); } return null; }
/** * @see IRuntimeClasspathEntry#getVariableName() */ @Override public String getVariableName() { if (getType() == IRuntimeClasspathEntry.VARIABLE || getType() == IRuntimeClasspathEntry.CONTAINER) { return getPath().segment(0); } return null; }
@Override public void setExternalAnnotationsPath(IPath path) { if (path != null && path.isEmpty()) { path = null; } updateClasspathEntry(getPath(), getSourceAttachmentPath(), getSourceAttachmentRootPath(), path); }
switch (getType()) { case PROJECT : node.setAttribute("projectName", getPath().lastSegment()); //$NON-NLS-1$ break; case ARCHIVE : IResource res = getResource(); if (res == null) { node.setAttribute("externalArchive", getPath().toString()); //$NON-NLS-1$ } else { node.setAttribute("internalArchive", res.getFullPath().toString()); //$NON-NLS-1$ case VARIABLE : case CONTAINER : node.setAttribute("containerPath", getPath().toString()); //$NON-NLS-1$ break;
switch (getType()) { case PROJECT : node.setAttribute("projectName", getPath().lastSegment()); //$NON-NLS-1$ break; case ARCHIVE : IResource res = getResource(); if (res == null) { node.setAttribute("externalArchive", getPath().toString()); //$NON-NLS-1$ } else { node.setAttribute("internalArchive", res.getFullPath().toString()); //$NON-NLS-1$ case VARIABLE : case CONTAINER : node.setAttribute("containerPath", getPath().toString()); //$NON-NLS-1$ break;
@Override public void setExternalAnnotationsPath(IPath path) { if (path != null && path.isEmpty()) { path = null; } updateClasspathEntry(getPath(), getSourceAttachmentPath(), getSourceAttachmentRootPath(), path); }
@Override public void setSourceAttachmentRootPath(IPath path) { if (path != null && path.isEmpty()) { path = null; } updateClasspathEntry(getPath(), getSourceAttachmentPath(), path, getExternalAnnotationsPath()); }
/** * @see IRuntimeClasspathEntry#setSourceAttachmentPath(IPath) */ @Override public void setSourceAttachmentPath(IPath path) { if (path != null && path.isEmpty()) { path = null; } updateClasspathEntry(getPath(), path, getSourceAttachmentRootPath(), getExternalAnnotationsPath()); }
/** * @see IRuntimeClasspathEntry#setSourceAttachmentPath(IPath) */ @Override public void setSourceAttachmentPath(IPath path) { if (path != null && path.isEmpty()) { path = null; } updateClasspathEntry(getPath(), path, getSourceAttachmentRootPath(), getExternalAnnotationsPath()); }
@Override public void setSourceAttachmentRootPath(IPath path) { if (path != null && path.isEmpty()) { path = null; } updateClasspathEntry(getPath(), getSourceAttachmentPath(), path, getExternalAnnotationsPath()); }
if (getType() == r.getType() && getClasspathProperty() == r.getClasspathProperty()) { if (getType() == IRuntimeClasspathEntry.CONTAINER) { String id = getPath().segment(0); ClasspathContainerInitializer initializer = JavaCore.getClasspathContainerInitializer(id); IJavaProject javaProject1 = getJavaProject(); if (initializer == null || javaProject1 == null || javaProject2 == null) { return getPath().equals(r.getPath()); Object comparisonID1 = initializer.getComparisonID(getPath(), javaProject1); Object comparisonID2 = initializer.getComparisonID(r.getPath(), javaProject2); return comparisonID1.equals(comparisonID2); } else if (getPath() != null && getPath().equals(r.getPath())) { IPath sa1 = getSourceAttachmentPath(); IPath root1 = getSourceAttachmentRootPath();
if (getType() == r.getType() && getClasspathProperty() == r.getClasspathProperty()) { if (getType() == IRuntimeClasspathEntry.CONTAINER) { String id = getPath().segment(0); ClasspathContainerInitializer initializer = JavaCore.getClasspathContainerInitializer(id); IJavaProject javaProject1 = getJavaProject(); if (initializer == null || javaProject1 == null || javaProject2 == null) { return getPath().equals(r.getPath()); Object comparisonID1 = initializer.getComparisonID(getPath(), javaProject1); Object comparisonID2 = initializer.getComparisonID(r.getPath(), javaProject2); return comparisonID1.equals(comparisonID2); } else if (getPath() != null && getPath().equals(r.getPath())) { IPath sa1 = getSourceAttachmentPath(); IPath root1 = getSourceAttachmentRootPath();
path = getPath(); break; case VARIABLE :
path = getPath(); break; case VARIABLE :