1 | public class CreateAliasCommand implements ICommand↵ | | 1 | public class CloseAllSQLResultWindowsCommand 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 api↵
|
9 | *↵ | | 9 | *↵
|
10 | * @throws IllegalArgumentException↵ | | 10 | * @throws IllegalArgumentException↵
|
11 | * Thrown if a <TT>null</TT> <tt>IApplication</tt> passed.↵ | | 11 | * Thrown if a <TT>null</TT> <TT>ISession</TT> passed.↵
|
12 | */↵ | | 12 | */↵
|
13 | public CreateAliasCommand(IApplication app)↵ | | 13 | public CloseAllSQLResultWindowsCommand(ISQLPanelAPI api)↵
|
14 | {↵ | | 14 | {↵
|
15 | super();↵ | | 15 | super();↵
|
16 | if (app == null)↵ | | 16 | if (api == null)↵
|
17 | {↵ | | 17 | {↵
|
18 | throw new IllegalArgumentException("IApplication == null");↵ | | 18 | throw new IllegalArgumentException("ISQLPanelAPI == null");↵
|
19 | }↵ | | 19 | }↵
|
|
20 | _app = app;↵ | | 20 | _api = api;↵
|
21 | }↵ | | 21 | }↵
|
|
22 | /**↵ | | 22 | ↵
|
23 | * Execute command.↵ | | |
|
24 | */↵ | | |
|
25 | public void execute()↵ | | |
|
26 | {↵ | | |
|
27 | _app.getWindowManager().showNewAliasInternal↵ | | 23 | public void execute()↵
|
| | | 24 | {↵
|
28 | Frame() | | 25 | _api.closeAllSQLResultFrames()
|