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.


CLIENT_PROPERTY_INTERPRETER_PROVIDER


doQuery

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

perform the completions query.

Parameters

cc -
resultSet -

Returns:

the count

search for examples view on GitHub view source


escapeHtml

escapeHtml( String s ) → String

Returns:

java.lang.String

search for examples view on GitHub view source


getLocalsCompletions

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

Returns:

int

search for examples view on GitHub view source


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 source