use of org.fife.ui.autocomplete.CompletionProvider in project fql by CategoricalData.
the class AqlCodeEditor method doTemplates.
@Override
protected void doTemplates() {
CompletionProvider provider = createCompletionProvider();
AutoCompletion ac = new AutoCompletion(provider);
KeyStroke key = KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, InputEvent.META_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK);
ac.setTriggerKey(key);
ac.install(topArea);
}
use of org.fife.ui.autocomplete.CompletionProvider in project fql by CategoricalData.
the class FQLPPCodeEditor method doTemplates.
@Override
protected void doTemplates() {
CompletionProvider provider = createCompletionProvider();
AutoCompletion ac = new AutoCompletion(provider);
KeyStroke key = KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, InputEvent.META_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK);
ac.setTriggerKey(key);
ac.install(topArea);
}
use of org.fife.ui.autocomplete.CompletionProvider in project fql by CategoricalData.
the class OplCodeEditor method doTemplates.
@Override
protected void doTemplates() {
CompletionProvider provider = createCompletionProvider();
AutoCompletion ac = new AutoCompletion(provider);
KeyStroke key = KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, InputEvent.META_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK);
ac.setTriggerKey(key);
ac.install(topArea);
}
use of org.fife.ui.autocomplete.CompletionProvider in project fql by CategoricalData.
the class FqlCodeEditor method doTemplates.
@Override
protected void doTemplates() {
CompletionProvider provider = createCompletionProvider();
AutoCompletion ac = new AutoCompletion(provider);
KeyStroke key = KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, InputEvent.META_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK);
ac.setTriggerKey(key);
ac.install(topArea);
}
use of org.fife.ui.autocomplete.CompletionProvider in project omegat by omegat-org.
the class RichScriptEditor method initLayout.
@Override
public void initLayout(ScriptingWindow scriptingWindow) {
m_scriptingWindow = scriptingWindow;
m_scriptEditor = new RSyntaxTextArea();
m_scriptEditor.setFont(new Font(Font.MONOSPACED, Font.PLAIN, m_scriptEditor.getFont().getSize()));
CompletionProvider provider = new DefaultCompletionProvider();
AutoCompletion ac = new AutoCompletion(provider);
ac.install(m_scriptEditor);
m_scriptEditor.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_GROOVY);
m_scriptEditor.setCodeFoldingEnabled(true);
RTextScrollPane scrollPaneEditor = new RTextScrollPane(m_scriptEditor);
// scrollPaneEditor.setMinimumSize(minimumSize1);
m_csp = new CollapsibleSectionPanel();
m_scriptingWindow.frame.getContentPane().add(m_csp);
m_csp.add(scrollPaneEditor);
initSearchDialogs();
}
Aggregations