use of org.eclipse.core.runtime.preferences.IScopeContext in project erlide_eclipse by erlang.
the class ErlideUIPlugin method getPrefsNode.
public static IEclipsePreferences getPrefsNode() {
final String qualifier = ErlideUIPlugin.PLUGIN_ID;
final IScopeContext context = InstanceScope.INSTANCE;
final IEclipsePreferences eclipsePreferences = context.getNode(qualifier);
return eclipsePreferences;
}
use of org.eclipse.core.runtime.preferences.IScopeContext in project erlide_eclipse by erlang.
the class ErlangOutlinePage method getPrefsNode.
public static IEclipsePreferences getPrefsNode() {
final String qualifier = ErlideUIPlugin.PLUGIN_ID;
final IScopeContext context = InstanceScope.INSTANCE;
final IEclipsePreferences eclipsePreferences = context.getNode(qualifier);
return eclipsePreferences;
}
use of org.eclipse.core.runtime.preferences.IScopeContext in project erlide_eclipse by erlang.
the class CodeAssistPreferences method getNode.
public static IEclipsePreferences getNode() {
final IScopeContext context = InstanceScope.INSTANCE;
final IEclipsePreferences eclipsePreferences = context.getNode(CodeAssistPreferences.QUALIFIER);
return eclipsePreferences;
}
use of org.eclipse.core.runtime.preferences.IScopeContext in project erlide_eclipse by erlang.
the class PreferencesHelper method hasAnyAtLowestScope.
public boolean hasAnyAtLowestScope() {
final IScopeContext sc = storeContext;
final IEclipsePreferences p = sc.getNode(qualifier);
if (p != null) {
try {
final String[] keys = p.keys();
return keys.length > 0;
} catch (final BackingStoreException e) {
}
}
return false;
}
use of org.eclipse.core.runtime.preferences.IScopeContext in project erlide_eclipse by erlang.
the class PreferencesHelper method getNextContexts.
public static IScopeContext[] getNextContexts(final IScopeContext[] list, final IScopeContext item) {
final List<IScopeContext> result = new ArrayList<>();
boolean found = false;
for (final IScopeContext ctx : list) {
if (found) {
result.add(ctx);
}
if (ctx.equals(item)) {
found = true;
}
}
return result.toArray(new IScopeContext[result.size()]);
}
Aggregations