Mercurial > hg > release > thermostat-0.4
changeset 331:3b00e89313f3
Remove unimplemented menu items
Reviewed-by: neugens
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2012-May/001553.html
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Thu, 24 May 2012 15:05:43 -0400 |
parents | e5d6dcc4b119 |
children | 9fb34de48098 |
files | client/core/src/main/java/com/redhat/thermostat/client/locale/LocaleResources.java client/core/src/main/java/com/redhat/thermostat/client/ui/MainWindow.java client/core/src/main/resources/com/redhat/thermostat/client/locale/strings.properties |
diffstat | 3 files changed, 0 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/client/core/src/main/java/com/redhat/thermostat/client/locale/LocaleResources.java Thu May 24 14:36:12 2012 -0400 +++ b/client/core/src/main/java/com/redhat/thermostat/client/locale/LocaleResources.java Thu May 24 15:05:43 2012 -0400 @@ -51,9 +51,6 @@ BUTTON_OK, MENU_FILE, - MENU_FILE_CONNECT, - MENU_FILE_IMPORT, - MENU_FILE_EXPORT, MENU_FILE_EXIT, MENU_EDIT, MENU_EDIT_CONFIGURE_AGENT,
--- a/client/core/src/main/java/com/redhat/thermostat/client/ui/MainWindow.java Thu May 24 14:36:12 2012 -0400 +++ b/client/core/src/main/java/com/redhat/thermostat/client/ui/MainWindow.java Thu May 24 15:05:43 2012 -0400 @@ -286,25 +286,6 @@ fileMenu.getPopupMenu().setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1)); mainMenuBar.add(fileMenu); - JMenuItem fileConnectMenu = new JMenuItem(localize(LocaleResources.MENU_FILE_CONNECT)); - fileConnectMenu.addActionListener(new java.awt.event.ActionListener() { - @Override - public void actionPerformed(java.awt.event.ActionEvent e) { - // TODO present a connection dialog - } - }); - fileMenu.add(fileConnectMenu); - - fileMenu.add(new Separator()); - - JMenuItem fileImportMenu = new JMenuItem(localize(LocaleResources.MENU_FILE_IMPORT)); - fileMenu.add(fileImportMenu); - - JMenuItem fileExportMenu = new JMenuItem(localize(LocaleResources.MENU_FILE_EXPORT)); - fileMenu.add(fileExportMenu); - - fileMenu.add(new Separator()); - JMenuItem fileExitMenu = new JMenuItem(localize(LocaleResources.MENU_FILE_EXIT)); fileExitMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, InputEvent.CTRL_DOWN_MASK)); fileExitMenu.addActionListener(shutdownAction);
--- a/client/core/src/main/resources/com/redhat/thermostat/client/locale/strings.properties Thu May 24 14:36:12 2012 -0400 +++ b/client/core/src/main/resources/com/redhat/thermostat/client/locale/strings.properties Thu May 24 15:05:43 2012 -0400 @@ -11,9 +11,6 @@ BUTTON_OK = OK MENU_FILE = File -MENU_FILE_CONNECT = Connect -MENU_FILE_IMPORT = Import -MENU_FILE_EXPORT = Export MENU_FILE_EXIT = Exit MENU_EDIT = Edit MENU_EDIT_CONFIGURE_AGENT = Configure Agent...