use of org.fife.ui.autocomplete.BasicCompletion in project knime-core by knime.
the class StringManipulationNodeDialog method createCompletionProvider.
/**
* Create a simple provider that adds some Java-related completions.
*
* @return The completion provider.
* @since 3.3
*/
protected KnimeCompletionProvider createCompletionProvider() {
m_completionProvider = new JavaScriptingCompletionProvider();
Collection<Manipulator> manipulators = StringManipulatorProvider.getDefault().getManipulators(ManipulatorProvider.ALL_CATEGORY);
for (Manipulator m : manipulators) {
// A BasicCompletion is just a straightforward word completion.
m_completionProvider.addCompletion(new BasicCompletion(m_completionProvider, m.getName(), m.getDisplayName(), m.getDescription()));
}
return m_completionProvider;
}
Aggregations