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