Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 106361
Collapse All | Expand All

(-)ui/org/eclipse/jdt/internal/debug/ui/jres/VMLibraryBlock.java (-3 / +8 lines)
Lines 460-471 Link Here
460
	 * The "default" button has been toggled
460
	 * The "default" button has been toggled
461
	 */
461
	 */
462
	protected void handleRestoreDefault() {
462
	protected void handleRestoreDefault() {
463
		File installLocation = getVMInstall().getInstallLocation();
463
		final IVMInstall vmInstall = getVMInstall();
464
		LibraryLocation[] libs = null;
464
		LibraryLocation[] libs = null;
465
		if (installLocation == null) {
465
		if (vmInstall == null) {
466
			libs = new LibraryLocation[0];
466
			libs = new LibraryLocation[0];
467
		} else {
467
		} else {
468
			libs = getVMInstallType().getDefaultLibraryLocations(installLocation);
468
			File installLocation = vmInstall.getInstallLocation();
469
			if (installLocation == null) {
470
				libs = new LibraryLocation[0];
471
			} else {
472
				libs = getVMInstallType().getDefaultLibraryLocations(installLocation);
473
			}
469
		}
474
		}
470
		fLibraryContentProvider.setLibraries(libs);
475
		fLibraryContentProvider.setLibraries(libs);
471
		update();
476
		update();

Return to bug 106361