|
||||||||||
| 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.AtlCompletionHelper
public class AtlCompletionHelper
Completion helper, dedicated to document parsing.
| Constructor Summary | |
|---|---|
AtlCompletionHelper()
|
|
| Method Summary | |
|---|---|
AtlModelAnalyser |
computeContext(int offset,
java.lang.String prefix)
Computes the document part to analyze, process the analysis. |
java.lang.String |
extractPrefix(int offset)
Extracts the prefix of the last typed characters. |
java.lang.String |
getCurrentLine(int offset)
Compute the whole line of the current offset. |
int[] |
getElementOffsets(org.eclipse.emf.ecore.EObject element,
int baseOffset)
Compute the right offset from an element, according to the base offset of the model. |
java.lang.String |
getLastKeyWord(int offset)
Retrieves the last typed keyword. |
void |
setDocument(org.eclipse.jface.text.IDocument document)
Configures the IDocument for this helper. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtlCompletionHelper()
| Method Detail |
|---|
public void setDocument(org.eclipse.jface.text.IDocument document)
document - the current document
public AtlModelAnalyser computeContext(int offset,
java.lang.String prefix)
throws org.eclipse.jface.text.BadLocationException
offset - the current offsetprefix - the current prefix
org.eclipse.jface.text.BadLocationException
public int[] getElementOffsets(org.eclipse.emf.ecore.EObject element,
int baseOffset)
throws org.eclipse.jface.text.BadLocationException
element - the given elementbaseOffset - the base offset
org.eclipse.jface.text.BadLocationExceptionpublic java.lang.String extractPrefix(int offset)
offset - the current offset
public java.lang.String getCurrentLine(int offset)
throws org.eclipse.jface.text.BadLocationException
offset - the current offset
org.eclipse.jface.text.BadLocationException
public java.lang.String getLastKeyWord(int offset)
throws org.eclipse.jface.text.BadLocationException
offset - the current offset
org.eclipse.jface.text.BadLocationException
|
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 | |||||||||