1 | public class NewInvalidObjectsWorksheetAction extends SquirrelAction {↵ | | 1 | public class NewSessionInfoWorksheetAction extends SquirrelAction {↵
|
2 | private Resources _resources;↵ | | 2 | private Resources _resources;↵
|
|
3 | /**↵ | | 3 | /**↵
|
4 | * Ctor.↵ | | 4 | * Ctor.↵
|
5 | *↵ | | 5 | *↵
|
6 | * @param app Application API.↵ | | 6 | * @param app Application API.↵
|
7 | *↵ | | 7 | *↵
|
8 | * @throws IllegalArgumentException↵ | | 8 | * @throws IllegalArgumentException↵
|
9 | * Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.↵ | | 9 | * Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.↵
|
10 | */↵ | | 10 | */↵
|
11 | public NewInvalidObjectsWorksheetAction(IApplication app, Resources rsrc) {↵ | | 11 | public NewSessionInfoWorksheetAction(IApplication app, Resources rsrc) {↵
|
12 | super(app, rsrc);↵ | | 12 | super(app, rsrc);↵
|
13 | _resources = rsrc;↵ | | 13 | _resources = rsrc;↵
|
|
14 | if (app == null) {↵ | | 14 | if (app == null) {↵
|
15 | throw new IllegalArgumentException("Null IApplication passed");↵ | | 15 | throw new IllegalArgumentException("Null IApplication passed");↵
|
16 | }↵ | | 16 | }↵
|
17 | }↵ | | 17 | }↵
|
|
18 | /**↵ | | 18 | /**↵
|
19 | * Display the about box.↵ | | 19 | * Display the about box.↵
|
20 | *↵ | | 20 | *↵
|
21 | * @param evt The event being processed.↵ | | 21 | * @param evt The event being processed.↵
|
22 | */↵ | | 22 | */↵
|
23 | public void actionPerformed(ActionEvent evt) {↵ | | 23 | public void actionPerformed(ActionEvent evt) {↵
|
24 | ISession activeSession = getApplication().getSessionManager().getActiveSession();↵ | | 24 | ISession activeSession = getApplication().getSessionManager().getActiveSession();↵
|
25 | if (activeSession == null)↵ | | 25 | if (activeSession == null)↵
|
26 | throw new IllegalArgumentException("This method should not be called with a null activeSession");↵ | | 26 | throw new IllegalArgumentException("This method should not be called with a null activeSession");↵
|
|
|
27 | final InvalidObjectsInternalFrame sif = new InvalidObjectsInternalFrame(activeSession, _resources);↵ | | 27 | final SessionInfoInternalFrame sif = new SessionInfoInternalFrame(activeSession, _resources);↵
|
28 | getApplication().getMainFrame().addWidget(sif);↵ | | 28 | getApplication().getMainFrame().addWidget(sif);↵
|
|
29 | // If we don't invokeLater here no Short-Cut-Key is sent↵ | | 29 | // If we don't invokeLater here no Short-Cut-Key is sent↵
|
30 | // to the internal frame↵ | | 30 | // to the internal frame↵
|
31 | // seen under java version "1.4.1_01" and Linux↵ | | 31 | // seen under java version "1.4.1_01" and Linux↵
|
32 | SwingUtilities.invokeLater(new Runnable()↵ | | 32 | SwingUtilities.invokeLater(new Runnable()↵
|
33 | {↵ | | 33 | {↵
|
34 | public void run()↵ | | 34 | public void run()↵
|
35 | {↵ | | 35 | {↵
|
36 | sif.setVisible(true);↵ | | 36 | sif.setVisible(true);↵
|
37 | | | 37 |
|