KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > planetamessenger > mos > Main


1 /*
2     =========================================================================
3     Package mos - Implements the MOS module.
4
5     This module is developed and maintained by PlanetaMessenger.org.
6     Specs, New and updated versions can be found in
7     http://www.planetamessenger.org
8     If you want contact the Team please send a email to Project Manager
9     Leidson Campos Alves Ferreira at leidson@planetamessenger.org
10
11     Copyright (C) since 2001 by PlanetaMessenger.org
12
13     This program is free software; you can redistribute it and/or modify
14     it under the terms of the GNU General Public License as published by
15     the Free Software Foundation; either version 2 of the License, or
16     (at your option) any later version.
17
18     This program is distributed in the hope that it will be useful,
19     but WITHOUT ANY WARRANTY; without even the implied warranty of
20     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21     GNU General Public License for more details.
22
23     You should have received a copy of the GNU General Public License
24     along with this program; if not, write to the Free Software
25     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
27     =========================================================================
28 */

29 /**
30  *
31  * $Id: Main.java,v 1.12 2007/01/28 17:39:20 popolony2k Exp $
32  * $Author: popolony2k $
33  * $Name: $
34  * $Revision: 1.12 $
35  * $State: Exp $
36  *
37  */

38
39 package org.planetamessenger.mos;
40
41 import org.planetamessenger.mos.forms.*;
42 import org.planetamessenger.mos.engine.*;
43
44
45 /**
46  * Main entry point into the PlanetaMessenger GUI.
47  */

48 public class Main {
49
50   /**
51    * Constructs a Main entry-point
52    * class.
53    */

54   public Main() {
55     
56   }
57
58   /**
59    * Application entry point.<br>
60    * @param args the command line arguments;<br>
61    * Current accepted parameters:<br>
62    * --noshare-config Each user has a specific configuration<br>
63    * file in home directory;
64    */

65   public static void main( java.lang.String JavaDoc[] args ) {
66
67     /*
68      * Process all parameters provided by user.
69      */

70     for( int nCount = 0; nCount < args.length; nCount++ ) {
71       if( args[0].compareTo( "--noshare-config" ) == 0 ) {
72         JConfiguration.setMode( JConfiguration.NOSHARE_CONFIG );
73         continue;
74       }
75     }
76
77     new JMOSWindow().startEngine();
78   }
79 }
80
81 // Main class
Popular Tags