IPath packageRootPath = locations[i].getPackageRootPath(); if (packageRootPath != null) { element.setAttribute("pkgRoot", packageRootPath.toString()); //$NON-NLS-1$
IPath packageRootPath = locations[i].getPackageRootPath(); if (packageRootPath != null) { element.setAttribute("pkgRoot", packageRootPath.toString()); //$NON-NLS-1$
location.getSystemLibraryPath(), location.getSystemLibrarySourcePath(), location.getPackageRootPath()); final IRuntimeClasspathEntry rtcpEntry = new RuntimeClasspathEntry(cpEntry);
newPath= systemLib.getSystemLibrarySourcePath(); } else if (variable.equals(JavaRuntime.JRESRCROOT_VARIABLE)){ newPath= systemLib.getPackageRootPath();
newPath= systemLib.getSystemLibrarySourcePath(); } else if (variable.equals(JavaRuntime.JRESRCROOT_VARIABLE)){ newPath= systemLib.getPackageRootPath();
/** * Creates a new library standin on the given library location. */ public LibraryStandin(LibraryLocation libraryLocation) { fSystemLibrary= libraryLocation.getSystemLibraryPath(); setSystemLibrarySourcePath(libraryLocation.getSystemLibrarySourcePath()); setPackageRootPath(libraryLocation.getPackageRootPath()); setJavadocLocation(libraryLocation.getJavadocLocation()); }
@Override public boolean equals(Object obj) { if (obj instanceof LibraryLocation) { LibraryLocation lib = (LibraryLocation)obj; return getSystemLibraryPath().equals(lib.getSystemLibraryPath()) && equals(getSystemLibrarySourcePath(), lib.getSystemLibrarySourcePath()) && equals(getExternalAnnotationsPath(), lib.getExternalAnnotationsPath()) && equals(getPackageRootPath(), lib.getPackageRootPath()) && LaunchingPlugin.sameURL(getJavadocLocation(), lib.getJavadocLocation()); } return false; }
@Override public boolean equals(Object obj) { if (obj instanceof LibraryLocation) { LibraryLocation lib = (LibraryLocation)obj; return getSystemLibraryPath().equals(lib.getSystemLibraryPath()) && equals(getSystemLibrarySourcePath(), lib.getSystemLibrarySourcePath()) && equals(getExternalAnnotationsPath(), lib.getExternalAnnotationsPath()) && equals(getPackageRootPath(), lib.getPackageRootPath()) && LaunchingPlugin.sameURL(getJavadocLocation(), lib.getJavadocLocation()); } return false; }
LibraryLocation location = new LibraryLocation(this.jarFile, Path.EMPTY, Path.EMPTY); IClasspathEntry cpEntry = JavaCore.newLibraryEntry(location.getSystemLibraryPath(), location.getSystemLibrarySourcePath(), location.getPackageRootPath()); location = new LibraryLocation(path, Path.EMPTY, Path.EMPTY); cpEntry = JavaCore.newLibraryEntry(location.getSystemLibraryPath(), location.getSystemLibrarySourcePath(), location.getPackageRootPath()); rtcpEntry = new RuntimeClasspathEntry(cpEntry);
attributes = new IClasspathAttribute[]{JavaCore.newClasspathAttribute(IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME, javadocLocation.toExternalForm())}; IClasspathEntry cpe = JavaCore.newLibraryEntry(libraryPath, location.getSystemLibraryPath(), location.getPackageRootPath(), EMPTY_RULES, attributes, false); IRuntimeClasspathEntry resolved = new RuntimeClasspathEntry(cpe); resolved.setClasspathProperty(kind); if (sourcePath != null && !sourcePath.isEmpty()) { resolved.setSourceAttachmentPath(sourcePath); resolved.setSourceAttachmentRootPath(location.getPackageRootPath());
attributes = new IClasspathAttribute[]{JavaCore.newClasspathAttribute(IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME, javadocLocation.toExternalForm())}; IClasspathEntry cpe = JavaCore.newLibraryEntry(libraryPath, location.getSystemLibraryPath(), location.getPackageRootPath(), EMPTY_RULES, attributes, false); IRuntimeClasspathEntry resolved = new RuntimeClasspathEntry(cpe); resolved.setClasspathProperty(kind); if (sourcePath != null && !sourcePath.isEmpty()) { resolved.setSourceAttachmentPath(sourcePath); resolved.setSourceAttachmentRootPath(location.getPackageRootPath());
sourceRootPaths[i]= dflts[i].getPackageRootPath(); } else { sourcePaths[i]= Path.EMPTY; libraryPaths[i]= locations[i].getSystemLibraryPath(); sourcePaths[i]= locations[i].getSystemLibrarySourcePath(); sourceRootPaths[i]= locations[i].getPackageRootPath(); javadocLocations[i]= locations[i].getJavadocLocation(); annotationPaths[i] = locations[i].getExternalAnnotationsPath();
sourceRootPaths[i]= dflts[i].getPackageRootPath(); } else { sourcePaths[i]= Path.EMPTY; libraryPaths[i]= locations[i].getSystemLibraryPath(); sourcePaths[i]= locations[i].getSystemLibrarySourcePath(); sourceRootPaths[i]= locations[i].getPackageRootPath(); javadocLocations[i]= locations[i].getJavadocLocation(); annotationPaths[i] = locations[i].getExternalAnnotationsPath();
sourcePath = null; IPath rootPath = libs[i].getPackageRootPath(); if (rootPath.isEmpty()) { rootPath = null;
sourcePath = null; IPath rootPath = libs[i].getPackageRootPath(); if (rootPath.isEmpty()) { rootPath = null;
IRuntimeClasspathEntry entry = JavaRuntime.newArchiveRuntimeClasspathEntry(library.getSystemLibraryPath()); entry.setSourceAttachmentPath(library.getSystemLibrarySourcePath()); entry.setSourceAttachmentRootPath(library.getPackageRootPath()); IClasspathEntry classpathEntry = BuildPathDialogAccess.configureSourceAttachment(fLibraryViewer.getControl().getShell(), entry.getClasspathEntry()); if (classpathEntry != null) {