Examples of IScopeContext


Examples of org.eclipse.core.runtime.preferences.IScopeContext

        return fProblemMarkerManager;
    }

    public static IEclipsePreferences getPrefsNode() {
        final String qualifier = ErlideUIPlugin.PLUGIN_ID;
        final IScopeContext context = InstanceScope.INSTANCE;
        final IEclipsePreferences eclipsePreferences = context.getNode(qualifier);
        return eclipsePreferences;
    }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IScopeContext

        ErlLogger.debug("NYI: sorting " + sorting);
    }

    public static IEclipsePreferences getPrefsNode() {
        final String qualifier = ErlideUIPlugin.PLUGIN_ID;
        final IScopeContext context = InstanceScope.INSTANCE;
        final IEclipsePreferences eclipsePreferences = context.getNode(qualifier);
        return eclipsePreferences;
    }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IScopeContext

    private int delayInMS;
    private String erlangTriggers;
    private String eDocTriggers;

    public static IEclipsePreferences getNode() {
        final IScopeContext context = InstanceScope.INSTANCE;
        final IEclipsePreferences eclipsePreferences = context.getNode(QUALIFIER);
        return eclipsePreferences;
    }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IScopeContext

                ConfigurationScope.INSTANCE, DefaultScope.INSTANCE }, new ProjectScope(
                project));
    }

    public static PreferencesHelper getHelper(final String qualifier) {
        final IScopeContext instanceScope = InstanceScope.INSTANCE;
        return new PreferencesHelper(qualifier, new IScopeContext[] { instanceScope,
                ConfigurationScope.INSTANCE, DefaultScope.INSTANCE }, instanceScope);
    }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IScopeContext

    public void flush() throws BackingStoreException {
        storeContext.getNode(qualifier).flush();
    }

    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) {
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IScopeContext

        }
        return false;
    }

    public void removeAllAtLowestScope() {
        final IScopeContext sc = storeContext;
        final IEclipsePreferences p = sc.getNode(qualifier);
        if (p != null) {
            try {
                final String[] keys = p.keys();
                for (final String key : keys) {
                    remove(key, sc);
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IScopeContext

        IEclipsePreferences pref;
        synchronized (projectPrefs) {
            pref = (IEclipsePreferences) projectPrefs.get(project);
        }
        if (pref == null) {
            IScopeContext projectScope = new ProjectScope(project);
            pref = projectScope.getNode(IvyPlugin.ID);
        }
        String retrieveSetup = pref.get(PREF_ID, null);
        if (retrieveSetup == null) {
            return new ArrayList();
        }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IScopeContext

        final String retrieveSetup = new String(out.toByteArray());

        synchronized (projectPrefs) {
            IEclipsePreferences pref = (IEclipsePreferences) projectPrefs.get(project);
            if (pref == null) {
                IScopeContext projectScope = new ProjectScope(project);
                pref = projectScope.getNode(IvyPlugin.ID);
                projectPrefs.put(project, pref);
            }
            pref.put(PREF_ID, retrieveSetup);
        }
    }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IScopeContext

 
  
  public void initializeDefaultPreferences() {

   
    IScopeContext context = new DefaultScope();
    IEclipsePreferences node = context.getNode(UIPlugin.getDefault()
        .getBundle().getSymbolicName());
    node.put(IWorkbenchPreferenceConstants.OPEN_NEW_PERSPECTIVE,
        IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLACE);

    // Deprecated but kept for backwards compatibility
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IScopeContext

    AbstractPreferenceInitializer {
 
 

  public void initializeDefaultPreferences() {
    IScopeContext context = new DefaultScope();
    IEclipsePreferences node = context.getNode(WorkbenchPlugin
        .getDefault().getBundle().getSymbolicName());

    node
        .putBoolean(IPreferenceConstants.SHOULD_PROMPT_FOR_ENABLEMENT,
            true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.