Interface IApplicationBehaviourDelegate
-
public interface IApplicationBehaviourDelegateThe application behaviour delegate of the specific type of the application.This interface is intended to be implemented and registered by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheck(IApplication application, ExecutionContext context, org.eclipse.core.runtime.SubMonitor monitor)Checks and returns whether the application is ready to launch e.g.voidinitialize(IApplicationProvisionNotifier notifier, IApplicationType type)Initializes the application behaviour delegate with the registered application type and provision notifier.ExecutionContextlaunch(IApplication application, String launchMode, ExecutionContext context, org.eclipse.core.runtime.SubMonitor monitor)Publishes the application with the provided publish kind.PublishStatepublish(IApplication application, PublishKind kind, ExecutionContext context, org.eclipse.core.runtime.SubMonitor monitor)Publishes the application with the provided publish kind.
-
-
-
Method Detail
-
initialize
void initialize(IApplicationProvisionNotifier notifier, IApplicationType type) throws ApplicationException
Initializes the application behaviour delegate with the registered application type and provision notifier.- Parameters:
notifier- the application provision notifier, cannot benulltype- the application type, cannot benull- Throws:
ApplicationException- if method call failed with some reason
-
publish
PublishState publish(IApplication application, PublishKind kind, ExecutionContext context, org.eclipse.core.runtime.SubMonitor monitor) throws ApplicationException
Publishes the application with the provided publish kind.- Parameters:
application- the application to publish, cannot benullkind- the publish kind to use, cannot benullcontext- the execution context, cannot benullmonitor- the progress monitor to report progress to, cannot benull- Returns:
- the publication state after execution, never
null - Throws:
ApplicationException- if method call failed with some reason
-
check
boolean check(IApplication application, ExecutionContext context, org.eclipse.core.runtime.SubMonitor monitor) throws ApplicationException
Checks and returns whether the application is ready to launch e.g. is not changed outside of the IDE.- Parameters:
application- the application to check, cannot benullcontext- the execution context, cannot benullmonitor- the progress monitor to report progress to, cannot benull- Returns:
- whether the application is ready to launch
- Throws:
ApplicationException- if method call failed with some reason
-
launch
ExecutionContext launch(IApplication application, String launchMode, ExecutionContext context, org.eclipse.core.runtime.SubMonitor monitor) throws ApplicationException
Publishes the application with the provided publish kind.- Parameters:
application- the application to publish, cannot benulllaunchMode- the launch mode to use, cannot benullcontext- the execution context, cannot benullmonitor- the progress monitor to report progress to, cannot benull- Returns:
- the execution context after execution, never
null - Throws:
ApplicationException- if method call failed with some reason
-
-