1 | public class CloseAllSQLResultTabsCommand implements ICommand↵ | | 1 | public class GotoNextResultsTabCommand implements ICommand
↵
|
2 | {↵ | | 2 | {↵
|
| | | 3 | /** The current panel. */
↵
|
3 | private final ISQLPanelAPI _api;↵ | | 4 | private final ISQLPanelAPI _↵
|
| | | 5 | panel;↵
|
| | | 6 |
↵
|
4 | /**↵ | | 7 | /**
↵
|
5 | * Ctor.↵ | | 8 | * Ctor.
↵
|
6 | *↵ | | 9 | *
↵
|
7 | * @param api↵ | | 10 | * @param panel The SQL Panel we want to display the next results↵
|
| | | 11 | * tab for.
↵
|
8 | *↵ | | 12 | *
↵
|
9 | * @throws IllegalArgumentException↵ | | 13 | * @throws IllegalArgumentException
↵
|
10 | * Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.↵ | | 14 | * Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
↵
|
11 | */↵ | | 15 | */
↵
|
12 | public CloseAllSQLResultTabsCommand(ISQLPanelAPI api)↵ | | 16 | public GotoNextResultsTabCommand(ISQLPanelAPI panel)
↵
|
13 | {↵ | | 17 | {
↵
|
14 | super();↵ | | 18 | super();
↵
|
15 | if (api == null)↵ | | 19 | if (panel == null)
↵
|
16 | {↵ | | 20 | {
↵
|
17 | throw new IllegalArgumentException("ISQLPanelAPI == null");↵ | | 21 | throw new IllegalArgumentException("ISQLPanelAPI == null");
↵
|
18 | }↵ | | 22 | }↵
|
| | | 23 |
↵
|
19 | _api = api;↵ | | 24 | _↵
|
20 | }↵ | | |
|
| | | 25 | panel = panel;↵
|
| | | 26 | }↵
|
|
| | | 27 | /**↵
|
| | | 28 | * Display the next results tab.↵
|
| | | 29 | */
↵
|
21 | public void execute()↵ | | 30 | public void execute()
↵
|
22 | {↵ | | 31 | {
↵
|
23 | _api.closeAllSQLResultTabs() | | 32 | _panel.gotoNextResultsTab()
|