Search in sources :

Example 1 with SQLTemplateTabbedView

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);
        }
    }
}
Also used : SQLTemplateTabbedView(org.apache.cayenne.modeler.editor.SQLTemplateTabbedView) EditorView(org.apache.cayenne.modeler.editor.EditorView) CayenneModelerFrame(org.apache.cayenne.modeler.CayenneModelerFrame)

Aggregations

CayenneModelerFrame (org.apache.cayenne.modeler.CayenneModelerFrame)1 EditorView (org.apache.cayenne.modeler.editor.EditorView)1 SQLTemplateTabbedView (org.apache.cayenne.modeler.editor.SQLTemplateTabbedView)1