1 | public class CloseAllSessionsCommand 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 | */↵ | | |
|
13 | public CloseAllSessionsCommand(IApplication app)↵ | | |
|
14 | throws IllegalArgumentException↵ | | 10 | /↵
|
| | | 11 | public CreateDriverCommand(IApplication app)↵
|
15 | {↵ | | 12 | {↵
|
16 | super();↵ | | 13 | super();↵
|
17 | if (app == null)↵ | | 14 | if (app == null)↵
|
18 | {↵ | | 15 | {↵
|
19 | throw new IllegalArgumentException("IApplication == null");↵ | | 16 | throw new IllegalArgumentException("IApplication == null");↵
|
20 | }↵ | | 17 | }↵
|
|
21 | _app = app;↵ | | 18 | _app = app;↵
|
22 | }↵ | | 19 | }↵
|
|
23 | /**↵ | | |
|
24 | * Close all sessions.↵ | | |
|
25 | */↵ | | |
|
26 | public void execute()↵ | | 20 | public void execute()↵
|
27 | {↵ | | 21 | {↵
|
28 | _app.getSessionManager().closeAllSessions() | | 22 | _app.getWindowManager().showNewDriverInternalFrame()
|