Examples of ScopedPreferenceStore


Examples of org.eclipse.ui.preferences.ScopedPreferenceStore

   * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
   */
  public void start(BundleContext context) throws Exception {
    super.start(context);
    plugin = this;
    store = new ScopedPreferenceStore(new InstanceScope(), Activator.PLUGIN_ID);
  }
View Full Code Here

Examples of org.eclipse.ui.preferences.ScopedPreferenceStore

  @Override
  protected void initialize() {
    super.initialize();
   
    // We want to store M2_REPO property into java classpath vars
    ScopedPreferenceStore store = new ScopedPreferenceStore(
        new InstanceScope(), "org.eclipse.jdt.core");
    m2Repo.setPreferenceStore(store);
    store.addPropertyChangeListener(new IPropertyChangeListener(){
      @Override
      public void propertyChange(PropertyChangeEvent event) {
        // We want to erase the value if the M2_REPO was deleted from the classpath variables ui...
        if( event.getProperty().equals(PreferencesConstants.M2_REPO)) {
          m2Repo.load();
View Full Code Here

Examples of org.eclipse.ui.preferences.ScopedPreferenceStore

        table = new FeatureTableControl(provider);       
        table.createTableControl( parent );
        table.setSelectionColor(new IProvider<RGB>(){

            public RGB get(Object... params) {
                ScopedPreferenceStore store = ProjectPlugin.getPlugin().getPreferenceStore();
                String key = org.locationtech.udig.project.preferences.PreferenceConstants.P_SELECTION_COLOR;
                RGB color = PreferenceConverter.getColor(store, key);
                return color;
            }
           
View Full Code Here

Examples of org.eclipse.ui.preferences.ScopedPreferenceStore

     * @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.ui.preferences.ScopedPreferenceStore

        return true;
    }

    @Override
    protected IPreferenceStore doGetPreferenceStore() {
        return new ScopedPreferenceStore(new ProjectScope(getProject()), Plugin.PLUGIN_ID);
    }
View Full Code Here

Examples of org.eclipse.ui.preferences.ScopedPreferenceStore

        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.ui.preferences.ScopedPreferenceStore

        partlistener = null;

        if (statusLineManager != null)
            statusLineManager.dispose();

        final ScopedPreferenceStore store = ProjectPlugin.getPlugin().getPreferenceStore();
        if (!PlatformUI.getWorkbench().isClosing()) {
            ShutdownTaskList.instance().removePreShutdownTask(shutdownTask);
            try {
                // kill rending now - even if it is moving
                getRenderManager().dispose();
View Full Code Here

Examples of org.eclipse.ui.preferences.ScopedPreferenceStore

        List<IConfigurationElement> list = ExtensionPointList
                .getExtensionPointList(FEATURE_EDITOR_ID);
        for( IConfigurationElement element : list ) {
            FeatureEditorLoader loader = new FeatureEditorLoader(this, element);
            ScopedPreferenceStore preferences = ProjectPlugin.getPlugin().getPreferenceStore();
            if (loader.id.equals(preferences
                    .getString(PreferenceConstants.P_DEFAULT_FEATURE_EDITOR)))
                editorLoaders.add(0, loader);
            else
                editorLoaders.add(loader);
        }
View Full Code Here

Examples of org.eclipse.ui.preferences.ScopedPreferenceStore

         * @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.ui.preferences.ScopedPreferenceStore

        return ProjectEditPlugin.INSTANCE;
    }

    public Color getBackground(Object element) {
        if (element instanceof LayerImpl) {
            ScopedPreferenceStore store = ProjectPlugin.getPlugin().getPreferenceStore();
            String highlightPref = store.getString(PreferenceConstants.P_HIGHLIGHT);
            if (highlightPref.equals(PreferenceConstants.P_HIGHLIGHT_NONE)) {
                return null;
            }
            LayerImpl layer = (LayerImpl) element;
            java.awt.Color awtColor = layer.getDefaultColor();
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.