1 | public class GotoPreviousResultsTabCommand implements ICommand
↵ | | 1 | public class ReturnResultTabCommand implements ICommand↵
|
2 | {
↵ | | 2 | {↵
|
3 | /** Current panel. */
↵ | | 3 | /** Frame to be returned. */↵
|
4 | private final ISQLPanelAPI _panel;↵ | | 4 | private ↵
|
5 |
↵ | | 5 | ResultFrame _resultFrame;↵
|
|
6 | /**
↵ | | 6 | /**↵
|
7 | * Ctor.
↵ | | 7 | * Ctor.↵
|
8 | *
↵ | | 8 | *↵
|
9 | * @param panel The SQL Panel we want to display the previous results↵ | | 9 | * @param resultFrame Frame to be re↵
|
10 | * tab for.
↵ | | 10 | turned to tabbed folder.↵
|
11 | *
↵ | | 11 | *↵
|
12 | * @throws IllegalArgumentException
↵ | | 12 | * @throws IllegalArgumentException↵
|
13 | * Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
↵ | | 13 | * Thrown if a <TT>null</TT> <TT>ResultFrame</TT> passed.↵
|
14 | */
↵ | | 14 | */↵
|
15 | public GotoPreviousResultsTabCommand(ISQLPanelAPI panel)
↵ | | 15 | public ReturnResultTabCommand(ResultFrame resultFrame)↵
|
16 | {
↵ | | 16 | {↵
|
17 | super();
↵ | | 17 | super();↵
|
18 | if (panel == null)
↵ | | 18 | if (resultFrame == null)↵
|
19 | {
↵ | | 19 | {↵
|
20 | throw new IllegalArgumentException("ISession == null");↵ | | 20 | throw new IllegalArgumentException("↵
|
21 | }↵ | | |
|
22 | _panel = panel;↵ | | |
|
23 | }↵ | | |
|
|
24 | /**↵ | | |
|
25 | * Display the previous results tab.↵ | | |
|
26 | */
↵ | | 21 | Null ResultFrame passed");↵
|
| | | 22 | }↵
|
|
| | | 23 | _resultFrame = resultFrame;↵
|
| | | 24 | }↵
|
|
27 | public void execute()
↵ | | 25 | public void execute()↵
|
28 | {
↵ | | 26 | {↵
|
29 | _panel.gotoPreviousResultsTab() | | 27 | _resultFrame.returnToTabbedPane()
|