|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.gui.swing.CompletionEngine | +--org.objectweb.jac.aspects.gui.swing.DefaultCompletionEngine
This class implements a default completion engines for editors. It
is non contextual (i.e. the proposed completions are always the
same and are the ones defined by addBaseWord
.
Field Summary |
Fields inherited from class org.objectweb.jac.aspects.gui.swing.CompletionEngine |
BACKWARD, baseWords, FORWARD |
Constructor Summary | |
DefaultCompletionEngine()
|
Method Summary | |
List |
getContextualChoices(String text,
int position,
String writtenText)
In the default completion engine, this method only returns base words (i.e. |
boolean |
isAutomaticCompletionChar(char c)
This method always returns false (no automatic completion is supported). |
void |
runAutomaticCompletion(SHEditor editor,
String text,
int position,
char c)
Do nothing (anyway it is never called because isAutomaticCompletionChar always returns
false). |
Methods inherited from class org.objectweb.jac.aspects.gui.swing.CompletionEngine |
addBaseWord, addBaseWords, clearBaseWords, getBaseWords, getProposal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultCompletionEngine()
Method Detail |
public List getContextualChoices(String text, int position, String writtenText)
getContextualChoices
in class CompletionEngine
text
- the editor's full textposition
- the cursor positionwrittenText
- the already written text
public boolean isAutomaticCompletionChar(char c)
isAutomaticCompletionChar
in class CompletionEngine
public void runAutomaticCompletion(SHEditor editor, String text, int position, char c)
isAutomaticCompletionChar
always returns
false).
runAutomaticCompletion
in class CompletionEngine
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |