/** * Returns the preference store of this plug-in. * * @return this plug-in's preference store */ public static IPreferenceStore getPreferenceStore() { return EditorsPlugin.getDefault().getPreferenceStore(); }
/** * Returns the preferences of this plug-in. * * @return the plug-in preferences * @see org.eclipse.core.runtime.Plugin#getPluginPreferences() */ public static Preferences getPluginPreferences() { return EditorsPlugin.getDefault().getPluginPreferences(); }
/** * Returns the shared text colors of this plug-in. * * @return the shared text colors * @since 3.3 */ public static ISharedTextColors getSharedTextColors() { return EditorsPlugin.getDefault().getSharedTextColors(); }
/** * Creates a next previous action delegate. */ public NextPreviousPulldownActionDelegate() { fStore= EditorsPlugin.getDefault().getPreferenceStore(); }
/** * Returns the annotation preference lookup of this plug-in. * * @return the annotation preference lookup */ public static AnnotationPreferenceLookup getAnnotationPreferenceLookup() { return EditorsPlugin.getDefault().getAnnotationPreferenceLookup(); }
/** * Returns the spelling service. * * @return the spelling service * @since 3.1 */ public static SpellingService getSpellingService() { return EditorsPlugin.getDefault().getSpellingService(); }
/** * Returns the annotation preference lookup used by this annotation access. * * @return the annotation preference lookup * @since 3.0 */ protected AnnotationPreferenceLookup getAnnotationPreferenceLookup() { return EditorsPlugin.getDefault().getAnnotationPreferenceLookup(); }
/** * Creates a next previous action delegate. */ public NextPreviousPulldownActionDelegate() { fStore= EditorsPlugin.getDefault().getPreferenceStore(); }
@Override public void dispose() { ImageRegistry registry= EditorsPlugin.getDefault().getImageRegistry(); for (Iterator<String> it= fImageKeys.iterator(); it.hasNext();) { String string= it.next(); registry.remove(string); } fImageKeys.clear(); }
private void initialize() { synchronized (EditorsPlugin.getDefault()) { if (!EditorsPlugin.getDefault().isMarkerAnnotationPreferencesInitialized()) EditorsPlugin.getDefault().setMarkerAnnotationPreferences(new MarkerAnnotationPreferences(true)); } MarkerAnnotationPreferences sharedPrefs= EditorsPlugin.getDefault().getMarkerAnnotationPreferences(); fFragments= cloneAnnotationPreferences(sharedPrefs.fFragments); fPreferences= cloneAnnotationPreferences(sharedPrefs.fPreferences); }
private IFileStore queryFileStore() { IPath stateLocation= EditorsPlugin.getDefault().getStateLocation(); IPath path= stateLocation.append("/_" + new Object().hashCode()); //$NON-NLS-1$ return EFS.getLocalFileSystem().getStore(path); }
/** * Initializes this editor. Subclasses may re-implement. If sub-classes do * not change the contract, this method should not be extended, i.e. do not * call <code>super.initializeEditor()</code> in order to avoid the * temporary creation of objects that are immediately overwritten by * subclasses. */ protected void initializeEditor() { setPreferenceStore(EditorsPlugin.getDefault().getPreferenceStore()); }
/** * Creates a new annotation for the given marker. * @see IMarker * * @param marker the marker */ public SimpleMarkerAnnotation(IMarker marker) { this(EditorsPlugin.getDefault().getAnnotationTypeLookup().getAnnotationType(marker), marker); }
/** * Updates the type to be synchronized with its underlying marker. * * @since 3.0 */ private void updateType() { String annotationType= EditorsPlugin.getDefault().getAnnotationTypeLookup().getAnnotationType(fMarker); if (annotationType != null && !annotationType.equals(getType())) setType(annotationType); }
@Override public void initializeDefaultPreferences() { IPreferenceStore store= EditorsPlugin.getDefault().getPreferenceStore(); TextEditorPreferenceConstants.initializeDefaultValues(store); migrateOverviewRulerPreference(store); }
public QuickDiffConfigurationBlock(OverlayPreferenceStore store) { Assert.isNotNull(store); fStore= store; MarkerAnnotationPreferences markerAnnotationPreferences= EditorsPlugin.getDefault().getMarkerAnnotationPreferences(); fStore.addKeys(createOverlayStoreKeys(markerAnnotationPreferences)); fQuickDiffModel= createQuickDiffModel(markerAnnotationPreferences); fQuickDiffProviderListModel= createQuickDiffReferenceListModel(); }
public AccessibilityPreferencePage() { setDescription(TextEditorMessages.AccessibilityPreferencePage_accessibility_title); setPreferenceStore(EditorsPlugin.getDefault().getPreferenceStore()); fOverlayStore= createOverlayStore(); }
public TextEditorDefaultsPreferencePage() { setPreferenceStore(EditorsPlugin.getDefault().getPreferenceStore()); fOverlayStore= createOverlayStore(); fInitializerFactory= new InitializerFactory(fOverlayStore); }
/** * Creates a new text editor. */ public AbstractDecoratedTextEditor() { super(); fAnnotationPreferences= EditorsPlugin.getDefault().getMarkerAnnotationPreferences(); setRangeIndicator(new DefaultRangeIndicator()); initializeKeyBindingScopes(); initializeEditor(); }
public Color getBackground(Object element) { String key= ((ListItem) element).highlightKey; if (key != null && fStore.getBoolean(key)) { RGB color= PreferenceConverter.getColor(fStore, ((ListItem)element).colorKey); color= interpolate(color, new RGB(255, 255, 255), 0.6); return EditorsPlugin.getDefault().getSharedTextColors().getColor(color); } return null; }