|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.launcher.Main
public class Main
The launcher for Eclipse.
Nested Class Summary | |
---|---|
class |
Main.EndSplashHandler
|
Field Summary | |
---|---|
protected java.lang.String |
bootLocation
The location of the launcher to run. |
protected java.net.URL |
configurationLocation
The location of the configuration information for this instance |
protected boolean |
debug
Indicates whether this instance is running in debug mode. |
protected java.lang.String |
devClassPath
The extra development time class path entries. |
protected static java.lang.String |
ENTRY
|
protected static int |
ERROR
|
protected java.lang.String |
framework
The id of the bundle that will contain the framework to run. |
protected boolean |
inDevelopmentMode
Indicates whether this instance is running in development mode. |
protected java.net.URL |
installLocation
The location of the install root |
protected static java.lang.String |
JAR_SCHEME
|
protected java.io.BufferedWriter |
log
|
protected java.io.File |
logFile
|
protected static java.lang.String |
MESSAGE
|
protected boolean |
newSession
|
protected java.lang.String |
parentConfigurationLocation
The location of the configuration information in the install root |
protected static java.lang.String |
PLUGIN_ID
|
protected static java.lang.String |
PROP_FRAMEWORK
|
protected static java.lang.String |
REFERENCE_SCHEME
|
protected static java.lang.String |
SESSION
|
protected static java.lang.String |
STACK
|
Constructor Summary | |
---|---|
Main()
|
Method Summary | |
---|---|
protected void |
addEntry(java.net.URL url,
java.util.List result)
|
protected void |
basicRun(java.lang.String[] args)
Executes the launch. |
protected java.lang.String |
decode(java.lang.String urlString)
Returns a string representation of the given URL String. |
protected int |
findMax(java.lang.String[] candidates)
|
protected java.lang.String[] |
getArrayFromList(java.lang.String prop)
Returns the result of converting a list of comma-separated tokens into an array |
protected java.net.URL[] |
getBootPath(java.lang.String base)
Returns the URL -based class path describing where the boot classes are located. |
protected void |
log(java.lang.Object obj)
|
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. |
protected java.lang.String[] |
processCommandLine(java.lang.String[] args)
Processes the command line arguments. |
int |
run(java.lang.String[] args)
Runs the platform with the given arguments. |
protected java.lang.String |
searchFor(java.lang.String target,
java.lang.String start)
Searches for the given target directory starting in the "plugins" subdirectory of the given location. |
protected void |
setSecurityPolicy(java.net.URL[] bootPath)
|
protected void |
takeDownSplash()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean debug
protected java.lang.String bootLocation
protected java.net.URL installLocation
protected java.net.URL configurationLocation
protected java.lang.String parentConfigurationLocation
protected java.lang.String framework
protected java.lang.String devClassPath
protected boolean inDevelopmentMode
protected static final java.lang.String REFERENCE_SCHEME
protected static final java.lang.String JAR_SCHEME
protected static final java.lang.String PROP_FRAMEWORK
protected static final java.lang.String SESSION
protected static final java.lang.String ENTRY
protected static final java.lang.String MESSAGE
protected static final java.lang.String STACK
protected static final int ERROR
protected static final java.lang.String PLUGIN_ID
protected java.io.File logFile
protected java.io.BufferedWriter log
protected boolean newSession
Constructor Detail |
---|
public Main()
Method Detail |
---|
protected void basicRun(java.lang.String[] args) throws java.lang.Exception
args
- command-line arguments
java.lang.Exception
- thrown if a problem occurs during the launchprotected void setSecurityPolicy(java.net.URL[] bootPath)
protected java.lang.String decode(java.lang.String urlString)
protected java.lang.String[] getArrayFromList(java.lang.String prop)
prop
- the initial comma-separated string
protected void addEntry(java.net.URL url, java.util.List result)
protected java.net.URL[] getBootPath(java.lang.String base) throws java.io.IOException
URL
-based class path describing where the boot classes are located.
base
- the base location
java.net.MalformedURLException
- if a problem occurs computing the class path
java.io.IOException
protected java.lang.String searchFor(java.lang.String target, java.lang.String start)
start
- the location to begin searching
protected int findMax(java.lang.String[] candidates)
public static void main(java.lang.String argString)
argString
- the arguments stringpublic static void main(java.lang.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(String[])
public int run(java.lang.String[] args)
-application com.example.application
).
Returns 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.
args
- the command line argumentsprotected java.lang.String[] processCommandLine(java.lang.String[] args)
args
- the command line arguments
protected void takeDownSplash()
protected void log(java.lang.Object obj)
|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.