Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.ChainedPreferenceStore


            //Note, we could use the CompareUIPlugin.getDefault().getPreferenceStore() directly, but it's access
            //is restricted, so, we go to the preferences of the previously created compare configuration.
            stores.add(prefs);
        }

        CompareConfiguration cc = new CompareConfiguration(new ChainedPreferenceStore(
                stores.toArray(new IPreferenceStore[stores.size()])));
        cc.setAncestorImage(mp.getAncestorImage(null));
        cc.setAncestorLabel(mp.getAncestorLabel(null));

        cc.setLeftImage(mp.getLeftImage(null));
View Full Code Here


     *
     * @return the combined preference store.
     */
    public IPreferenceStore getCombinedPreferenceStore() {
        if (prefs == null) {
            prefs = new ChainedPreferenceStore(new IPreferenceStore[] {
                    CCWPlugin.getDefault().getPreferenceStore(),
                    EditorsUI.getPreferenceStore(),
                    PlatformUI.getPreferenceStore()});
        }
        return prefs;
View Full Code Here

        + "  (let [m {:keyword (String/valueOf 42)}]\n" //$NON-NLS-1$
        + "    (str string \" \" (get m :keyword))))\n"//$NON-NLS-1$

    private Control createPreviewer(Composite parent) {
        IPreferenceStore generalTextStore= EditorsUI.getPreferenceStore();
        IPreferenceStore store= new ChainedPreferenceStore(new IPreferenceStore[] { fOverlayStore, generalTextStore });
       
        fPreviewViewer= new ClojureSourceViewer(parent, null, null, false, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER, store, null) {
      public void setStatusLineErrorMessage(String you_need_a_running_repl) {
        // Do nothing
      }
View Full Code Here

        stores.add(ForceIdeEditorsPlugin.getDefault().getPreferenceStore());
        stores.add(new PreferencesAdapter(ForceIdeEditorsPlugin.getDefault().getPluginPreferences()));
        stores.add(EditorsUI.getPreferenceStore());

        return new ChainedPreferenceStore(stores.toArray(new IPreferenceStore[stores.size()]));
    }
View Full Code Here

  private IPreferenceStore getPreferenceStore() {
    if (fPreferenceStore == null) {
      IPreferenceStore sseEditorPrefs = SSEUIPlugin.getDefault()
          .getPreferenceStore();
      IPreferenceStore baseEditorPrefs = EditorsUI.getPreferenceStore();
      fPreferenceStore = new ChainedPreferenceStore(
          new IPreferenceStore[] { sseEditorPrefs, baseEditorPrefs });
    }
    return fPreferenceStore;
  }
View Full Code Here

  @Override
  protected void initializeEditor() {
    IPreferenceStore generalTextStore= EditorsUI.getPreferenceStore();
    IPreferenceStore cfmlStore = CFMLPlugin.getDefault().getPreferenceStore();
       
    IPreferenceStore combinedPreferenceStore= new ChainedPreferenceStore(new
    IPreferenceStore[] { cfmlStore,generalTextStore  });   
    setPreferenceStore(combinedPreferenceStore);
   
    // This ensures that we are notified when the preferences are saved
    CFMLPlugin.getDefault().getPreferenceStore()
View Full Code Here

    fPreviewViewer.configure(configuration);
    fPreviewViewer.setEditable(false)
    Font font= JFaceResources.getFont(JFaceResources.TEXT_FONT);
    fPreviewViewer.getTextWidget().setFont(font);   
   
    IPreferenceStore store= new ChainedPreferenceStore(new IPreferenceStore[] { getOverlayStore(), EditorsUI.getPreferenceStore() });
    fPreviewerUpdater= new CFPreviewerUpdater(fPreviewViewer, configuration, store);
   
    String content= loadPreviewContentFromFile("FormatPreviewCode.txt"); //$NON-NLS-1$
    content= formatContent(content, store);
    //IDocument document = new Document(content);      
View Full Code Here

   
    stores.add(LangUIPlugin.getInstance().getPreferenceStore());
    stores.add(LangUIPlugin.getInstance().getCorePreferenceStore());
    stores.add(EditorsUI.getPreferenceStore());
   
    return new ChainedPreferenceStore(ArrayUtil.createFrom(stores, IPreferenceStore.class));
  }
View Full Code Here

  }
 
  /* ----------------- Preview viewer ----------------- */
 
  protected Control createPreviewViewer(Composite topControl) {
    IPreferenceStore store = new ChainedPreferenceStore(array(
      getOverlayPrefStore(),
      LangUIPlugin.getPrefStore(),
      EditorsUI.getPreferenceStore()
    ));
    ProjectionViewer fPreviewViewer = this.createPreviewViewer(topControl, false,
View Full Code Here

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

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

        setHelpContextId( BrowserUIPlugin.PLUGIN_ID + "." + "tools_ldif_editor" );
    }
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.