Examples of InstanceScope


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

    return commandContributionItemParam;
  }

  protected List<MavenCommand> loadPreferences() {
    IEclipsePreferences store = new InstanceScope().getNode(Activator.PLUGIN_ID);
    List<MavenCommand> commands = new ArrayList<MavenCommand>();
    int commandNumber = 0;
    String[] keys;
    try {
      keys = store.keys();
View Full Code Here

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

    selectedCommandsId = new HashSet<String>();
    tableItems = new HashMap<String, TableItem>();
  }

  public void init(IWorkbench iworkbench) {
    nodeStore = new InstanceScope().getNode(Activator.PLUGIN_ID);
    setPreferenceStore(Activator.getDefault().getPreferenceStore());

    try {
      loadPreferences();
    } catch (BackingStoreException e) {
View Full Code Here

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

     * @return the preference store
     */
    public IPreferenceStore getPreferenceStore() {
        // Create the preference store lazily.
        if (preferenceStore == null) {
            preferenceStore = new ScopedPreferenceStore(new InstanceScope(),getBundle().getSymbolicName());

        }
        return preferenceStore;
    }
View Full Code Here

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

        catalogs = Collections.emptyList();
        serviceFactory = new ServiceFactoryImpl();
        resolveManager = new ResolveManager2();
       
        // ensure a preference store is around so we can save to it in the shutdown hook
        preferenceStore = new ScopedPreferenceStore(new InstanceScope(), getBundle().getSymbolicName());

        try {
            if (Display.getCurrent() != null) {
                CatalogPlugin.trace("Restoring Local Catalog", null);
            }
View Full Code Here

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

         * @return the preference store
         */
        public synchronized ScopedPreferenceStore getPreferenceStore() {
            // Create the preference store lazily.
            if (preferenceStore == null) {
                preferenceStore = new ScopedPreferenceStore(new InstanceScope(), getBundle()
                        .getSymbolicName());

            }
            return preferenceStore;
        }
View Full Code Here

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

    // }
    // return preferences;
    // }

    public static Preferences getUserPreferences() {
        return new InstanceScope().getNode(ID);
    }
View Full Code Here

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

        return parent;
    }

    private void initPreferencesStore(IProject currProject) {
        workspaceStore = new ScopedPreferenceStore(new InstanceScope(), FindbugsPlugin.PLUGIN_ID);
        if (currProject != null) {
            projectStore = new ScopedPreferenceStore(new ProjectScope(currProject), FindbugsPlugin.PLUGIN_ID);
            projectPropsInitiallyEnabled = FindbugsPlugin.isProjectSettingsEnabled(currProject);
            if (!projectPropsInitiallyEnabled) {
                // use workspace properties instead
View Full Code Here

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

      String lineDelimiter= Platform.getPreferencesService().getString(Platform.PI_RUNTIME, Platform.PREF_LINE_SEPARATOR, null, scopeContext);
      if (lineDelimiter != null)
        return lineDelimiter;
    }
    // workspace preference
    scopeContext= new IScopeContext[] { new InstanceScope() };
    return Platform.getPreferencesService().getString(Platform.PI_RUNTIME, Platform.PREF_LINE_SEPARATOR, null, scopeContext);
  }
View Full Code Here

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

    manager.add(new Separator());
    drillDownAdapter.addNavigationActions(manager);
  }

  private String[] getRepositoryPaths() {
    IEclipsePreferences preferences = new InstanceScope().getNode(Activator.PLUGIN_ID);
    String repositories = preferences.get("repositories", null);
    if (repositories != null) {
      return repositories.split(File.pathSeparator);
    } else {
      return new String[0];
View Full Code Here

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

      return new String[0];
    }
  }

  private void setRepositoryPaths(String[] paths) {
    IEclipsePreferences preferences = new InstanceScope().getNode(Activator.PLUGIN_ID);
    StringBuilder repositories = new StringBuilder();
    for (int i = 0; i < paths.length; i++) {
      if (i != 0) {
        repositories.append(File.pathSeparatorChar);
      }
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.