org.eclipse.cdt.ui.testplugin
Class Main

java.lang.Object
  extended by org.eclipse.cdt.ui.testplugin.Main
Direct Known Subclasses:
NewMain

public class Main
extends java.lang.Object

Startup class for Eclipse. Creates a class loader using supplied URL of platform installation, loads and calls the Eclipse Boot Loader. The startup arguments are as follows:

-application <id>: the identifier of the application to run
-boot <location>: the location, expressed as a URL, of the platform's boot.jar
-consolelog : enables log to the console. Handy when combined with -debug
-data <location>: sets the workspace location and the default location for projects
-debug [options file]: turns on debug mode for the platform and optionally specifies a location for the .options file. This file indicates what debug points are available for a plug-in and whether or not they are enabled. If a location is not specified, the platform searches for the .options file under the install directory
-dev [entries]: turns on dev mode and optionally specifies comma-separated class path entries which are added to the class path of each plug-in
-keyring <location>: the location of the authorization database on disk. This argument has to be used together with the -password argument
-password <passwd>: the password for the authorization database
-plugins <location>: The arg is a URL pointing to a file which specs the plugin path for the platform. The file is in property file format where the keys are user-defined names and the values are comma separated lists of either explicit paths to plugin.xml files or directories containing plugins. (e.g., .../eclipse/plugins).
-ws <window system>: sets the window system value


Constructor Summary
Main()
           
 
Method Summary
static void endSplash()
          Tears down the currently-displayed splash screen.
 java.lang.Class getBootLoader(java.lang.String base)
          Creates and returns a platform BootLoader which can be used to start up and run the platform.
 java.lang.Class getUpdateLoader(java.lang.String base)
          Returns the update loader for the given boot path.
static void main(java.lang.String argString)
          Runs this launcher with the arguments specified in the given string.
static void main(java.lang.String[] args)
          Runs the platform with the given arguments.
 java.lang.Object run(java.lang.String[] args)
          Runs the application to be launched.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

getBootLoader

public java.lang.Class getBootLoader(java.lang.String base)
                              throws java.lang.Exception
Creates and returns a platform BootLoader which can be used to start up and run the platform. The given base, if not null, is the location of the boot loader code. If the value is null then the boot loader is located relative to this class.

Parameters:
base - the location of the boot loader
Returns:
the new boot loader
Throws:
java.lang.Exception

getUpdateLoader

public java.lang.Class getUpdateLoader(java.lang.String base)
                                throws java.lang.Exception
Returns the update loader for the given boot path.

Parameters:
base - the boot path base
Returns:
the update loader
Throws:
java.lang.Exception - thrown is a problem occurs determining this loader

main

public static void main(java.lang.String[] args)
Runs the platform with the given arguments. The arguments must identify an application to run (e.g., -application com.example.application). After running the application System.exit(N) is executed. The value of N is derived from the value returned from running the application. If the application's return value is an Integer, N is this value. In all other cases, N = 0.

Clients wishing to run the platform without a following System.exit call should use run().

Parameters:
args - the command line arguments
See Also:
run(java.lang.String[])

endSplash

public static void endSplash()
Tears down the currently-displayed splash screen.


main

public static void main(java.lang.String argString)
                 throws java.lang.Exception
Runs this launcher with the arguments specified in the given string.

Parameters:
argString - the arguments string
Throws:
java.lang.Exception - thrown if a problem occurs during launching

run

public java.lang.Object run(java.lang.String[] args)
                     throws java.lang.Exception
Runs the application to be launched.

Parameters:
args - the arguments to pass to the application
Returns:
the return value from the launched application
Throws:
thrown - if a problem occurs during launching
java.lang.Exception