org.das2.jythoncompletion.CompletionSupport

support functions for Jython editor completions.


checkJavaSubClass

checkJavaSubClass( javax.swing.text.JTextComponent editor ) → CompletionContext

is the carot within a subclass of an identifiable Java class? TODO: this is a proof-of-concept kludge right now, where it just looks for g.*

Parameters

editor - a JTextComponent

Returns:

null or the CompletionContext for this.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getCompletionContext

getCompletionContext( javax.swing.text.JTextComponent editor ) → CompletionContext

get the completion context for the editor at the carot position.

Parameters

editor - the editor component containing the script and the carot position.

Returns:

the completion context

[search for examples] [view on GitHub] [view on old javadoc] [view source]

getCompletionContext( String line, int pos, int i0, int i1, int i2 ) → CompletionContext