Interface IApplicationClientDelegate


  • public interface IApplicationClientDelegate
    The application client delegate of the specific type (or types) of the application.

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

    • Method Detail

      • supports

        boolean supports​(IApplication application,
                         ExecutionContext context)
        Returns whether the delegate supports client open for the provided application and execution context.
        Parameters:
        application - the application to open, cannot be null
        context - the execution context, cannot be null
        Returns:
        whether the delegate supports client open for the provided application and execution context
      • open

        Optional<Process> open​(IApplication application,
                               ExecutionContext context,
                               org.eclipse.core.runtime.SubMonitor monitor)
                        throws ApplicationException
        Opens the application and launches application client. Returns the application client system process if started any.
        Parameters:
        application - the application to open, cannot be null
        context - the execution context, cannot be null
        monitor - the progress monitor to report progress to, cannot be null
        Returns:
        the optional application open client system process, may be empty if application is web for example
        Throws:
        ApplicationException - if method call failed with some reason