ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meta...@apache.org
Subject cvs commit: jakarta-ant/src/antidote/org/apache/tools/ant/gui Main.java
Date Wed, 10 Jan 2001 20:46:49 GMT
metasim     01/01/10 12:46:49

  Modified:    src/antidote/org/apache/tools/ant/gui Main.java
  Log:
  Added full support for multiple projects open at the same time. Each project
  appears as an entry in the "Projects" menu.
  
  Revision  Changes    Path
  1.11      +7 -2      jakarta-ant/src/antidote/org/apache/tools/ant/gui/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/Main.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Main.java	2001/01/08 19:43:07	1.10
  +++ Main.java	2001/01/10 20:46:48	1.11
  @@ -62,7 +62,7 @@
   /**
    * Launch point for the Antidote GUI. Configurs it as an application.
    * 
  - * @version $Revision: 1.10 $ 
  + * @version $Revision: 1.11 $ 
    * @author Simeon Fitch 
    */
   public class Main {
  @@ -81,10 +81,15 @@
               Antidote gui = new Antidote(context);
   
               f.setDefaultCloseOperation(3 /*JFrame.EXIT_ON_CLOSE*/);
  -            f.setJMenuBar(context.getActions().createMenuBar());
  +            JMenuBar menu = context.getActions().createMenuBar();
  +            f.setJMenuBar(menu);
               f.getContentPane().add(BorderLayout.CENTER, gui);
               f.getContentPane().add(BorderLayout.NORTH, 
                                      context.getActions().createToolBar());
  +
  +            // Add the project selection menu.
  +            ProjectSelectionMenu ps = new ProjectSelectionMenu(context);
  +            ps.insertInto(menu);
   
               ImageIcon icon = 
                   context.getResources().loadImageIcon("icon-small.gif");
  
  
  

Mime
View raw message