logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject cvs commit: jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw FileMenu.java
Date Tue, 06 May 2003 02:27:33 GMT
psmith      2003/05/05 19:27:33

  Modified:    src/java/org/apache/log4j/chainsaw FileMenu.java
  Log:
  removed the Close Welcome Panel action, it has been moved to a different
  menu.
  
  Revision  Changes    Path
  1.4       +3 -21     jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/FileMenu.java
  
  Index: FileMenu.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/FileMenu.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FileMenu.java	2 May 2003 04:28:24 -0000	1.3
  +++ FileMenu.java	6 May 2003 02:27:33 -0000	1.4
  @@ -12,7 +12,6 @@
   import javax.swing.Action;
   import javax.swing.JMenu;
   import javax.swing.JMenuItem;
  -import javax.swing.JPanel;
   import javax.swing.JSeparator;
   import javax.swing.KeyStroke;
   
  @@ -25,7 +24,7 @@
      */
   class FileMenu extends JMenu {
   
  -  private Action closeAction;
  +  
     private Action exitAction;
     private Action loadAction;
     private Action saveAction;
  @@ -40,23 +39,7 @@
       JMenuItem loadFile = new JMenuItem(loadAction);
       JMenuItem saveFile = new JMenuItem(saveAction);
       
  -    closeAction = new AbstractAction() {
  -      public void actionPerformed(ActionEvent e) {
  -        JPanel somepanel = (JPanel) logUI.tabbedPane.getSelectedComponent();
  -
  -        if (!(somepanel instanceof LogUI.LogPanel)) {
  -          logUI.tabbedPane.remove(somepanel);
  -        }
  -      }
  -    };
  -    closeAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_C,
InputEvent.ALT_MASK));
  -    closeAction.putValue(Action.SHORT_DESCRIPTION, "Removes the Welcome tab");
  -    closeAction.putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_C));
  -    closeAction.putValue(Action.NAME, "Close Welcome tab");
  -    
  -    
  -    JMenuItem menuItemClose = new JMenuItem(closeAction);
  -    
  + 
       exitAction = new AbstractAction() {
   
         public void actionPerformed(ActionEvent e) {
  @@ -73,7 +56,6 @@
       
       add(loadFile);
       add(saveFile);
  -    add(menuItemClose);
       add(new JSeparator());
       add(menuItemExit);
     }
  @@ -81,6 +63,6 @@
     Action getFileOpenAction() { return loadAction;}
     Action getFileSaveAction() { return saveAction;}
     Action getExitAction() { return exitAction;}
  -  Action getCloseWelcomeAction() { return closeAction;}
  +  
     
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Mime
View raw message