Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.ChainedPreferenceStore


    action.setActionDefinitionId(ProjectionViewerWithOutline.ACTIONID_SHOW_OUTLINE);
    setAction(ProjectionViewerWithOutline.ACTIONID_SHOW_OUTLINE, action);
  }

  private IPreferenceStore createCombinedPreferenceStore() {
    return new ChainedPreferenceStore(new IPreferenceStore[] {
        PreferenceConstants.getPreferenceStore(),
        EditorsUI.getPreferenceStore() });
  }
View Full Code Here


    super.doSetInput(input);
  }

  private IPreferenceStore createCombinedPreferenceStore() {
    return new ChainedPreferenceStore(new IPreferenceStore[] {
        PreferenceConstants.getPreferenceStore(),
        EditorsUI.getPreferenceStore() });
  }
View Full Code Here

        setSourceViewerConfiguration( new LdifSourceViewerConfiguration( this, true ) );
        setDocumentProvider( new LdifDocumentProvider() );

        IPreferenceStore editorStore = EditorsUI.getPreferenceStore();
        IPreferenceStore browserStore = LdifEditorActivator.getDefault().getPreferenceStore();
        IPreferenceStore combinedStore = new ChainedPreferenceStore( new IPreferenceStore[]
            { browserStore, editorStore } );
        setPreferenceStore( combinedStore );

        setHelpContextId( LdifEditorConstants.PLUGIN_ID + "." + "tools_ldif_editor" ); //$NON-NLS-1$ //$NON-NLS-2$
    }
View Full Code Here

        setSourceViewerConfiguration( new LdifSourceViewerConfiguration( this, true ) );
        setDocumentProvider( new LdifDocumentProvider() );

        IPreferenceStore editorStore = EditorsUI.getPreferenceStore();
        IPreferenceStore browserStore = LdifEditorActivator.getDefault().getPreferenceStore();
        IPreferenceStore combinedStore = new ChainedPreferenceStore( new IPreferenceStore[]
            { browserStore, editorStore } );
        setPreferenceStore( combinedStore );

        setHelpContextId( LdifEditorConstants.PLUGIN_ID + "." + "tools_ldif_editor" ); //$NON-NLS-1$ //$NON-NLS-2$
    }
View Full Code Here

   */
  public JavaScriptEditor(){
    super();
    colorProvider = HTMLPlugin.getDefault().getColorProvider();
    setSourceViewerConfiguration(new JavaScriptConfiguration(colorProvider));
    setPreferenceStore(new ChainedPreferenceStore(
        new IPreferenceStore[]{
            getPreferenceStore(),
            HTMLPlugin.getDefault().getPreferenceStore()
        }));
   
View Full Code Here

  public HTMLSourceEditor(HTMLConfiguration config) {
    super();
    config.setEditorPart(this);
    _colorProvider = HTMLPlugin.getDefault().getColorProvider();
    setSourceViewerConfiguration(config);
    setPreferenceStore(new ChainedPreferenceStore(new IPreferenceStore[] { getPreferenceStore(), HTMLPlugin.getDefault().getPreferenceStore() }));

    setAction(ACTION_ESCAPE_HTML, new EscapeHTMLAction());
    //setAction(ACTION_OPEN_PALETTE, new OpenPaletteAction());
    //setAction(ACTION_CHOOSE_COLOR, new ChooseColorAction(this));
View Full Code Here

  public CSSEditor() {
    super();
    colorProvider = HTMLPlugin.getDefault().getColorProvider();
    setSourceViewerConfiguration(new CSSConfiguration(colorProvider));
    setPreferenceStore(new ChainedPreferenceStore(new IPreferenceStore[] { getPreferenceStore(), HTMLPlugin.getDefault().getPreferenceStore() }));

    outline = new CSSOutlinePage(this);

    setAction(ACTION_CHOOSE_COLOR, new ChooseColorAction(this));
View Full Code Here

    }

    public IPreferenceStore getCombinedPreferenceStore() {
        if (fCombinedPreferenceStore == null) {
            IPreferenceStore generalTextStore= EditorsUI.getPreferenceStore();
            fCombinedPreferenceStore= new ChainedPreferenceStore(new IPreferenceStore[] { getPreferenceStore(), generalTextStore });
        }
        return fCombinedPreferenceStore;
    }
View Full Code Here

        setSourceViewerConfiguration( new LdifSourceViewerConfiguration( this, true ) );
        setDocumentProvider( new LdifDocumentProvider() );

        IPreferenceStore editorStore = EditorsUI.getPreferenceStore();
        IPreferenceStore browserStore = LdifEditorActivator.getDefault().getPreferenceStore();
        IPreferenceStore combinedStore = new ChainedPreferenceStore( new IPreferenceStore[]
            { browserStore, editorStore } );
        setPreferenceStore( combinedStore );

        setHelpContextId( LdifEditorConstants.PLUGIN_ID + "." + "tools_ldif_editor" );
    }
View Full Code Here

     * @return a preference store that has the pydev preference store and the default editors text store
     */
    public synchronized static IPreferenceStore getChainedPrefStore() {
        if (PydevPrefs.fChainedPrefStore == null) {
            List<IPreferenceStore> stores = getDefaultStores(true);
            PydevPrefs.fChainedPrefStore = new ChainedPreferenceStore(
                    stores.toArray(new IPreferenceStore[stores.size()]));
        }
        return PydevPrefs.fChainedPrefStore;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.texteditor.ChainedPreferenceStore

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.