|
Gridarta Editor
|
This class handles updating the map editor. More...
Inheritance diagram for net.sf.gridarta.updater.UpdaterManager:
Collaboration diagram for net.sf.gridarta.updater.UpdaterManager:Public Member Functions | |
| void | setAction (@NotNull final Action action, @NotNull final String name) |
| Sets the Action instance for this editor action. More... | |
| void | startup () |
| Eventually perform an update during startup. More... | |
| void | update () |
| Perform an update. More... | |
| UpdaterManager (@NotNull final Exiter exiter, @NotNull final MapManager<?, ?, ?> mapManager, @NotNull final Component parentComponent, @NotNull final String updateFileName) | |
| Creates a new instance. More... | |
Static Public Attributes | |
| static final boolean | AUTO_CHECK_DEFAULT = false |
| Preferences default value for AUTO_CHECK_KEY. More... | |
| static final String | AUTO_CHECK_KEY = "UpdaterAutoCheck" |
| Preferences key whether to automatically check for updates. More... | |
| static final int | INTERVAL_DEFAULT = 2 |
| Preferences default value for INTERVAL_KEY. More... | |
| static final String | INTERVAL_KEY = "UpdaterInterval" |
| Preferences key for selected update interval. More... | |
Private Attributes | |
| final Exiter | exiter |
| The Exiter for terminating the application. More... | |
| final boolean | hasUpdateURL |
| Whether an update URL is defined. More... | |
| final MapManager<?, ?, ?> | mapManager |
| The map manager to use. More... | |
| final Component | parentComponent |
| The component to show dialogs on. More... | |
| final String | updateFileName |
| The file to update. More... | |
Static Private Attributes | |
| static final ActionBuilder | ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta") |
| Action Builder to create Actions. More... | |
| static final Preferences | PREFERENCES = Preferences.userNodeForPackage(MainControl.class) |
| Preferences. More... | |
| static final long [] | UPDATE_TIMES |
| The times for update calculation. More... | |
This class handles updating the map editor.
Definition at line 38 of file UpdaterManager.java.
| net.sf.gridarta.updater.UpdaterManager.UpdaterManager | ( | @NotNull final Exiter | exiter, |
| @NotNull final MapManager<?, ?, ?> | mapManager, | ||
| @NotNull final Component | parentComponent, | ||
| @NotNull final String | updateFileName | ||
| ) |
Creates a new instance.
| exiter | the exiter for terminating the application |
| mapManager | the map manager to use |
| parentComponent | the parent component to show dialogs on |
| updateFileName | the file to update |
Definition at line 119 of file UpdaterManager.java.
References net.sf.gridarta.updater.UpdaterManager.exiter, net.sf.gridarta.updater.UpdaterManager.mapManager, net.sf.gridarta.updater.UpdaterManager.parentComponent, and net.sf.gridarta.updater.UpdaterManager.updateFileName.
| void net.sf.gridarta.updater.UpdaterManager.setAction | ( | @NotNull final Action | action, |
| @NotNull final String | name | ||
| ) |
Sets the Action instance for this editor action.
| action | the action instance |
| name | the name of the action |
Implements net.sf.gridarta.utils.EditorAction.
Definition at line 156 of file UpdaterManager.java.
| void net.sf.gridarta.updater.UpdaterManager.startup | ( | ) |
Eventually perform an update during startup.
Definition at line 132 of file UpdaterManager.java.
References net.sf.gridarta.updater.Updater.LAST_UPDATE_KEY, and net.sf.gridarta.updater.UpdaterManager.update().
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.updater.UpdaterManager.update | ( | ) |
Perform an update.
Definition at line 147 of file UpdaterManager.java.
Referenced by net.sf.gridarta.updater.UpdaterManager.startup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Action Builder to create Actions.
Definition at line 44 of file UpdaterManager.java.
|
static |
Preferences default value for AUTO_CHECK_KEY.
Definition at line 61 of file UpdaterManager.java.
Referenced by net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.createComboBox(), net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.createUpdatePanel(), net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.defaults(), net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.isChanged(), and net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.revert().
|
static |
Preferences key whether to automatically check for updates.
Definition at line 56 of file UpdaterManager.java.
Referenced by net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.apply(), net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.createComboBox(), net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.createUpdatePanel(), net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.isChanged(), and net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.revert().
|
private |
The Exiter for terminating the application.
Definition at line 87 of file UpdaterManager.java.
Referenced by net.sf.gridarta.updater.UpdaterManager.UpdaterManager().
|
private |
Whether an update URL is defined.
Definition at line 110 of file UpdaterManager.java.
|
static |
Preferences default value for INTERVAL_KEY.
Definition at line 72 of file UpdaterManager.java.
Referenced by net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.createComboBox(), net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.defaults(), net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.isChanged(), and net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.revert().
|
static |
Preferences key for selected update interval.
Definition at line 67 of file UpdaterManager.java.
Referenced by net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.apply(), net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.createComboBox(), net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.isChanged(), and net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.revert().
|
private |
The map manager to use.
Definition at line 93 of file UpdaterManager.java.
Referenced by net.sf.gridarta.updater.UpdaterManager.UpdaterManager().
|
private |
The component to show dialogs on.
Definition at line 99 of file UpdaterManager.java.
Referenced by net.sf.gridarta.updater.UpdaterManager.UpdaterManager().
|
staticprivate |
Preferences.
Definition at line 50 of file UpdaterManager.java.
|
staticprivate |
The times for update calculation.
Definition at line 77 of file UpdaterManager.java.
|
private |
The file to update.
Definition at line 105 of file UpdaterManager.java.
Referenced by net.sf.gridarta.updater.UpdaterManager.UpdaterManager().