Search in sources :

Example 1 with SourceTextArea

use of org.lara.interpreter.joptions.panels.editor.tabbed.SourceTextArea in project lara-framework by specs-feup.

the class TabbedListener method changeTabAction.

/*
    private EditorTab getCurrentTab() {
    	return tabbedLaraFiles.getCurrentTab();
    }
    */
private void changeTabAction(ChangeEvent evt) {
    JTabbedPane pane = (JTabbedPane) evt.getSource();
    // Get selected tab
    int sel = pane.getSelectedIndex();
    if (sel < 0) {
        return;
    }
    SourceTextArea nextTab = (SourceTextArea) pane.getComponentAt(sel);
    tabbedLaraFiles.moveTab(nextTab);
}
Also used : SourceTextArea(org.lara.interpreter.joptions.panels.editor.tabbed.SourceTextArea) JTabbedPane(javax.swing.JTabbedPane)

Aggregations

JTabbedPane (javax.swing.JTabbedPane)1 SourceTextArea (org.lara.interpreter.joptions.panels.editor.tabbed.SourceTextArea)1