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
      • 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 be null
        context - the execution context, cannot be null
        monitor - the progress monitor to report progress to, cannot be null
        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 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