Package org.eclipse.ui.preferences

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


     * @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

        return true;
    }

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

        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

        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

        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

         * @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

        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

            IMap map = layer.getMap();
            if (map == null)
                return null;
            boolean mylarOnAndAffectingLayer = mylarOnAndAffectingLayer(layer, map);

            ScopedPreferenceStore store = ProjectPlugin.getPlugin().getPreferenceStore();
            String highlightPref = store.getString(PreferenceConstants.P_HIGHLIGHT);

            if (highlightPref.equals(PreferenceConstants.P_HIGHLIGHT_NONE)) {
                if (mylarOnAndAffectingLayer)
                    return systemColor;
                return null;
View Full Code Here

            statusLineManager.dispose();
       
        MapToolPaletteFactory.dispose( paletteRoot );
        paletteRoot = null;
       
        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

TOP

Related Classes of org.eclipse.ui.preferences.ScopedPreferenceStore

Copyright © 2018 www.massapicom. 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.