File tree Expand file tree Collapse file tree
hironico-minisql/src/main/java/net/hironico/minisql/ui/dbexplorer/action Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import net .hironico .minisql .ui .dbexplorer .SchemaExplorerPanel ;
88import net .hironico .common .swing .ribbon .AbstractRibbonAction ;
99
10+ /**
11+ * Base class for ribbon actions of the Db Explorer Panel
12+ */
1013public abstract class AbstractDbExplorerAction extends AbstractRibbonAction {
1114
12- private static final long serialVersionUID = 1L ;
13-
15+ /**
16+ * Creates a new action with name and icon
17+ * @param name is the name of the action acting as a label for the ui
18+ * @param iconName name of the icon file to use for ribbon button. can be null
19+ */
1420 public AbstractDbExplorerAction (String name , String iconName ) {
1521 super (name , iconName );
1622 }
1723
24+ /**
25+ *
26+ * @return the Schema explorer panel from the main window
27+ */
1828 protected SchemaExplorerPanel getExplorerPanel () {
1929 return MainWindow .getInstance ().getSchemaExplorerPanel ();
2030 }
2131
32+ /**
33+ * Display a new query panel tab in the editors tab
34+ * @return the newly created QueryPanel
35+ */
2236 protected QueryPanel showNewQueryPanel () {
2337 String title = this .getExplorerPanel ().getSelectedConnectionName ();
2438
You can’t perform that action at this time.
0 commit comments