|
Gridarta Editor
|
Exits the application. More...
Inheritance diagram for net.sf.gridarta.mainactions.DefaultExiter:
Collaboration diagram for net.sf.gridarta.mainactions.DefaultExiter:Public Member Functions | |
| void | addExiterListener (@NotNull final ExiterListener listener) |
| Adds an ExiterListener to be notified. More... | |
| DefaultExiter (@NotNull final Window mainViewFrame) | |
| Creates a new instance. More... | |
| void | doExit (final int returnCode) |
| Exits the application. More... | |
| void | removeExiterListener (@NotNull final ExiterListener listener) |
| Removes an ExiterListener to be notified. More... | |
Static Public Member Functions | |
| static void | callExit (final int returnCode) |
| Calls System#exit(int) or does nothing depending on the user's settings. More... | |
Private Attributes | |
| final EventListenerList2< ExiterListener > | exiterListeners = new EventListenerList2<>(ExiterListener.class) |
| The ExiterListeners to notify. More... | |
| final Window | mainViewFrame |
| The main window's frame. More... | |
Static Private Attributes | |
| static final ActionBuilder | ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta") |
| The ActionBuilder. More... | |
| static final Category | LOG = Logger.getLogger(DefaultExiter.class) |
| The logger for printing log messages. More... | |
| static final Preferences | PREFERENCES = Preferences.userNodeForPackage(MainControl.class) |
| The Preferences. More... | |
Exits the application.
Definition at line 42 of file DefaultExiter.java.
| net.sf.gridarta.mainactions.DefaultExiter.DefaultExiter | ( | @NotNull final Window | mainViewFrame | ) |
Creates a new instance.
| mainViewFrame | the main window's frame |
Definition at line 78 of file DefaultExiter.java.
References net.sf.gridarta.mainactions.DefaultExiter.mainViewFrame.
| void net.sf.gridarta.mainactions.DefaultExiter.addExiterListener | ( | @NotNull final ExiterListener | listener | ) |
Adds an ExiterListener to be notified.
| listener | the listener |
Implements net.sf.gridarta.utils.Exiter.
Definition at line 83 of file DefaultExiter.java.
References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.add().
Here is the call graph for this function:
|
static |
Calls System#exit(int) or does nothing depending on the user's settings.
| returnCode | the return code to pass |
Definition at line 128 of file DefaultExiter.java.
References net.sf.gridarta.utils.ActionBuilderUtils.getString(), net.sf.gridarta.gui.dialog.prefs.DevPreferences.PREFERENCES_SYSTEM_EXIT, and net.sf.gridarta.gui.dialog.prefs.DevPreferences.PREFERENCES_SYSTEM_EXIT_DEFAULT.
Referenced by net.sf.gridarta.maincontrol.GridartaEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.checkForErrors(), net.sf.gridarta.mainactions.DefaultExiter.doExit(), and net.sf.gridarta.maincontrol.GridartaEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.waitDialog().
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.mainactions.DefaultExiter.doExit | ( | final int | returnCode | ) |
Exits the application.
| returnCode | the application's return code |
Implements net.sf.gridarta.utils.Exiter.
Definition at line 93 of file DefaultExiter.java.
References net.sf.gridarta.mainactions.DefaultExiter.callExit(), and net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.getListeners().
Here is the call graph for this function:| void net.sf.gridarta.mainactions.DefaultExiter.removeExiterListener | ( | @NotNull final ExiterListener | listener | ) |
Removes an ExiterListener to be notified.
| listener | the listener |
Implements net.sf.gridarta.utils.Exiter.
Definition at line 88 of file DefaultExiter.java.
References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.remove().
Here is the call graph for this function:
|
staticprivate |
The ActionBuilder.
Definition at line 48 of file DefaultExiter.java.
|
private |
The ExiterListeners to notify.
Definition at line 72 of file DefaultExiter.java.
|
staticprivate |
The logger for printing log messages.
Definition at line 54 of file DefaultExiter.java.
|
private |
The main window's frame.
Definition at line 66 of file DefaultExiter.java.
Referenced by net.sf.gridarta.mainactions.DefaultExiter.DefaultExiter().
|
staticprivate |
The Preferences.
Definition at line 60 of file DefaultExiter.java.