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