public static final String ROTATE_MENUITEM_NAME = "&Rotate";
public static final String SCALE_MENUITEM_NAME = "&Scale";
public static final String INTERPOLATION_MENUITEM_NAME = "&Quality";
- public static final String KEYWINDOW_MENUITEM_NAME = "&Key Window";
+ public static final String KEYWINDOW_MENUITEM_NAME = "Contro&ller";
public static final String ADVANCED_MENUITEM_NAME = "Ad&vanced";
public static final String SCREENSHOT_MENUITEM_NAME = "&Screen Shot";
public static final String HOSTKBD_MENUITEM_NAME = "&Host Keyboard";
new MenuItem(menu, SWT.SEPARATOR);
}
- /* Key Window menu */
- if (itemProperties == null ||
- itemProperties.getKeywindowItem() == null) {
- keyWindowItem = createKeyWindowItem(menu, KEYWINDOW_MENUITEM_NAME);
- } else {
- MenuItemType keywindowMenuType = itemProperties.getKeywindowItem();
- if (keywindowMenuType.isVisible() == true) {
- keyWindowItem = createKeyWindowItem(menu,
- (keywindowMenuType.getItemName().isEmpty()) ?
- KEYWINDOW_MENUITEM_NAME : keywindowMenuType.getItemName());
- }
- }
-
/* Advanced menu */
Menu advancedSubMenu = new Menu(menu.getShell(), SWT.DROP_DOWN);
{
+ /* Key Window menu */
+ if (itemProperties == null ||
+ itemProperties.getKeywindowItem() == null) {
+ keyWindowItem = createKeyWindowItem(advancedSubMenu, KEYWINDOW_MENUITEM_NAME);
+ } else {
+ MenuItemType keywindowMenuType = itemProperties.getKeywindowItem();
+ if (keywindowMenuType.isVisible() == true) {
+ keyWindowItem = createKeyWindowItem(advancedSubMenu,
+ (keywindowMenuType.getItemName().isEmpty()) ?
+ KEYWINDOW_MENUITEM_NAME : keywindowMenuType.getItemName());
+ }
+ }
+
/* Screen shot menu */
screenshotItem = createScreenShotItem(
advancedSubMenu, SCREENSHOT_MENUITEM_NAME);
aboutItem = createAboutItem(
advancedSubMenu, ABOUT_MENUITEM_NAME);
- if (aboutItem != null) {
- new MenuItem(advancedSubMenu, SWT.SEPARATOR);
- }
-
/* Force close menu */
if (itemProperties == null ||
itemProperties.getForceCloseItem() == null) {
}
}
- if (keyWindowItem != null || advancedItem != null || shellItem != null) {
- new MenuItem(menu, SWT.SEPARATOR);
- }
-
/* Emulator Control Panel menu */
if (itemProperties == null ||
itemProperties.getControlPanelItem() == null) {
}
}
- if (ecpItem != null) {
+ if (keyWindowItem != null || advancedItem != null ||
+ shellItem != null || ecpItem != null) {
new MenuItem(menu, SWT.SEPARATOR);
}