| java.lang.Object tide.editor.completions.CompletionManager
CompletionManager | public class CompletionManager (Code) | | Some delegated inserts called from the EditorDocumentFilter.
may popup some completion proposal dialogs in certain cases.
(on CTRL+space, CTRL+T, dot, ampersand, ...)
TODO: wait some 200ms and only popup if nothing else was typed...
TODO: ctrl+space ignores already typed items (for attributes)
|
Method Summary | |
public String | ampersandPressed(DocumentFilter.FilterBypass fb, int offset, int length, AttributeSet attrs) | public void | closeLastCompletionDialog() | public void | closeOpenedDialogs() Called when changing source in the editor panel. | public void | controlSpacePressed(FileItem editedSource, SimpleDocument doc, int posInSource) Completion with local variables.
(like "this" plus local variables) + types starting with
TODO: better use scopes (let CTRL+ space trigger other completions... | public void | controlTPressed(FileItem editedSource, SimpleDocument doc, int posInSource, boolean projectOnly, String initialTextForBrowseMode) | public void | dotWithoutCompletion(FileItem editedSource, SimpleDocument doc, int posInSource) | public List<FileItem> | locateEventualMissingImport(FileItem editedSource, String javaNameToLocate) | public FileItem | locateType(FileItem editedSource, String javaNameToLocate, boolean _allowLazyInexactSearch) Also used from the editor. | public String | openingParenthesisPressed(FileItem editedSource, DocumentFilter.FilterBypass fb, int offset, int length, AttributeSet attrs) | public String | pointPressed(FileItem editedSource, DocumentFilter.FilterBypass fb, int offset, int length, AttributeSet attrs) "." completion, complete class names (static), constructors (if new preceeds) and field and methods names.
One of the most *tuned* methods to give nice results. | public String | resolveClassName(FileItem editedSource, IDChainElement ide, SingleClassLoader scl) For the completion based on the reflection, the full class name is all what we need. | public String | spacePressed(DocumentFilter.FilterBypass fb, int offset, int length, AttributeSet attrs) space pressed. |
allowLazyInexactSearch | final public boolean allowLazyInexactSearch(Code) | | |
closeLastCompletionDialog | public void closeLastCompletionDialog()(Code) | | called when "esc" pressed in the editor
|
closeOpenedDialogs | public void closeOpenedDialogs()(Code) | | Called when changing source in the editor panel.
|
controlSpacePressed | public void controlSpacePressed(FileItem editedSource, SimpleDocument doc, int posInSource)(Code) | | Completion with local variables.
(like "this" plus local variables) + types starting with
TODO: better use scopes (let CTRL+ space trigger other completions... ??)
|
controlTPressed | public void controlTPressed(FileItem editedSource, SimpleDocument doc, int posInSource, boolean projectOnly, String initialTextForBrowseMode)(Code) | | Shows all types in the project and libs
(TODO: look at name starting with typed text fragment before position if any)
|
locateType | public FileItem locateType(FileItem editedSource, String javaNameToLocate, boolean _allowLazyInexactSearch)(Code) | | Also used from the editor.
|
pointPressed | public String pointPressed(FileItem editedSource, DocumentFilter.FilterBypass fb, int offset, int length, AttributeSet attrs) throws Exception(Code) | | "." completion, complete class names (static), constructors (if new preceeds) and field and methods names.
One of the most *tuned* methods to give nice results. Don't shows local variables, because adter a "dot" they can't come.
javax.swing.JFrame#
a#
a.b.c#
"abc"#
new Point2D#
new Throwable().printStackTrace();
a[3][5]#
the replacement that was selected |
|
|