|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IApplication
Bootstrap type for an application. An IApplication represent executable
entry points into an application. An IApplication can be configured into
the Platform's org.eclipse.equinox.applications
extension-point.
Clients may implement this interface.
Field Summary | |
---|---|
static java.lang.Integer |
EXIT_OK
Exit object indicating normal termination |
static java.lang.Integer |
EXIT_RELAUNCH
Exit object requesting that the command passed back be executed. |
static java.lang.Integer |
EXIT_RESTART
Exit object requesting platform restart |
Method Summary | |
---|---|
java.lang.Object |
start(IApplicationContext context)
Starts this application with the given context and returns a result. |
void |
stop()
Forces this running application to exit. |
Field Detail |
---|
static final java.lang.Integer EXIT_OK
static final java.lang.Integer EXIT_RESTART
static final java.lang.Integer EXIT_RELAUNCH
eclipse.exitdata
system property.
Method Detail |
---|
java.lang.Object start(IApplicationContext context) throws java.lang.Exception
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 application
java.lang.Exception
- if there is a problem running this application.EXIT_OK
,
EXIT_RESTART
,
EXIT_RELAUNCH
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |