Class QlSemanticHighlightingCalculator

  • All Implemented Interfaces:
    org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator
    Direct Known Subclasses:
    RightQlSemanticHighlightingCalculator

    public class QlSemanticHighlightingCalculator
    extends Object
    implements org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator
    Semantic highlighting calculator for the Ql language. Computes the highlighting styles for the model objects
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator

        org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator.NewToOldDelegate
    • Constructor Detail

      • QlSemanticHighlightingCalculator

        public QlSemanticHighlightingCalculator()
    • Method Detail

      • provideHighlightingFor

        public void provideHighlightingFor​(org.eclipse.xtext.resource.XtextResource resource,
                                           org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor acceptor)
        Specified by:
        provideHighlightingFor in interface org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator
      • computeHighliting

        protected void computeHighliting​(Iterator<org.eclipse.emf.ecore.EObject> it,
                                         org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor acceptor)
        Compute highlighting for Ql semantic objects
        Parameters:
        it - iterator on objects
        acceptor - used to announce the mapping from text-range to the style's id. The acceptor will never be null.
      • computeHighliting

        protected void computeHighliting​(org.eclipse.emf.ecore.EObject each,
                                         org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor acceptor)
        Compute highlighting for Ql semantic objects
        Parameters:
        each - semantic object
        acceptor - used to announce the mapping from text-range to the style's id. The acceptor will never be null.