public class AstSelectionProvider
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SELECT_ENCLOSING |
static java.lang.String |
SELECT_LAST |
static java.lang.String |
SELECT_NEXT |
static java.lang.String |
SELECT_PREVIOUS |
Constructor and Description |
---|
AstSelectionProvider() |
Modifier and Type | Method and Description |
---|---|
protected ITextRegion |
computeInitialFineGrainedSelection(INode node,
ITextRegion currentEditorSelection) |
protected org.eclipse.emf.ecore.EObject |
findSemanticObjectFor(INode node) |
protected int |
getEndOffset(ITextRegion region) |
protected org.eclipse.emf.ecore.EObject |
getEObjectAtOffset(XtextResource resource,
ITextRegion currentEditorSelection) |
protected ITextRegion |
getRegion(Pair<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject> selection) |
protected Pair<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject> |
getSelectedAstElements(XtextResource resource,
ITextRegion currentSelection) |
protected int |
getSelectionOffset(ICompositeNode rootNode,
ITextRegion region) |
protected ITextRegion |
getTextRegion(org.eclipse.emf.ecore.EObject eObject) |
void |
initialize(XtextEditor xtextEditor) |
protected Pair<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject> |
internalGetSelectedAstElements(org.eclipse.emf.ecore.EObject eObject,
ITextRegion currentSelection) |
protected ITextRegion |
register(ITextRegion textRegion) |
ITextRegion |
selectEnclosing(XtextResource resource,
ITextRegion currentEditorSelection) |
ITextRegion |
selectLast(XtextResource resource,
ITextRegion currentEditorSelection) |
ITextRegion |
selectNext(XtextResource resource,
ITextRegion currentEditorSelection) |
ITextRegion |
selectPrevious(XtextResource resource,
ITextRegion currentEditorSelection) |
protected void |
setAction(XtextEditor xtextEditor,
org.eclipse.jface.action.IAction action,
java.lang.String actionDefinitionId) |
public static final java.lang.String SELECT_ENCLOSING
public static final java.lang.String SELECT_NEXT
public static final java.lang.String SELECT_PREVIOUS
public static final java.lang.String SELECT_LAST
public ITextRegion selectLast(XtextResource resource, ITextRegion currentEditorSelection)
public ITextRegion selectEnclosing(XtextResource resource, ITextRegion currentEditorSelection)
public ITextRegion selectNext(XtextResource resource, ITextRegion currentEditorSelection)
public ITextRegion selectPrevious(XtextResource resource, ITextRegion currentEditorSelection)
protected Pair<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject> getSelectedAstElements(XtextResource resource, ITextRegion currentSelection)
protected Pair<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject> internalGetSelectedAstElements(org.eclipse.emf.ecore.EObject eObject, ITextRegion currentSelection)
protected ITextRegion getRegion(Pair<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject> selection)
protected ITextRegion computeInitialFineGrainedSelection(INode node, ITextRegion currentEditorSelection)
protected org.eclipse.emf.ecore.EObject findSemanticObjectFor(INode node)
protected org.eclipse.emf.ecore.EObject getEObjectAtOffset(XtextResource resource, ITextRegion currentEditorSelection)
public void initialize(XtextEditor xtextEditor)
protected void setAction(XtextEditor xtextEditor, org.eclipse.jface.action.IAction action, java.lang.String actionDefinitionId)
protected ITextRegion register(ITextRegion textRegion)
protected ITextRegion getTextRegion(org.eclipse.emf.ecore.EObject eObject)
protected int getEndOffset(ITextRegion region)
protected int getSelectionOffset(ICompositeNode rootNode, ITextRegion region)