LibraryLocation[] defaultLibs = vm.getVMInstallType().getDefaultLibraryLocations(vm.getInstallLocation()); boolean overrideJavadoc = false; if (libs == null) {
LibraryLocation[] defaultLibs = vm.getVMInstallType().getDefaultLibraryLocations(vm.getInstallLocation()); boolean overrideJavadoc = false; if (libs == null) {
/** * The "default" button has been toggled */ public void restoreDefaultLibraries() { LibraryLocation[] libs = null; File installLocation = getHomeDirectory(); if (installLocation == null) { libs = new LibraryLocation[0]; } else { libs = getVMInstallType().getDefaultLibraryLocations(installLocation); } fLibraryContentProvider.setLibraries(libs); update(); }
newLocations = getVMInstallType().getDefaultLibraryLocations(getInstallLocation()); prevLocations = getVMInstallType().getDefaultLibraryLocations(getInstallLocation());
newLocations = getVMInstallType().getDefaultLibraryLocations(getInstallLocation()); prevLocations = getVMInstallType().getDefaultLibraryLocations(getInstallLocation());
/** * Determines if the present setup is the default location s for this JRE * @return true if the current set of locations are the defaults, false otherwise */ protected boolean isDefaultLocations() { LibraryLocation[] libraryLocations = fLibraryContentProvider.getLibraries(); IVMInstall install = getVMInstall(); if (install == null || libraryLocations == null) { return true; } File installLocation = install.getInstallLocation(); if (installLocation != null) { LibraryLocation[] def = getVMInstallType().getDefaultLibraryLocations(installLocation); if (def.length == libraryLocations.length) { for (int i = 0; i < def.length; i++) { if (!def[i].equals(libraryLocations[i])) { return false; } } return true; } } return false; }
install.getVMInstallType().getDefaultLibraryLocations(install.getInstallLocation()))) {
if (!JRERuntimeClasspathEntryResolver.isSameArchives(libraryLocations, install.getVMInstallType().getDefaultLibraryLocations(install.getInstallLocation()))) {
if (!JRERuntimeClasspathEntryResolver.isSameArchives(libraryLocations, install.getVMInstallType().getDefaultLibraryLocations(install.getInstallLocation()))) {
return new LibraryLocation[0]; LibraryLocation[] dflts= vm.getVMInstallType().getDefaultLibraryLocations(installLocation); libraryPaths = new IPath[dflts.length]; sourcePaths = new IPath[dflts.length];
return new LibraryLocation[0]; LibraryLocation[] dflts= vm.getVMInstallType().getDefaultLibraryLocations(installLocation); libraryPaths = new IPath[dflts.length]; sourcePaths = new IPath[dflts.length];