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