public class Restart extends AbstractActionWithNoRunningTest implements MenuCreator
MenuCreator.MENU_LOCATION
Modifier and Type | Field and Description |
---|---|
static String |
SUN_JAVA_COMMAND
Sun property pointing the main class and its arguments.
|
Constructor and Description |
---|
Restart() |
Modifier and Type | Method and Description |
---|---|
void |
doActionAfterCheck(ActionEvent e)
Called to handle
ActionEvent only if no test is running |
Set<String> |
getActionNames() |
JMenuItem[] |
getMenuItemsAtLocation(MenuCreator.MENU_LOCATION location)
MenuItems to be added in location menu
|
JMenu[] |
getTopLevelMenus() |
void |
localeChanged()
Update Top Level menu on Locale Change
|
boolean |
localeChanged(MenuElement menu) |
static void |
restartApplication(Runnable runBeforeRestart)
Restart the current Java application
|
doAction
getParentFrame, popupCheckExistingFileListener, popupShouldSave
public static final String SUN_JAVA_COMMAND
public void doActionAfterCheck(ActionEvent e)
AbstractActionWithNoRunningTest
ActionEvent
only if no test is runningdoActionAfterCheck
in class AbstractActionWithNoRunningTest
e
- ActionEvent
Command.doAction(ActionEvent)
public static void restartApplication(Runnable runBeforeRestart)
runBeforeRestart
- some custom code to be run before restartingpublic Set<String> getActionNames()
getActionNames
in interface Command
Command.getActionNames()
public JMenuItem[] getMenuItemsAtLocation(MenuCreator.MENU_LOCATION location)
MenuCreator
getMenuItemsAtLocation
in interface MenuCreator
location
- in top menuJMenuItem
public JMenu[] getTopLevelMenus()
getTopLevelMenus
in interface MenuCreator
public boolean localeChanged(MenuElement menu)
localeChanged
in interface MenuCreator
menu
- MenuElementpublic void localeChanged()
MenuCreator
localeChanged
in interface MenuCreator
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.