Element element = doc.createElement("libraryLocation"); //$NON-NLS-1$ element.setAttribute("jreJar", locations[i].getSystemLibraryPath().toString()); //$NON-NLS-1$ element.setAttribute("jreSrc", locations[i].getSystemLibrarySourcePath().toString()); //$NON-NLS-1$ IPath annotationsPath = locations[i].getExternalAnnotationsPath(); if (null != annotationsPath && !annotationsPath.isEmpty()) {
Element element = doc.createElement("libraryLocation"); //$NON-NLS-1$ element.setAttribute("jreJar", locations[i].getSystemLibraryPath().toString()); //$NON-NLS-1$ element.setAttribute("jreSrc", locations[i].getSystemLibrarySourcePath().toString()); //$NON-NLS-1$ IPath annotationsPath = locations[i].getExternalAnnotationsPath(); if (null != annotationsPath && !annotationsPath.isEmpty()) {
final IClasspathEntry cpEntry = JavaCore.newLibraryEntry( location.getSystemLibraryPath(), location.getSystemLibrarySourcePath(), location.getPackageRootPath()); final IRuntimeClasspathEntry rtcpEntry = new RuntimeClasspathEntry(cpEntry);
newPath= systemLib.getSystemLibraryPath(); } else if (variable.equals(JavaRuntime.JRESRC_VARIABLE)) { newPath= systemLib.getSystemLibrarySourcePath(); } else if (variable.equals(JavaRuntime.JRESRCROOT_VARIABLE)){ newPath= systemLib.getPackageRootPath();
newPath= systemLib.getSystemLibraryPath(); } else if (variable.equals(JavaRuntime.JRESRC_VARIABLE)) { 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);
sourcePaths[i]= dflts[i].getSystemLibrarySourcePath(); if (sourcePaths[i].toFile().isFile()) { sourceRootPaths[i]= dflts[i].getPackageRootPath(); for (int i = 0; i < locations.length; i++) { libraryPaths[i]= locations[i].getSystemLibraryPath(); sourcePaths[i]= locations[i].getSystemLibrarySourcePath(); sourceRootPaths[i]= locations[i].getPackageRootPath(); javadocLocations[i]= locations[i].getJavadocLocation();
sourcePaths[i]= dflts[i].getSystemLibrarySourcePath(); if (sourcePaths[i].toFile().isFile()) { sourceRootPaths[i]= dflts[i].getPackageRootPath(); for (int i = 0; i < locations.length; i++) { libraryPaths[i]= locations[i].getSystemLibraryPath(); sourcePaths[i]= locations[i].getSystemLibrarySourcePath(); sourceRootPaths[i]= locations[i].getPackageRootPath(); javadocLocations[i]= locations[i].getJavadocLocation();
for (int i = 0; i < libs.length; i++) { if (!libs[i].getSystemLibraryPath().isEmpty()) { IPath sourcePath = libs[i].getSystemLibrarySourcePath(); if (sourcePath.isEmpty()) { sourcePath = null;
for (int i = 0; i < libs.length; i++) { if (!libs[i].getSystemLibraryPath().isEmpty()) { IPath sourcePath = libs[i].getSystemLibrarySourcePath(); if (sourcePath.isEmpty()) { sourcePath = null;
IRuntimeClasspathEntry resolved = new RuntimeClasspathEntry(cpe); resolved.setClasspathProperty(kind); IPath sourcePath = location.getSystemLibrarySourcePath(); if (sourcePath != null && !sourcePath.isEmpty()) { resolved.setSourceAttachmentPath(sourcePath);
IRuntimeClasspathEntry resolved = new RuntimeClasspathEntry(cpe); resolved.setClasspathProperty(kind); IPath sourcePath = location.getSystemLibrarySourcePath(); if (sourcePath != null && !sourcePath.isEmpty()) { resolved.setSourceAttachmentPath(sourcePath);
entry.setSourceAttachmentPath(library.getSystemLibrarySourcePath()); entry.setSourceAttachmentRootPath(library.getPackageRootPath()); IClasspathEntry classpathEntry = BuildPathDialogAccess.configureSourceAttachment(fLibraryViewer.getControl().getShell(), entry.getClasspathEntry());