Eclipse Platform
Release 3.1

org.eclipse.core.launcher
Class WebStartMain

java.lang.Object
  extended byorg.eclipse.core.launcher.Main
      extended byorg.eclipse.core.launcher.WebStartMain

public class WebStartMain
extends Main

The launcher ot start eclipse using webstart. To use this launcher, the client must accept to give all security permissions.


Field Summary
 
Fields inherited from class org.eclipse.core.launcher.Main
bootLocation, configurationLocation, debug, devClassPath, ENTRY, ERROR, framework, inDevelopmentMode, installLocation, JAR_SCHEME, log, logFile, MESSAGE, newSession, parentConfigurationLocation, PLUGIN_ID, PROP_FRAMEWORK, REFERENCE_SCHEME, SESSION, STACK
 
Constructor Summary
WebStartMain()
           
 
Method Summary
protected  void basicRun(String[] args)
          Executes the launch.
protected  URL[] getBootPath(String base)
          Returns the URL-based class path describing where the boot classes are located.
static void main(String[] args)
          Runs the platform with the given arguments.
protected  String searchFor(String target, String start)
          Searches for the given target directory starting in the "plugins" subdirectory of the given location.
 
Methods inherited from class org.eclipse.core.launcher.Main
addEntry, decode, findMax, getArrayFromList, log, main, processCommandLine, run, setSecurityPolicy, takeDownSplash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebStartMain

public WebStartMain()
Method Detail

main

public static void main(String[] args)
Description copied from class: Main
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().


basicRun

protected void basicRun(String[] args)
                 throws Exception
Description copied from class: Main
Executes the launch.

Overrides:
basicRun in class Main
Parameters:
args - command-line arguments
Returns:
the result of performing the launch
Throws:
Exception - thrown if a problem occurs during the launch

getBootPath

protected URL[] getBootPath(String base)
                     throws IOException
Description copied from class: Main
Returns the URL-based class path describing where the boot classes are located.

Overrides:
getBootPath in class Main
Parameters:
base - the base location
Returns:
the url-based class path
Throws:
IOException

searchFor

protected String searchFor(String target,
                           String start)
Description copied from class: Main
Searches for the given target directory starting in the "plugins" subdirectory of the given location. If one is found then this location is returned; otherwise an exception is thrown.

Overrides:
searchFor in class Main
Parameters:
start - the location to begin searching
Returns:
the location where target directory was found

Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.