Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/InstancePreferences.java')
-rw-r--r--bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/InstancePreferences.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/InstancePreferences.java b/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/InstancePreferences.java
index 2b2a0676e..341751fe3 100644
--- a/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/InstancePreferences.java
+++ b/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/InstancePreferences.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2012 IBM Corporation and others.
+ * Copyright (c) 2004, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -71,10 +71,12 @@ public class InstancePreferences extends EclipsePreferences {
// accessed before the instance location is set.
}
+ @Override
protected boolean isAlreadyLoaded(IEclipsePreferences node) {
return loadedNodes.contains(node.name());
}
+ @Override
protected void loaded() {
loadedNodes.add(name());
}
@@ -84,6 +86,7 @@ public class InstancePreferences extends EclipsePreferences {
* doesn't exist then assume that conversion has already occurred
* and do nothing.
*/
+ @Override
protected void loadLegacy() {
IPath path = new Path(absolutePath());
if (path.segmentCount() != 2)
@@ -163,6 +166,7 @@ public class InstancePreferences extends EclipsePreferences {
PrefsMessages.message("Unable to delete legacy preferences file: " + prefFile); //$NON-NLS-1$
}
+ @Override
protected IPath getLocation() {
if (location == null)
location = computeLocation(getBaseLocation(), qualifier);
@@ -172,6 +176,7 @@ public class InstancePreferences extends EclipsePreferences {
/*
* Return the node at which these preferences are loaded/saved.
*/
+ @Override
protected IEclipsePreferences getLoadLevel() {
if (loadLevel == null) {
if (qualifier == null)
@@ -205,6 +210,7 @@ public class InstancePreferences extends EclipsePreferences {
}
}
+ @Override
protected EclipsePreferences internalCreate(EclipsePreferences nodeParent, String nodeName, Object context) {
return new InstancePreferences(nodeParent, nodeName);
}

Back to the top