private void processLibraryLocation(LibraryLocation[] libLocations, String label) { for (int l= 0; l < libLocations.length; l++) { LibraryLocation location= libLocations[l]; fLib2Name.put(location.getSystemLibraryPath(), label); } }
@Override public int hashCode() { return getSystemLibraryPath().hashCode(); }
private void processLibraryLocation(LibraryLocation[] libLocations, String label) { for (int l= 0; l < libLocations.length; l++) { LibraryLocation location= libLocations[l]; fLib2Name.put(location.getSystemLibraryPath(), label); } }
@Override public int hashCode() { return getSystemLibraryPath().hashCode(); }
private void processLibraryLocation(LibraryLocation[] libLocations, String label) { for (int l= 0; l < libLocations.length; l++) { LibraryLocation location= libLocations[l]; fLib2Name.put(location.getSystemLibraryPath().toString(), label); } }
private void processLibraryLocation(LibraryLocation[] libLocations, String label) { for (int l= 0; l < libLocations.length; l++) { LibraryLocation location= libLocations[l]; fLib2Name.put(location.getSystemLibraryPath().toString(), label); } }
private void processLibraryLocation(LibraryLocation[] libLocations, String label) { for (int l= 0; l < libLocations.length; l++) { LibraryLocation location= libLocations[l]; fLib2Name.put(location.getSystemLibraryPath().toString(), label); } } private String getFormattedLabel(String name) {
private void processLibraryLocation(LibraryLocation[] libLocations, String label) { for (int l= 0; l < libLocations.length; l++) { LibraryLocation location= libLocations[l]; fLib2Name.put(location.getSystemLibraryPath().toString(), label); } } private String getFormattedLabel(String name) {
private void processLibraryLocation(LibraryLocation[] libLocations, String label) { for (int l= 0; l < libLocations.length; l++) { LibraryLocation location= libLocations[l]; fLib2Name.put(location.getSystemLibraryPath().toString(), label); } } private String getFormattedLabel(String name) {
private void processLibraryLocation(LibraryLocation[] libLocations, String label) { for (int l= 0; l < libLocations.length; l++) { LibraryLocation location= libLocations[l]; fLib2Name.put(location.getSystemLibraryPath().toString(), label); } }
private void processLibraryLocation(LibraryLocation[] libLocations, String label) { for (int l= 0; l < libLocations.length; l++) { LibraryLocation location= libLocations[l]; fLib2Name.put(location.getSystemLibraryPath().toString(), label); } } private String getFormattedLabel(String name) {
private void processLibraryLocation(LibraryLocation[] libLocations, String label) { for (int l= 0; l < libLocations.length; l++) { LibraryLocation location= libLocations[l]; fLib2Name.put(location.getSystemLibraryPath().toOSString(), label); } }
private void processLibraryLocation(LibraryLocation[] libLocations, String label) { for (int l= 0; l < libLocations.length; l++) { LibraryLocation location= libLocations[l]; fLib2Name.put(location.getSystemLibraryPath().toOSString(), label); } }
public static String getBootClasspath(IVMInstall install) { StringBuffer buffer = new StringBuffer(); LibraryLocation[] locations = JavaRuntime.getLibraryLocations(install); for (int i = 0; i < locations.length; i++) { buffer.append(locations[i].getSystemLibraryPath().toOSString()); if (i < locations.length - 1) buffer.append(";"); //$NON-NLS-1$ } return buffer.toString(); }
public static String getBootClasspath(IVMInstall install) { StringBuffer buffer = new StringBuffer(); LibraryLocation[] locations = JavaRuntime.getLibraryLocations(install); for (int i = 0; i < locations.length; i++) { buffer.append(locations[i].getSystemLibraryPath().toOSString()); if (i < locations.length - 1) buffer.append(";"); //$NON-NLS-1$ } return buffer.toString(); }
@Override protected List<IApiTypeContainer> createApiTypeContainers() throws CoreException { List<IApiTypeContainer> libs = new ArrayList<>(fLibraries.length); for (LibraryLocation lib : fLibraries) { libs.add(new StubArchiveApiTypeContainer(this, lib.getSystemLibraryPath().toOSString())); } return libs; }
@Override protected List<IApiTypeContainer> createApiTypeContainers() throws CoreException { List<IApiTypeContainer> libs = new ArrayList<>(fLibraries.length); for (LibraryLocation lib : fLibraries) { libs.add(new ArchiveApiTypeContainer(this, lib.getSystemLibraryPath().toOSString())); } if (fLibraries.length == 0) { if (fLocation != null) { IPath newPath = new Path(fLocation); newPath = newPath.append("jmods").append("java.base.jmod"); //$NON-NLS-1$ //$NON-NLS-2$ if (newPath.toFile().exists()) { libs.add(new ArchiveApiTypeContainer(this, newPath.toOSString())); } } } return libs; }
/** * 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; }