Interface IApplicationBehaviourDelegate


  • public interface IApplicationBehaviourDelegate
    The application behaviour delegate of the specific type of the application.

    This interface is intended to be implemented and registered by clients.

    • Method Detail

      • 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 be null
        kind - the publish kind to use, cannot be null
        context - the execution context, cannot be null
        monitor - the progress monitor to report progress to, cannot be null
        Returns:
        the publication state after execution, never null
        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 be null
        launchMode - the launch mode to use, cannot be null
        context - the execution context, cannot be null
        monitor - the progress monitor to report progress to, cannot be null
        Returns:
        the execution context after execution, never null
        Throws:
        ApplicationException - if method call failed with some reason