20 package net.sf.gridarta.action;
22 import javax.swing.Action;
29 import net.
sf.japi.swing.action.ActionMethod;
30 import org.jetbrains.annotations.NotNull;
55 public ExitAction(@NotNull
final Exiter exiter, @NotNull
final ScriptEditControl scriptEditControl, @NotNull
final FileControl<?, ?, ?> fileControl, @NotNull
final PickmapChooserControl<?, ?, ?> pickmapChooserControl, @NotNull
final PluginController<?, ?, ?> pluginControl) {
84 public void setAction(@NotNull
final Action action, @NotNull
final String name) {
boolean closeAllMaps()
Invoked when the user wants to close all maps.
void exit()
The action method for "exit".
Graphical User Interface of Gridarta.
final PickmapChooserControl<?, ?, ?> pickmapChooserControl
ExitAction(@NotNull final Exiter exiter, @NotNull final ScriptEditControl scriptEditControl, @NotNull final FileControl<?, ?, ?> fileControl, @NotNull final PickmapChooserControl<?, ?, ?> pickmapChooserControl, @NotNull final PluginController<?, ?, ?> pluginControl)
Creates a new instance.
boolean canExit()
Invoked when the user wants to exit the application.
boolean closeAllTabs()
Close all opened script-tabs.
final ScriptEditControl scriptEditControl
Base package of all Gridarta classes.
final FileControl<?, ?, ?> fileControl
This package contains the classes for the script editor used within the editor to create and modify P...
void doExit(int returnCode)
Exits the application.
boolean canExit()
Prepares existing the application: save modified data (possibly ask the user if applicable).
ScriptEditControl - Manages events and data flow for the script editor entity.
final PluginController<?, ?, ?> pluginControl
Classes implementing the pickmap chooser.
Manages the pickmap panel and most pickmap-related code in general.
boolean canExit()
Prompts the user for all unsaved plugins.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.