|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.adt.ui.text.atl.OpenDeclarationUtils
public final class OpenDeclarationUtils
Open declaration utilities.
Method Summary | |
---|---|
static org.eclipse.jface.text.IRegion |
findWord(org.eclipse.jface.text.IDocument document,
int offset)
The region of the found word. |
static java.lang.Object |
getDeclaration(AtlEditor editor,
int offset,
int length)
Retrieves the declaration of the element at the given offset if exists. |
static java.lang.Object |
getIFileXorIOFile(org.eclipse.emf.common.util.URI fileURI)
Returns the workspace file (IFile). |
static java.lang.String |
getInformation(AtlEditor editor,
int offset,
int length)
Returns a description of the element available at the given offset. |
static OclAnyType |
getType(AtlEditor editor,
int offset,
int length)
Retrieves the declaration of the element at the given offset if exists. |
static void |
openDeclaration(UnitType unit,
org.eclipse.emf.ecore.EObject target,
AtlEditor editor)
Opens the declaration of the given object. |
static void |
showEObject(org.eclipse.ui.IWorkbenchPage page,
org.eclipse.emf.common.util.URI fileURI,
org.eclipse.emf.ecore.EObject eObject)
Opens the referenced definition on the given page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static OclAnyType getType(AtlEditor editor, int offset, int length) throws org.eclipse.jface.text.BadLocationException
editor
- the current editoroffset
- the given offsetlength
- the region length (after offset, unused)
org.eclipse.jface.text.BadLocationException
public static java.lang.String getInformation(AtlEditor editor, int offset, int length) throws org.eclipse.jface.text.BadLocationException
editor
- the current editoroffset
- the given offsetlength
- the region length (after offset, unused)
org.eclipse.jface.text.BadLocationException
public static java.lang.Object getDeclaration(AtlEditor editor, int offset, int length) throws org.eclipse.jface.text.BadLocationException
editor
- the current editoroffset
- the given offsetlength
- the region length (after offset, unused)
org.eclipse.jface.text.BadLocationException
public static void openDeclaration(UnitType unit, org.eclipse.emf.ecore.EObject target, AtlEditor editor) throws org.eclipse.jface.text.BadLocationException
unit
- the atl unit containing the declarationtarget
- the target EObject
editor
- the editor
org.eclipse.jface.text.BadLocationException
public static void showEObject(org.eclipse.ui.IWorkbenchPage page, org.eclipse.emf.common.util.URI fileURI, org.eclipse.emf.ecore.EObject eObject)
page
- is the current pagefileURI
- is the file to open on the pageeObject
- is the EObject to select (Ecore editor)public static java.lang.Object getIFileXorIOFile(org.eclipse.emf.common.util.URI fileURI)
fileURI
- is the platform URI or the file URI...
public static org.eclipse.jface.text.IRegion findWord(org.eclipse.jface.text.IDocument document, int offset)
document
- the current documentoffset
- the given offset
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |