1 | public class CreateDriverCommand implements ICommand↵ | | 1 | public class CloseAllSQLResultTabsCommand implements ICommand↵
|
2 | {↵ | | 2 | {↵
|
3 | /** Application API. */↵ | | 3 | ↵
|
4 | private final IApplication _app;↵ | | 4 | private final ISQLPanelAPI _api;↵
|
|
5 | /**↵ | | 5 | /**↵
|
6 | * Ctor.↵ | | 6 | * Ctor.↵
|
7 | *↵ | | 7 | *↵
|
8 | * @param app Application API.↵ | | 8 | * @param ap↵
|
9 | */↵ | | |
|
10 | public CreateDriverCommand(IApplication↵ | | 9 | i↵
|
| | | 10 | *↵
|
| | | 11 | * @throws IllegalArgumentException↵
|
| | | 12 | * Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.↵
|
| | | 13 | */↵
|
11 | app)↵ | | 14 | public CloseAllSQLResultTabsCommand(ISQLPanelAPI api)↵
|
12 | {↵ | | 15 | {↵
|
13 | super();↵ | | 16 | super();↵
|
14 | if (app == null)↵ | | 17 | if (api == null)↵
|
15 | {↵ | | 18 | {↵
|
16 | throw new IllegalArgumentException("IApplication == null");↵ | | 19 | throw new IllegalArgumentException("ISQLPanelAPI == null");↵
|
17 | }↵ | | 20 | }↵
|
|
18 | _app = app;↵ | | 21 | _api = api;↵
|
19 | }↵ | | 22 | }↵
|
|
20 | public void execute()↵ | | 23 | public void execute()↵
|
21 | {↵ | | 24 | {↵
|
22 | _app.getWindowManager().showNewDriverInternalFrame() | | 25 | _api.closeAllSQLResultTabs()
|