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();
}
Aggregations