Search in sources :

Example 1 with CollapsibleSectionPanel

use of org.fife.rsta.ui.CollapsibleSectionPanel 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

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