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
|
doActiongetParentFrame, popupCheckExistingFileListener, popupShouldSavepublic static final String SUN_JAVA_COMMAND
public void doActionAfterCheck(ActionEvent e)
AbstractActionWithNoRunningTestActionEvent only if no test is runningdoActionAfterCheck in class AbstractActionWithNoRunningTeste - ActionEventCommand.doAction(ActionEvent)public static void restartApplication(Runnable runBeforeRestart)
runBeforeRestart - some custom code to be run before restartingpublic Set<String> getActionNames()
getActionNames in interface CommandCommand.getActionNames()public JMenuItem[] getMenuItemsAtLocation(MenuCreator.MENU_LOCATION location)
MenuCreatorgetMenuItemsAtLocation in interface MenuCreatorlocation - in top menuJMenuItempublic JMenu[] getTopLevelMenus()
getTopLevelMenus in interface MenuCreatorpublic boolean localeChanged(MenuElement menu)
localeChanged in interface MenuCreatormenu - MenuElementpublic void localeChanged()
MenuCreatorlocaleChanged in interface MenuCreatorCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.