Revision: 5870 Author: [email protected] Date: Mon Aug 3 11:59:02 2009 Log: Remove currently unused cruft from OOPHM interface.
Patch by: jat Review by: jlabanca (desk) http://code.google.com/p/google-web-toolkit/source/detail?r=5870 Modified: /trunk/dev/oophm/overlay/com/google/gwt/dev/shell/ShellMainWindow.java /trunk/dev/oophm/src/com/google/gwt/dev/ModulePanel.java /trunk/dev/oophm/src/com/google/gwt/dev/shell/log/SwingLoggerPanel.java ======================================= --- /trunk/dev/oophm/overlay/com/google/gwt/dev/shell/ShellMainWindow.java Tue Jul 28 21:11:44 2009 +++ /trunk/dev/oophm/overlay/com/google/gwt/dev/shell/ShellMainWindow.java Mon Aug 3 11:59:02 2009 @@ -35,22 +35,26 @@ public ShellMainWindow(TreeLogger.Type maxLevel) { super(new BorderLayout()); - JPanel panel = new JPanel(new GridLayout(2, 1)); - JPanel optionPanel = new JPanel(); - optionPanel.setBorder(BorderFactory.createTitledBorder("Options")); - optionPanel.add(new JLabel("Miscellaneous options here")); - panel.add(optionPanel); - JPanel launchPanel = new JPanel(); - launchPanel.setBorder(BorderFactory.createTitledBorder("Launch GWT Module")); - launchPanel.add(new JLabel("Selections for launching a new module on a selected browser")); - panel.add(launchPanel); - add(panel, BorderLayout.NORTH); + // TODO(jat): add back when we have real options + if (false) { + JPanel panel = new JPanel(new GridLayout(2, 1)); + JPanel optionPanel = new JPanel(); + optionPanel.setBorder(BorderFactory.createTitledBorder("Options")); + optionPanel.add(new JLabel("Miscellaneous options here")); + panel.add(optionPanel); + JPanel launchPanel = new JPanel(); + launchPanel.setBorder(BorderFactory.createTitledBorder("Launch GWT Module")); + launchPanel.add(new JLabel( + "Selections for launching a new module on a selected browser")); + panel.add(launchPanel); + add(panel, BorderLayout.NORTH); + } logWindow = new SwingLoggerPanel(maxLevel); add(logWindow); } /** - * @return + * @return TreeLogger instance */ public AbstractTreeLogger getLogger() { return logWindow.getLogger(); ======================================= --- /trunk/dev/oophm/src/com/google/gwt/dev/ModulePanel.java Tue Jul 28 21:11:44 2009 +++ /trunk/dev/oophm/src/com/google/gwt/dev/ModulePanel.java Mon Aug 3 11:59:02 2009 @@ -34,6 +34,7 @@ import javax.swing.JTabbedPane; /** + * A panel which represents a single module session. */ public class ModulePanel extends JPanel { @@ -62,12 +63,16 @@ } } + @SuppressWarnings("deprecation") private static ImageIcon firefoxIcon = GWTShell.loadImageIcon("firefox24.png"); + @SuppressWarnings("deprecation") private static ImageIcon ieIcon = GWTShell.loadImageIcon("ie24.png"); + @SuppressWarnings("deprecation") private static ImageIcon safariIcon = GWTShell.loadImageIcon("safari24.png"); + @SuppressWarnings("deprecation") private static ImageIcon closeIcon = GWTShell.loadImageIcon("close.png"); private SwingLoggerPanel loggerPanel; @@ -81,16 +86,18 @@ super(new BorderLayout()); this.tabs = tabs; topPanel = new JPanel(); - topPanel.add(new JLabel(moduleName)); - JButton compileButton = new JButton("Compile (not yet implemented)"); - compileButton.setEnabled(false); - compileButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showMessageDialog(null, "Compiling not implemented yet", - "Alert: Not Implemented", JOptionPane.INFORMATION_MESSAGE); - } - }); - topPanel.add(compileButton); + topPanel.add(new JLabel("Module: " + moduleName)); + if (false) { + JButton compileButton = new JButton("Compile (not yet implemented)"); + compileButton.setEnabled(false); + compileButton.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showMessageDialog(null, "Compiling not implemented yet", + "Alert: Not Implemented", JOptionPane.INFORMATION_MESSAGE); + } + }); + topPanel.add(compileButton); + } add(topPanel, BorderLayout.NORTH); loggerPanel = new SwingLoggerPanel(maxLevel); add(loggerPanel); ======================================= --- /trunk/dev/oophm/src/com/google/gwt/dev/shell/log/SwingLoggerPanel.java Tue Jul 28 21:11:44 2009 +++ /trunk/dev/oophm/src/com/google/gwt/dev/shell/log/SwingLoggerPanel.java Mon Aug 3 11:59:02 2009 @@ -269,10 +269,8 @@ } }); topPanel.add(collapsButton); - if (true) { - // temporarily avoid showing parts that aren't implemented. - topPanel.add(new JLabel("Log filtering controls will go here")); - } else { + // TODO(jat): temporarily avoid showing parts that aren't implemented. + if (false) { topPanel.add(new JLabel("Filter Log Messages: ")); levelComboBox = new JComboBox(); for (TreeLogger.Type type : TreeLogger.Type.instances()) { --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
