/** * Creates a next previous action delegate. */ public NextPreviousPulldownActionDelegate() { fStore= EditorsPlugin.getDefault().getPreferenceStore(); }
/** * Returns the annotation preference lookup. * * @return the annotation preference lookup */ protected AnnotationPreferenceLookup getAnnotationPreferenceLookup() { return EditorsPlugin.getDefault().getAnnotationPreferenceLookup(); }
/** * 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 registry that contains the hyperlink detectors contributed * by the <code>org.eclipse.ui.workbench.texteditor.hyperlinkDetectors</code> * extension point. * * @return the hyperlink detector registry * @since 3.3 */ public static HyperlinkDetectorRegistry getHyperlinkDetectorRegistry() { return EditorsPlugin.getDefault().getHyperlinkDetectorRegistry(); }
/** * Returns the annotation type hierarchy and creates it when not yet done. * * @return the annotation type hierarchy */ private AnnotationTypeHierarchy getAnnotationTypeHierarchy() { return EditorsPlugin.getDefault().getAnnotationTypeHierarchy(); }
/** * Returns the annotation type lookup of this plug-in. * * @return the annotation type lookup */ public static AnnotationTypeLookup getAnnotationTypeLookup() { return EditorsPlugin.getDefault().getAnnotationTypeLookup(); }
public AnnotationsConfigurationBlock(OverlayPreferenceStore store) { Assert.isNotNull(store); MarkerAnnotationPreferences markerAnnotationPreferences= EditorsPlugin.getDefault().getMarkerAnnotationPreferences(); fStore= store; fStore.addKeys(createOverlayStoreKeys(markerAnnotationPreferences)); fListModel= createAnnotationTypeListModel(markerAnnotationPreferences); }
public static boolean isChangedAdviceAnnotationActive() { AnnotationPreferenceLookup lookup = EditorsPlugin.getDefault() .getAnnotationPreferenceLookup(); AnnotationPreference preference = lookup .getAnnotationPreference(CHANGED_ADVICE_ANNOTATION_TYPE); IPreferenceStore store = EditorsPlugin.getDefault() .getPreferenceStore(); String key = preference.getVerticalRulerPreferenceKey(); if (key != null && store.getBoolean(key)) { return true; } return false; }
public void dispose() { ImageRegistry registry= EditorsPlugin.getDefault().getImageRegistry(); for (Iterator it= fImageKeys.iterator(); it.hasNext();) { String string= (String) it.next(); registry.remove(string); } fImageKeys.clear(); }
/** * 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(); }
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); }
ImageRegistry registry= EditorsPlugin.getDefault().getImageRegistry(); AnnotationPreference delegatingPreference= EditorsPlugin.getDefault().getAnnotationPreferenceLookup().getAnnotationPreference(annotationType); ImageDescriptor descriptor= delegatingPreference.getImageDescriptor(); if (descriptor != null) {
public boolean performOk() { fOverlayStore.propagate(); EditorsPlugin.getDefault().savePluginPreferences(); return true; }
/** * Returns the spelling service. * * @return the spelling service * @since 3.1 */ public static SpellingService getSpellingService() { return EditorsPlugin.getDefault().getSpellingService(); }
private IFileStore queryFileStore() { IPath stateLocation= EditorsPlugin.getDefault().getStateLocation(); IPath path= stateLocation.append("/_" + new Object().hashCode()); //$NON-NLS-1$ return EFS.getLocalFileSystem().getStore(path); }
public static void log(IStatus status) { getDefault().getLog().log(status); }
/** * Returns the spelling service. * * @return the spelling service * @since 3.1 */ public SpellingService getSpellingService() { if (fSpellingService == null) fSpellingService= new SpellingService(getPreferenceStore()); return fSpellingService; }
@Override public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) { if (fPreferenceStore == null || !fPreferenceStore.getBoolean(SpellingService.PREFERENCE_SPELLING_ENABLED)) return null; QuickAssistAssistant assistant= new QuickAssistAssistant(); assistant.setQuickAssistProcessor(new SpellingCorrectionProcessor()); assistant.setRestoreCompletionProposalSize(EditorsPlugin.getDefault().getDialogSettingsSection("quick_assist_proposal_size")); //$NON-NLS-1$ assistant.setInformationControlCreator(getQuickAssistAssistantInformationControlCreator()); return assistant; }
public AnnotationsConfigurationBlock(OverlayPreferenceStore store) { Assert.isNotNull(store); MarkerAnnotationPreferences markerAnnotationPreferences= EditorsPlugin.getDefault().getMarkerAnnotationPreferences(); fStore= store; fStore.addKeys(createOverlayStoreKeys(markerAnnotationPreferences)); fListModel= createAnnotationTypeListModel(markerAnnotationPreferences); }
/** * Returns the annotation type lookup of this plug-in. * * @return the annotation type lookup */ public static AnnotationTypeLookup getAnnotationTypeLookup() { return EditorsPlugin.getDefault().getAnnotationTypeLookup(); }