Package org.eclipse.ui.texteditor
Class MarkerAnnotationPreferences
java.lang.Object
org.eclipse.ui.texteditor.MarkerAnnotationPreferences
Objects of this class provide access to all extensions declared for the
markerAnnotationSpecification
extension point.
The extensions are represented as instances of AnnotationPreference
.- Since:
- 2.1
-
Constructor Summary
ConstructorDescriptionCreates a new marker annotation preferences to access marker annotation preferences. -
Method Summary
Modifier and TypeMethodDescriptionReturns all extensions provided for themarkerAnnotationSpecification
extension point including fragments.Returns all extensions provided for themarkerAnnotationSpecification
extension point.static void
Initializes the given preference store with the default marker annotation values.static void
Removes the marker annotation values which are shown on the general Annotations page from the given store and prevents setting the default values in the future.static void
Removes the Quick Diff marker annotation values which are shown on the general Quick Diff page from the given store and prevents setting the default values in the future.
-
Constructor Details
-
MarkerAnnotationPreferences
public MarkerAnnotationPreferences()Creates a new marker annotation preferences to access marker annotation preferences.
-
-
Method Details
-
initializeDefaultValues
Initializes the given preference store with the default marker annotation values.- Parameters:
store
- the preference store to be initialized- Since:
- 3.0
-
useAnnotationsPreferencePage
public static void useAnnotationsPreferencePage(IPreferenceStore store) throws IllegalStateException Removes the marker annotation values which are shown on the general Annotations page from the given store and prevents setting the default values in the future.Note: In order to work this method must be called before any call to
initializeDefaultValues(IPreferenceStore)
This method is not part of the API and must only be called by
EditorsUI
- Parameters:
store
- the preference store to be initialized- Throws:
IllegalStateException
- if not called byEditorsUI
- Since:
- 3.0
-
useQuickDiffPreferencePage
Removes the Quick Diff marker annotation values which are shown on the general Quick Diff page from the given store and prevents setting the default values in the future.Note: In order to work this method must be called before any call to
initializeDefaultValues(IPreferenceStore)
This method is not part of the API and must only be called by
EditorsUI
- Parameters:
store
- the preference store to be initialized- Throws:
IllegalStateException
- if not called byEditorsUI
- Since:
- 3.0
-
getAnnotationPreferences
Returns all extensions provided for themarkerAnnotationSpecification
extension point.- Returns:
- all extensions provided for the
markerAnnotationSpecification
extension point
-
getAnnotationPreferenceFragments
Returns all extensions provided for themarkerAnnotationSpecification
extension point including fragments. Fragments share the preference part with a marker annotation specifications provided for a super type but do change the presentation part.- Returns:
- all extensions provided for the
markerAnnotationSpecification
extension point including fragments
-