public class RestartAction extends JosmAction
scchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
RestartAction()
Constructs a new
RestartAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
static HelpAwareOptionPane.ButtonSpec[] |
getButtonSpecs()
Returns default
ButtonSpec instances for this action (Restart/Cancel). |
static HelpAwareOptionPane.ButtonSpec |
getCancelButtonSpec()
Returns a new
ButtonSpec instance that do not perform this action. |
static HelpAwareOptionPane.ButtonSpec |
getRestartButtonSpec()
Returns a new
ButtonSpec instance that performs this action. |
static boolean |
isRestartSupported()
Determines if restarting the application should be possible on this platform.
|
static void |
restartJOSM()
Restarts the current Java application
|
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledStateaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic RestartAction()
RestartAction.public void actionPerformed(ActionEvent e)
public static boolean isRestartSupported()
true if the mandatory system property sun.java.command is defined, false otherwise.public static void restartJOSM() throws IOException
IOExceptionpublic static HelpAwareOptionPane.ButtonSpec getRestartButtonSpec()
ButtonSpec instance that performs this action.ButtonSpec instance that performs this action.public static HelpAwareOptionPane.ButtonSpec getCancelButtonSpec()
ButtonSpec instance that do not perform this action.ButtonSpec instance that do not perform this action.public static HelpAwareOptionPane.ButtonSpec[] getButtonSpecs()
ButtonSpec instances for this action (Restart/Cancel).ButtonSpec instances for this action.getRestartButtonSpec(),
getCancelButtonSpec()