@Override
 protected void initializeEditor() {
   super.initializeEditor();
   setDocumentProvider(getAutoconfDocumentProvider());
   IPreferenceStore[] stores = new IPreferenceStore[2];
   stores[0] = AutotoolsPlugin.getDefault().getPreferenceStore();
   stores[1] = EditorsUI.getPreferenceStore();
   ChainedPreferenceStore chainedStore = new ChainedPreferenceStore(stores);
   setPreferenceStore(chainedStore);
   setSourceViewerConfiguration(new AutoconfSourceViewerConfiguration(chainedStore, this));
   AutotoolsEditorPreferenceConstants.initializeDefaultValues(stores[0]);
   AutoconfEditorPreferencePage.initDefaults(stores[0]);
 }
Exemple #2
0
 @Override
 protected void initializeEditor() {
   setRangeIndicator(new DefaultRangeIndicator());
   setEditorContextMenuId("#MakefileEditorContext"); // $NON-NLS-1$
   setRulerContextMenuId("#MakefileRulerContext"); // $NON-NLS-1$
   setDocumentProvider(AutomakeEditorFactory.getDefault().getAutomakefileDocumentProvider());
   IPreferenceStore[] stores = new IPreferenceStore[2];
   stores[0] = AutotoolsPlugin.getDefault().getPreferenceStore();
   stores[1] = EditorsUI.getPreferenceStore();
   ChainedPreferenceStore chainedStore = new ChainedPreferenceStore(stores);
   setPreferenceStore(chainedStore);
   sourceViewerConfiguration = new AutomakefileSourceConfiguration(chainedStore, this);
   setSourceViewerConfiguration(sourceViewerConfiguration);
   AutotoolsEditorPreferenceConstants.initializeDefaultValues(stores[0]);
   AutomakeEditorPreferencePage.initDefaults(stores[0]);
   configureInsertMode(SMART_INSERT, false);
   setInsertMode(INSERT);
 }