1 | public class CloseAllButCurrentSessionsAction extends SquirrelAction↵ | | 1 | public class CloseAllSessionsAction extends SquirrelAction↵
|
2 | {↵ | | 2 | {↵
|
3 | /**↵ | | 3 | /**↵
|
4 | * Ctor.↵ | | 4 | * Ctor.↵
|
5 | *↵ | | 5 | *↵
|
6 | * @param app Application API.↵ | | 6 | * @param app Application API.↵
|
7 | */↵ | | 7 | */↵
|
8 | public CloseAllButCurrentSessionsAction(IApplication app)↵ | | 8 | public CloseAllSessionsAction(IApplication app)↵
|
9 | {↵ | | 9 | {↵
|
10 | super(app);↵ | | 10 | super(app);↵
|
11 | }↵ | | 11 | }↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * Perform this action. Use the <TT>CloseAllSessionsCommand</TT>.↵ | | 13 | * Perform this action. Use the <TT>CloseAllSessionsCommand</TT>.↵
|
14 | *↵ | | 14 | *↵
|
15 | * @param evt The current event.↵ | | 15 | * @param evt The current event.↵
|
16 | */↵ | | 16 | */↵
|
17 | public void actionPerformed(ActionEvent evt)↵ | | 17 | public void actionPerformed(ActionEvent evt)↵
|
18 | {↵ | | 18 | {↵
|
19 | IApplication app = getApplication();↵ | | 19 | IApplication app = getApplication();↵
|
20 | CursorChanger cursorChg = new CursorChanger(app.getMainFrame());↵ | | 20 | CursorChanger cursorChg = new CursorChanger(app.getMainFrame());↵
|
21 | cursorChg.show();↵ | | 21 | cursorChg.show();↵
|
22 | try↵ | | 22 | try↵
|
23 | {↵ | | 23 | {↵
|
24 | new CloseAllButCurrentSessionsCommand(app).execute();↵ | | 24 | new CloseAllSessionsCommand(app).execute();↵
|
25 | }↵ | | 25 | }↵
|
26 | finally↵ | | 26 | finally↵
|
27 | {↵ | | 27 | {↵
|
28 | cursorChg.restore() | | 28 | cursorChg.restore()
|