1 | public class CreateAliasCommand implements ICommand↵ | | 1 | public class GotoPreviousResultsTabCommand implements ICommand
↵
|
2 | {↵ | | 2 | {
↵
|
3 | /** Application API. */↵ | | 3 | /** 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 previous results↵
|
| | | 11 | * tab for.
↵
|
9 | *↵ | | 12 | *
↵
|
10 | * @throws IllegalArgumentException↵ | | 13 | * @throws IllegalArgumentException
↵
|
11 | * Thrown if a <TT>null</TT> <tt>IApplication</tt> passed.↵ | | 14 | * Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
↵
|
12 | */↵ | | 15 | */
↵
|
13 | public CreateAliasCommand(IApplication app)↵ | | 16 | public GotoPreviousResultsTabCommand(ISQLPanelAPI panel)
↵
|
14 | {↵ | | 17 | {
↵
|
15 | super();↵ | | 18 | super();
↵
|
16 | if (app == null)↵ | | 19 | if (panel == null)
↵
|
17 | {↵ | | 20 | {
↵
|
18 | throw new IllegalArgumentException("IApplication == null");↵ | | 21 | throw new IllegalArgumentException("ISession == null");
↵
|
19 | }↵ | | 22 | }
↵
|
20 | _app = app;↵ | | 23 | _↵
|
21 | }↵ | | |
|
| | | 24 | panel = panel;↵
|
| | | 25 | }↵
|
| | | 26 |
↵
|
22 | /**↵ | | 27 | /**
↵
|
23 | * Execute command.↵ | | 28 | * Display the previous results tab.
↵
|
24 | */↵ | | 29 | */
↵
|
25 | public void execute()↵ | | 30 | public void execute()
↵
|
26 | {↵ | | 31 | {
↵
|
27 | _app.getWindowManager().showNewAliasInternalFrame() | | 32 | _panel.gotoPreviousResultsTab()
|