Search in sources :

Example 1 with CompletionProvider

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);
}
Also used : DefaultCompletionProvider(org.fife.ui.autocomplete.DefaultCompletionProvider) CompletionProvider(org.fife.ui.autocomplete.CompletionProvider) AutoCompletion(org.fife.ui.autocomplete.AutoCompletion) KeyStroke(javax.swing.KeyStroke)

Example 2 with CompletionProvider

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);
}
Also used : DefaultCompletionProvider(org.fife.ui.autocomplete.DefaultCompletionProvider) CompletionProvider(org.fife.ui.autocomplete.CompletionProvider) AutoCompletion(org.fife.ui.autocomplete.AutoCompletion) KeyStroke(javax.swing.KeyStroke)

Example 3 with CompletionProvider

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);
}
Also used : CompletionProvider(org.fife.ui.autocomplete.CompletionProvider) DefaultCompletionProvider(org.fife.ui.autocomplete.DefaultCompletionProvider) AutoCompletion(org.fife.ui.autocomplete.AutoCompletion) KeyStroke(javax.swing.KeyStroke)

Example 4 with CompletionProvider

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);
}
Also used : DefaultCompletionProvider(org.fife.ui.autocomplete.DefaultCompletionProvider) CompletionProvider(org.fife.ui.autocomplete.CompletionProvider) AutoCompletion(org.fife.ui.autocomplete.AutoCompletion) KeyStroke(javax.swing.KeyStroke)

Example 5 with CompletionProvider

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();
}
Also used : DefaultCompletionProvider(org.fife.ui.autocomplete.DefaultCompletionProvider) CompletionProvider(org.fife.ui.autocomplete.CompletionProvider) DefaultCompletionProvider(org.fife.ui.autocomplete.DefaultCompletionProvider) AutoCompletion(org.fife.ui.autocomplete.AutoCompletion) RSyntaxTextArea(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea) CollapsibleSectionPanel(org.fife.rsta.ui.CollapsibleSectionPanel) RTextScrollPane(org.fife.ui.rtextarea.RTextScrollPane) Font(java.awt.Font)

Aggregations

AutoCompletion (org.fife.ui.autocomplete.AutoCompletion)7 CompletionProvider (org.fife.ui.autocomplete.CompletionProvider)7 DefaultCompletionProvider (org.fife.ui.autocomplete.DefaultCompletionProvider)7 KeyStroke (javax.swing.KeyStroke)6 Font (java.awt.Font)1 CollapsibleSectionPanel (org.fife.rsta.ui.CollapsibleSectionPanel)1 RSyntaxTextArea (org.fife.ui.rsyntaxtextarea.RSyntaxTextArea)1 RTextScrollPane (org.fife.ui.rtextarea.RTextScrollPane)1