org.das2.jythoncompletion.JythonCompletionTask

Completions for Jython code. The completion task is created with the editor configured for completions (code and caret position within code), and "query" is called which will fill a CompletionResultSet.

JythonCompletionTask( javax.swing.text.JTextComponent t )

create the completion task on the text component, using its content and caret position.


CLIENT_PROPERTY_INTERPRETER_PROVIDER


cancel

cancel( ) → void

Returns:

void (returns nothing)

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


doQuery

doQuery( org.das2.jythoncompletion.CompletionContext cc, org.das2.jythoncompletion.support.CompletionResultSet resultSet ) → int

perform the completions query.

Parameters

cc - a CompletionContext
resultSet - a CompletionResultSet

Returns:

the count

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


escapeHtml

escapeHtml( String s ) → String

Parameters

s - a String

Returns:

java.lang.String

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


getLocalsCompletions

getLocalsCompletions( PythonInterpreter interp, org.das2.jythoncompletion.CompletionContext cc, org.das2.jythoncompletion.support.CompletionResultSet rs ) → int

Parameters

interp - a PythonInterpreter
cc - a CompletionContext
rs - a CompletionResultSet

Returns:

int

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

getLocalsCompletions( PythonInterpreter interp, org.das2.jythoncompletion.CompletionContext cc ) → List

keySort

keySort( java.util.List key, java.util.List[] lists ) → void

sorts all the lists by the first list. See http://stackoverflow.com/questions/15400514/syncronized-sorting-between-two-arraylists/24688828#24688828 Note the key list must be repeated for it to be sorted as well!

Parameters

key - the list used to sort
lists - the lists to be sorted, often containing the key as well.

Returns:

void (returns nothing)

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


query

query( org.das2.jythoncompletion.support.CompletionResultSet arg0 ) → void

Parameters

arg0 - a CompletionResultSet

Returns:

void (returns nothing)

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


refresh

refresh( org.das2.jythoncompletion.support.CompletionResultSet arg0 ) → void

Parameters

arg0 - a CompletionResultSet

Returns:

void (returns nothing)

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