public interface IApplication
org.eclipse.core.runtime.applications
extension-point.
Clients may implement this interface.
Modifier and Type | Field and Description |
---|---|
static Integer |
EXIT_OK
Exit object indicating normal termination
|
static Integer |
EXIT_RELAUNCH
Exit object requesting that the command passed back be executed.
|
static Integer |
EXIT_RESTART
Exit object requesting platform restart
|
Modifier and Type | Method and Description |
---|---|
Object |
start(IApplicationContext context)
Starts this application with the given context and returns a result.
|
void |
stop()
Forces this running application to exit.
|
static final Integer EXIT_OK
static final Integer EXIT_RESTART
static final Integer EXIT_RELAUNCH
eclipse.exitdata
system property.Object start(IApplicationContext context) throws Exception
IApplicationContext.EXIT_ASYNC_RESULT
if
the application will deliver its results asynchronously with the
IApplicationContext.setResult(Object, IApplication)
method; otherwise this method must not exit
until the application is finished and is ready to exit.
Applications can return any object they like. If an Integer
is returned
it is treated as the program exit code if Eclipse is exiting.
Note: This method is called by the platform; it is not intended to be called directly by clients.
context
- the application context to pass to the applicationException
- if there is a problem running this application.EXIT_OK
,
EXIT_RESTART
,
EXIT_RELAUNCH
,
IApplicationContext.EXIT_ASYNC_RESULT
void stop()
start(IApplicationContext)
should already have exited or should exit very soon after this method exits
This method is only called to force an application to exit.
This method will not be called if an application exits normally from
the start(IApplicationContext)
method.
Note: This method is called by the platform; it is not intended to be called directly by clients.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.