public class ExitMainAction extends MainWindowAction
Modifier and Type | Field and Description |
---|---|
static boolean |
exitSystem
If it is
true the whole application is exited via
System.exit(int) . |
private static long |
serialVersionUID |
java.awt.event.WindowListener |
windowListener |
mainWindow
SHORTCUT_KEY_MASK
Constructor and Description |
---|
ExitMainAction(MainWindow mainWindow) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected void |
exitMain() |
void |
exitMainWithoutInteraction()
This method closes the main window directly without asking
the user.
|
void |
saveSettings()
makes all GUI settings persistence; this method is also called by the Eclipse
integration to store the settings
|
getMediator
getIcon, getMenuPath, getName, getPriority, getSmallIcon, getTooltip, isSelected, setAcceleratorKey, setAcceleratorLetter, setIcon, setLargeIcon, setLargeIcon, setMenuPath, setName, setPriority, setSelected, setSmallIcon, setTooltip
public static boolean exitSystem
true
the whole application is exited via
System.exit(int)
. If it is false
the main window is
only closed and the application will be still alive.private static final long serialVersionUID
public final java.awt.event.WindowListener windowListener
public ExitMainAction(MainWindow mainWindow)
protected void exitMain()
public void saveSettings()
public void exitMainWithoutInteraction()
This method closes the main window directly without asking the user.
This functionality must be available separate for developers because for instance the Eclipse integration has to close the main window when Eclipse is closed.
public void actionPerformed(java.awt.event.ActionEvent e)