public class Restart extends AbstractActionWithNoRunningTest implements MenuCreator
MenuCreator.MENU_LOCATION| Modifier and Type | Field and Description |
|---|---|
static java.lang.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(java.awt.event.ActionEvent e)
Called to handle
ActionEvent only if no test is running |
java.util.Set<java.lang.String> |
getActionNames() |
javax.swing.JMenuItem[] |
getMenuItemsAtLocation(MenuCreator.MENU_LOCATION location)
MenuItems to be added in location menu
|
javax.swing.JMenu[] |
getTopLevelMenus() |
void |
localeChanged()
Update Top Level menu on Locale Change
|
boolean |
localeChanged(javax.swing.MenuElement menu) |
static void |
restartApplication(java.lang.Runnable runBeforeRestart)
Restart the current Java application
|
doActiongetParentFrame, popupCheckExistingFileListener, popupShouldSavepublic static final java.lang.String SUN_JAVA_COMMAND
public void doActionAfterCheck(java.awt.event.ActionEvent e)
AbstractActionWithNoRunningTestActionEvent only if no test is runningdoActionAfterCheck in class AbstractActionWithNoRunningTeste - ActionEventCommand.doAction(ActionEvent)public static void restartApplication(java.lang.Runnable runBeforeRestart)
runBeforeRestart - some custom code to be run before restartingpublic java.util.Set<java.lang.String> getActionNames()
getActionNames in interface CommandCommand.getActionNames()public javax.swing.JMenuItem[] getMenuItemsAtLocation(MenuCreator.MENU_LOCATION location)
MenuCreatorgetMenuItemsAtLocation in interface MenuCreatorlocation - in top menuJMenuItempublic javax.swing.JMenu[] getTopLevelMenus()
getTopLevelMenus in interface MenuCreatorpublic boolean localeChanged(javax.swing.MenuElement menu)
localeChanged in interface MenuCreatormenu - MenuElementpublic void localeChanged()
MenuCreatorlocaleChanged in interface MenuCreatorCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.