Skip to content

Commit 4a1b006

Browse files
committed
java doc
1 parent bc75dcf commit 4a1b006

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

hironico-minisql/src/main/java/net/hironico/minisql/ui/dbexplorer/action/AbstractDbExplorerAction.java

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,32 @@
77
import net.hironico.minisql.ui.dbexplorer.SchemaExplorerPanel;
88
import net.hironico.common.swing.ribbon.AbstractRibbonAction;
99

10+
/**
11+
* Base class for ribbon actions of the Db Explorer Panel
12+
*/
1013
public 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

0 commit comments

Comments
 (0)