Package editor
Class InitializerCompletionHandler
- java.lang.Object
-
- editor.AbstractPathCompletionHandler
-
- editor.InitializerCompletionHandler
-
- All Implemented Interfaces:
IPathCompletionHandler
public class InitializerCompletionHandler extends AbstractPathCompletionHandler
-
-
Constructor Summary
Constructors Constructor Description InitializerCompletionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private IObjectInitializerExpressionfindObjectInitializerExpression(IParsedElement parsedElement)booleanhandleCompletePath(ISymbolTable transientSymTable)private booleanisDoubleColonAtCaret()static booleanisInitializerStart(IParsedElement parsedElement)-
Methods inherited from class editor.AbstractPathCompletionHandler
displayFeaturePathCompletionBeanInfoPopup, displayPathCompletionBeanInfoPopup, getGosuEditor, getMemberPathFromPath, getPathAtCaret, getRootBeanFromPath, getSingleNameAtCaret, getSymbolAtCaret, getWordAtCaret, getWordBeforeCaret, isWordAtCaret, setGosuEditor
-
-
-
-
Method Detail
-
handleCompletePath
public boolean handleCompletePath(ISymbolTable transientSymTable)
- Parameters:
transientSymTable- The symbol table corresponding with the scope at the editor's caret position.- Returns:
- True if this handler handled path completion. Note it is the handler's responsibility to determine whether or not it can handle completing the path. If it can't, it should return false and have no side effects on the system.
-
isDoubleColonAtCaret
private boolean isDoubleColonAtCaret()
-
findObjectInitializerExpression
private IObjectInitializerExpression findObjectInitializerExpression(IParsedElement parsedElement)
-
isInitializerStart
public static boolean isInitializerStart(IParsedElement parsedElement)
-
-