Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.PreferenceStore


  @Override
  protected ELEMENTS createElements(Composite parent, Runnable modifyListener) {
    Composite composite = createDefaultComposite(parent);
    setControl(composite);

    PreferenceStore store = new PreferenceStore();

    composite.setFont(parent.getFont());

    return createDialogElements(composite, modifyListener, store);
  }
View Full Code Here


        // Start worker thread to refresh tree for added or removed objects
        (new Thread(new Worker())).start();

        createConfigFile();
        _preferences = new PreferenceStore(INI_FILENAME);

        try
        {
            _preferences.load();
        }
View Full Code Here

        }
    }
   
    private void loadAttributePreferences()
    {
        _preferences = new PreferenceStore(INI_FILENAME);
        List<String> attributesList = new ArrayList<String>();
      
        //ensure the name is present, and first
        attributesList.add(ManagedQueue.ATTR_NAME);
       
View Full Code Here

    public void testInterpreterManager() throws Exception {
        Collection<String> pythonpath = new ArrayList<String>();
        pythonpath.add(TestDependent.PYTHON_LIB);
        pythonpath.add(TestDependent.PYTHON_SITE_PACKAGES);

        PreferenceStore prefs = new PreferenceStore();
        String interpreterStr = new InterpreterInfo("2.6", TestDependent.PYTHON_EXE, pythonpath).toString();
        prefs.setValue(IInterpreterManager.PYTHON_INTERPRETER_PATH, interpreterStr);
        PythonInterpreterManager manager = new PythonInterpreterManager(prefs);
        checkSameInterpreterInfo(manager);

        manager.clearCaches();
        InterpreterInfo info = checkSameInterpreterInfo(manager);

        pythonpath = new ArrayList<String>();
        pythonpath.add(TestDependent.PYTHON_LIB);
        pythonpath.add(TestDependent.PYTHON_SITE_PACKAGES);
        pythonpath.add(additionalPythonpathEntry.toString());
        interpreterStr = new InterpreterInfo("2.6", TestDependent.PYTHON_EXE, pythonpath).toString();
        prefs.setValue(IInterpreterManager.PYTHON_INTERPRETER_PATH, interpreterStr);

        info = checkSameInterpreterInfo(manager);
    }
View Full Code Here

    private boolean fLoaded;

    public OverlayPreferenceStore(IPreferenceStore parent, OverlayKey[] overlayKeys) {
        fParent = parent;
        fOverlayKeys = overlayKeys;
        fStore = new PreferenceStore();
    }
View Full Code Here

    /**
     * @return a styled text that can be used to show code with the colors based on the color cache received.
     */
    public StyledText createStyledTextForCodePresentation(Composite parent) {
        styledText = new StyledText(parent, SWT.BORDER | SWT.READ_ONLY);
        this.backgroundColorCache = new ColorAndStyleCache(new PreferenceStore());
        this.colorCache = new ColorAndStyleCache(null);

        try {
            styledText.setFont(new Font(parent.getDisplay(), FontUtils.getFontData(IFontUsage.STYLED, true)));
        } catch (Throwable e) {
View Full Code Here

    public PydevEditorPrefs() {
        setDescription("PyDev editor appearance settings:\nNote: Pydev ignores the 'Insert spaces for tabs' in the general settings.");
        setPreferenceStore(PydevPlugin.getDefault().getPreferenceStore());

        fOverlayStore = createOverlayStore();
        localStore = new PreferenceStore();
    }
View Full Code Here

    private IPreferenceStore preferences;

    public void setUp() throws Exception {
        super.setUp();
        DEBUG = false;
        preferences = new PreferenceStore();//PydevPlugin.getDefault().getPluginPreferences();
        CodeFoldingSetter.setPreferences(preferences);
        setAllOptions(false);
    }
View Full Code Here

        assertTrue(detector.isWordPart('F'));
        assertFalse(detector.isWordPart(' '));
    }

    private PyCodeScanner createCodeScanner() {
        PreferenceStore store = new PreferenceStore();
        store.putValue(PydevEditorPrefs.KEYWORD_COLOR, StringConverter.asString(new RGB(1, 0, 0)));
        store.putValue(PydevEditorPrefs.SELF_COLOR, StringConverter.asString(new RGB(2, 0, 0)));
        store.putValue(PydevEditorPrefs.CODE_COLOR, StringConverter.asString(new RGB(3, 0, 0)));
        store.putValue(PydevEditorPrefs.DECORATOR_COLOR, StringConverter.asString(new RGB(4, 0, 0)));
        store.putValue(PydevEditorPrefs.NUMBER_COLOR, StringConverter.asString(new RGB(5, 0, 0)));
        store.putValue(PydevEditorPrefs.FUNC_NAME_COLOR, StringConverter.asString(new RGB(6, 0, 0)));
        store.putValue(PydevEditorPrefs.CLASS_NAME_COLOR, StringConverter.asString(new RGB(7, 0, 0)));
        store.putValue(PydevEditorPrefs.OPERATORS_COLOR, StringConverter.asString(new RGB(8, 0, 0)));
        store.putValue(PydevEditorPrefs.PARENS_COLOR, StringConverter.asString(new RGB(9, 0, 0)));

        this.colorCache = new ColorAndStyleCache(store);
        PyCodeScanner scanner = new PyCodeScanner(colorCache);
        return scanner;
    }
View Full Code Here


  public OverlayPreferenceStore(IPreferenceStore parent, OverlayKey[] overlayKeys) {
    fParent= parent;
    fOverlayKeys= overlayKeys;
    fStore= new PreferenceStore();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.preference.PreferenceStore

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.