Class MarkOccurencesPreferences


  • public class MarkOccurencesPreferences
    extends Object
    Mark occurrences preferences.

    Contains preferences for configuring strategy of searching the same occurrences in Built-In language

    • Field Detail

      • MARK_OCCURRENCES_ANALYSER_TYPE

        public static final String MARK_OCCURRENCES_ANALYSER_TYPE
        The main preferences key of the strategy of searching the same occurrences
        See Also:
        Constant Field Values
      • MARK_OCCURRENCES_ANALYSER_TYPE_SEMANTIC

        public static final String MARK_OCCURRENCES_ANALYSER_TYPE_SEMANTIC
        Preferences value for strategy of of searching the same occurrences corresponding to the model searching
        See Also:
        Constant Field Values
      • MARK_OCCURRENCES_ANALYSER_TYPE_PLAIN_TEXT

        public static final String MARK_OCCURRENCES_ANALYSER_TYPE_PLAIN_TEXT
        Preferences value for strategy of of searching the same occurrences corresponding to the text searching
        See Also:
        Constant Field Values
      • preferenceStoreAccess

        @Inject
        protected org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreAccess preferenceStoreAccess
    • Constructor Detail

      • MarkOccurencesPreferences

        public MarkOccurencesPreferences()
    • Method Detail

      • isPlainTextAnalyzerType

        public boolean isPlainTextAnalyzerType()
        Checks that strategy of find occurrences is text searching
        Returns:
        true if the current strategy of find occurrences is text searching, false if strategy is model searching
      • isSemanticAnalyzerType

        public boolean isSemanticAnalyzerType()
        Checks that strategy of find occurrences is model searching
        Returns:
        true if the current strategy of find occurrences is model searching, false if strategy is text searching
      • setMarkOccurencesAnalyzerType

        public void setMarkOccurencesAnalyzerType​(boolean isPlainText)
        Sets the strategy of searching the same occurrences
        Parameters:
        isPlainText - if true strategy of find occurrences will be the text searching, otherwise strategy will be the model searching