Examples of PreferenceStore


Examples of org.eclipse.jface.preference.PreferenceStore

    private boolean fLoaded;

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

Examples of org.eclipse.jface.preference.PreferenceStore

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

Examples of org.eclipse.jface.preference.PreferenceStore

    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

Examples of org.eclipse.jface.preference.PreferenceStore

    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

Examples of org.eclipse.jface.preference.PreferenceStore

        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

Examples of org.eclipse.jface.preference.PreferenceStore


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

Examples of org.eclipse.jface.preference.PreferenceStore

    public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
      // No-op
    }

    public void refresh() {
      store = new PreferenceStore();
      performOk(store);
      fViewer.refresh(true);
    }
View Full Code Here

Examples of org.eclipse.jface.preference.PreferenceStore

      fViewer.setContentProvider(this);
      fViewer.setLabelProvider(new ResLabelProvider());
      fViewer.setInput(PREVIEW_FILESYSTEM_ROOT);
      fViewer.expandAll();
      fHelper = new DecorationHelper(new PreferenceStore());
    }
View Full Code Here

Examples of org.eclipse.jface.preference.PreferenceStore

      fViewer.expandAll();
      fHelper = new DecorationHelper(new PreferenceStore());
    }

    private void reloadDecorationHelper() {
      store = new PreferenceStore();
      if (tabsInitialized)
        performOk(store);

      fHelper = new DecorationHelper(store);
    }
View Full Code Here

Examples of org.eclipse.jface.preference.PreferenceStore

  public OverlayPreferenceStore(IPreferenceStore parent, OverlayKey overlayKeys[])
  {
    fParent = parent;
    fOverlayKeys = overlayKeys;
    fStore = new PreferenceStore();
  }
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.