Package com._1c.g5.v8.dt.bsl.ui.editor
Class BslSelectionByURI
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.ui.editor.BslSelectionByURI
-
- All Implemented Interfaces:
org.eclipse.jface.text.ITextSelection
,ISelection
public class BslSelectionByURI extends Object implements org.eclipse.jface.text.ITextSelection
Special text selection byURI
for Bsl language. For apply selection you should call methodapply(XtextEditor)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BslSelectionByURI.ReadTextRegionLocation
SpecialIUnitOfWork
for select text byURI
to model object
-
Constructor Summary
Constructors Constructor Description BslSelectionByURI(org.eclipse.emf.common.util.URI uri)
Constructor byURI
BslSelectionByURI(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.EReference crossReference, int indexInList, boolean select)
Constructor byURI
to the model object and itsEReference
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(org.eclipse.xtext.ui.editor.XtextEditor xtextEditor)
Apply selection to the concreteXtextEditor
boolean
equals(Object obj)
int
getEndLine()
int
getLength()
int
getOffset()
int
getStartLine()
String
getText()
int
hashCode()
boolean
isEmpty()
-
-
-
Constructor Detail
-
BslSelectionByURI
public BslSelectionByURI(org.eclipse.emf.common.util.URI uri)
Constructor byURI
- Parameters:
uri
-URI
to the model item for selected its text presentation, cannot benull
-
BslSelectionByURI
public BslSelectionByURI(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.EReference crossReference, int indexInList, boolean select)
Constructor byURI
to the model object and itsEReference
- Parameters:
uri
-URI
to the model item for selected its text presentation, cannot benull
crossReference
-EReference
of selected object, can benull
indexInList
- index of object for selected, object will be selected from collection corresponding to thecrossReference
select
-true
if need selection,false
otherwise
-
-
Method Detail
-
apply
public void apply(org.eclipse.xtext.ui.editor.XtextEditor xtextEditor)
Apply selection to the concreteXtextEditor
- Parameters:
xtextEditor
- editor for select object by URI, cannot benull
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceISelection
-
getOffset
public int getOffset()
- Specified by:
getOffset
in interfaceorg.eclipse.jface.text.ITextSelection
-
getLength
public int getLength()
- Specified by:
getLength
in interfaceorg.eclipse.jface.text.ITextSelection
-
getStartLine
public int getStartLine()
- Specified by:
getStartLine
in interfaceorg.eclipse.jface.text.ITextSelection
-
getEndLine
public int getEndLine()
- Specified by:
getEndLine
in interfaceorg.eclipse.jface.text.ITextSelection
-
getText
public String getText()
- Specified by:
getText
in interfaceorg.eclipse.jface.text.ITextSelection
-
-