org.argouml.application
Class Main

java.lang.Object
  extended byorg.argouml.application.Main

public class Main
extends Object

Here it all starts...


Field Summary
static String DEFAULT_LOGGING_CONFIGURATION
          The location of the default logging configuration (.lcf) file.
private static Logger LOG
          Logger.
private static Vector postLoadActions
           
 
Constructor Summary
Main()
           
 
Method Summary
static void addPostLoadAction(Runnable r)
          Add an element to the PostLoadActions list.
private static void checkHostsFile()
          Check that we can get the InetAddress for localhost.
private static void checkJVMVersion()
          Checks tha JVM Version.
private static void initializeGUI(boolean doSplash, String themeMemory)
          Do a part of the initialization that is very much GUI-stuff.
static void main(String[] args)
          The main entry point of ArgoUML.
static void performCommands(List list)
          Perform a list of commands that were given on the command line.
private static void printUsage()
          Prints the usage message.
private static URL projectUrl(String projectName, URL urlToOpen)
          Calculates the URL for the given project name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG
Logger.


DEFAULT_LOGGING_CONFIGURATION

public static final String DEFAULT_LOGGING_CONFIGURATION
The location of the default logging configuration (.lcf) file.

See Also:
Constant Field Values

postLoadActions

private static Vector postLoadActions
Constructor Detail

Main

public Main()
Method Detail

main

public static void main(String[] args)
The main entry point of ArgoUML.

Parameters:
args - command line parameters

projectUrl

private static URL projectUrl(String projectName,
                              URL urlToOpen)
Calculates the URL for the given project name. If the file does not exist or cannot be converted the default URL is returned.

Parameters:
projectName - is the file name of the project
urlToOpen - is the default URL
Returns:
the new URL.

printUsage

private static void printUsage()
Prints the usage message.


checkJVMVersion

private static void checkJVMVersion()
Checks tha JVM Version.

If it is a non supported JVM version we exit immediatly.


checkHostsFile

private static void checkHostsFile()
Check that we can get the InetAddress for localhost. This can fail on Unix if /etc/hosts is not correctly set up.


addPostLoadAction

public static void addPostLoadAction(Runnable r)
Add an element to the PostLoadActions list.

Parameters:
r - a "Runnable" action

performCommands

public static void performCommands(List list)
Perform a list of commands that were given on the command line. This first implementation just has a list of commands that is possible to give.

Parameters:
list - The commands, a list of strings.

initializeGUI

private static void initializeGUI(boolean doSplash,
                                  String themeMemory)
Do a part of the initialization that is very much GUI-stuff.

Parameters:
doSplash - true if we are updating the splash
themeMemory - is the theme to set.


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook