Class BslSelectionByURI

  • All Implemented Interfaces:
    org.eclipse.jface.text.ITextSelection, ISelection

    public class BslSelectionByURI
    extends Object
    implements org.eclipse.jface.text.ITextSelection
    Special text selection by URI for Bsl language. For apply selection you should call method apply(XtextEditor)
    • Constructor Detail

      • BslSelectionByURI

        public BslSelectionByURI​(org.eclipse.emf.common.util.URI uri)
        Constructor by URI
        uri - URI to the model item for selected its text presentation, cannot be null
      • BslSelectionByURI

        public BslSelectionByURI​(org.eclipse.emf.common.util.URI uri,
                                 org.eclipse.emf.ecore.EReference crossReference,
                                 int indexInList,
                                 boolean select)
        Constructor by URI to the model object and its EReference
        uri - URI to the model item for selected its text presentation, cannot be null
        crossReference - EReference of selected object, can be null
        indexInList - index of object for selected, object will be selected from collection corresponding to the crossReference
        select - true if need selection, false otherwise
    • Method Detail

      • apply

        public void apply​(org.eclipse.xtext.ui.editor.XtextEditor xtextEditor)
        Apply selection to the concrete XtextEditor
        xtextEditor - editor for select object by URI, cannot be null
      • getOffset

        public int getOffset()
        Specified by:
        getOffset in interface org.eclipse.jface.text.ITextSelection
      • getLength

        public int getLength()
        Specified by:
        getLength in interface org.eclipse.jface.text.ITextSelection
      • getStartLine

        public int getStartLine()
        Specified by:
        getStartLine in interface org.eclipse.jface.text.ITextSelection
      • getEndLine

        public int getEndLine()
        Specified by:
        getEndLine in interface org.eclipse.jface.text.ITextSelection
      • getText

        public String getText()
        Specified by:
        getText in interface org.eclipse.jface.text.ITextSelection
      • hashCode

        public int hashCode()
        hashCode in class Object