KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > packaging > ToolsGUI


1 /*====================================================================
2
3 OpenCCM: The Open CORBA Component Model Platform
4 Copyright (C) 2000-2004 INRIA - USTL - LIFL - GOAL
5 Contact: openccm@objectweb.org
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 USA
21
22 Initial developer(s): Christophe Contreras
23 Contributor(s): ___________________________________________________.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.packaging;
28
29 import org.objectweb.apollon.gui.ApollonFrame;
30
31 /**
32  * This is the GUI launcher for the Packaging and Assembly tools
33  *
34  * @author <a HREF="mailto:Christophe.Contreras@lifl.fr">Christophe Contreras</a>
35  *
36  */

37 public class ToolsGUI
38 {
39
40     // ==================================================================
41
//
42
// Static public methods.
43
//
44
// ==================================================================
45

46     /**
47      * The main bootstrap method.
48      *
49      * @param args The command line arguments.
50      */

51     public static void
52     main(String JavaDoc[] args)
53     {
54         // inits the graphical frame
55
ApollonFrame frame
56          = new ApollonFrame();
57
58         // inits the split panel of the frame
59
frame.set_split_panel(new CCMSplitPane());
60
61         // Adds the CCM part of the Menubar to existing
62
CCMMenuBar ccm_menubar
63          = new CCMMenuBar(frame);
64
65         // opens files given as arguments
66
if (args.length !=0)
67         {
68             for (int i=0 ; i<args.length ; i++)
69             {
70                 java.io.File JavaDoc file
71                  = new java.io.File JavaDoc(args[i]);
72
73                 FileOperations.open_file(file, frame);
74             }
75         }
76         frame.setVisible(true);
77     }
78 }
79
Popular Tags