use of org.apache.cayenne.modeler.editor.SQLTemplateTabbedView in project cayenne by apache.
the class TextCompoundEdit method restoreSelections.
private void restoreSelections() {
EditorView editorView = ((CayenneModelerFrame) Application.getInstance().getFrameController().getView()).getView();
editorView.getProjectTreeView().getSelectionModel().setSelectionPath(treePath);
if (tabbedPane != null) {
tabbedPane.setSelectedIndex(selectedTabIndex);
if (tabbedPane instanceof SQLTemplateTabbedView) {
((SQLTemplateTabbedView) tabbedPane).getScriptsTab().setSelectedIndex(selectedItem);
}
}
}
Aggregations