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
|
doAction
getParentFrame, popupCheckExistingFileListener, popupShouldSave
public static final java.lang.String SUN_JAVA_COMMAND
public void doActionAfterCheck(java.awt.event.ActionEvent e)
AbstractActionWithNoRunningTest
ActionEvent
only if no test is runningdoActionAfterCheck
in class AbstractActionWithNoRunningTest
e
- ActionEvent
Command.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 Command
Command.getActionNames()
public javax.swing.JMenuItem[] getMenuItemsAtLocation(MenuCreator.MENU_LOCATION location)
MenuCreator
getMenuItemsAtLocation
in interface MenuCreator
location
- in top menuJMenuItem
public javax.swing.JMenu[] getTopLevelMenus()
getTopLevelMenus
in interface MenuCreator
public boolean localeChanged(javax.swing.MenuElement menu)
localeChanged
in interface MenuCreator
menu
- MenuElementpublic void localeChanged()
MenuCreator
localeChanged
in interface MenuCreator
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.