|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.core.launcher.Main
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:
Field Summary | |
protected String |
application
The identifier of the application to run. |
protected static String[] |
arguments
|
protected String |
bootLocation
The location of the launcher to run. |
protected String |
configuration
The identifier of the configuration to use. |
protected boolean |
debug
Indicates whether this instance is running in debug mode. |
protected String |
devClassPath
The class path entries. |
protected static String |
ENTRY
|
protected static int |
ERROR
|
protected String |
feature
The identifier of the feature to run. |
protected boolean |
inDevelopmentMode
Indicates whether this instance is running in development mode. |
protected String |
location
The boot path location. |
protected static BufferedWriter |
log
|
protected static File |
logFile
|
protected static String |
logFileName
|
protected static String |
MESSAGE
|
protected static boolean |
newSession
|
protected static String |
PLUGIN_ID
|
protected URL |
pluginPathLocation
The path for finding find plugins. |
protected String |
rootLocation
The location of the install root |
protected static String |
SESSION
|
protected static String |
STACK
|
Constructor Summary | |
Main()
|
Method Summary | |
protected Object |
basicRun(String[] args)
Executes the launch. |
protected String |
decode(String urlString)
Returns a string representation of the given URL String. |
Class |
getBootLoader(URL[] path)
Creates and returns a platform BootLoader which can be used to start
up and run the platform. |
protected URL[] |
getBootPath(String base)
Returns the URL -based class path describing where the boot classes are located. |
protected URL[] |
getDevPath(URL base)
Returns the URL -based class path describing where the boot classes
are located when running in development mode. |
static void |
main(String argString)
Runs this launcher with the arguments specified in the given string. |
static void |
main(String[] args)
Runs the platform with the given arguments. |
protected String[] |
processCommandLine(String[] args)
Processes the command line arguments |
Object |
run(String[] args)
Runs the application to be launched. |
protected String |
searchForBoot(String start)
Searches for a boot directory starting in the "plugins" subdirectory of the given location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean debug
protected String bootLocation
protected String rootLocation
protected String application
protected String feature
protected String configuration
protected URL pluginPathLocation
protected String location
protected String devClassPath
protected boolean inDevelopmentMode
protected static final String SESSION
protected static final String ENTRY
protected static final String MESSAGE
protected static final String STACK
protected static final int ERROR
protected static final String PLUGIN_ID
protected static final String logFileName
protected static File logFile
protected static BufferedWriter log
protected static String[] arguments
protected static boolean newSession
Constructor Detail |
public Main()
Method Detail |
protected Object basicRun(String[] args) throws Exception
args
- command-line arguments
Exception
- thrown if a problem occurs during the launchprotected String decode(String urlString)
public Class getBootLoader(URL[] path) throws Exception
BootLoader
which can be used to start
up and run the platform.
path
- search path for the BootLoader
Exception
protected URL[] getDevPath(URL base) throws MalformedURLException
URL
-based class path describing where the boot classes
are located when running in development mode.
base
- the base location
MalformedURLException
- if a problem occurs computing the class pathprotected URL[] getBootPath(String base) throws MalformedURLException
URL
-based class path describing where the boot classes are located.
base
- the base location
MalformedURLException
- if a problem occurs computing the class pathprotected String searchForBoot(String start)
start
- the location to begin searching at
public static void main(String[] args)
-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()
.
args
- the command line argumentsrun(java.lang.String[])
public static void main(String argString) throws Exception
argString
- the arguments string
Exception
- thrown if a problem occurs during launchingprotected String[] processCommandLine(String[] args) throws Exception
args
- the command line arguments
Exception
public Object run(String[] args) throws Exception
args
- the arguments to pass to the application
thrown
- if a problem occurs during launching
Exception
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |