Interface IApplicationUiSupport


  • public interface IApplicationUiSupport
    Application UI support that allows clients to perform common UI operations.
    • Method Detail

      • ensureStarted

        boolean ensureStarted​(org.eclipse.swt.widgets.Shell shell,
                              IApplication application,
                              org.eclipse.core.runtime.IProgressMonitor monitor)
                       throws org.eclipse.core.runtime.CoreException
        Checks that application is started and shows user desired information. Returns whether application is started.
        Parameters:
        shell - the shell, cannot be null
        application - the application to update, cannot be null
        monitor - the progress monitor or null if not needed
        Returns:
        whether application is started
        Throws:
        org.eclipse.core.runtime.CoreException - if check fails
      • ensureUpdated

        PublishState ensureUpdated​(org.eclipse.swt.widgets.Shell shell,
                                   IApplication application,
                                   PublishKind publishKind,
                                   ExecutionContext context,
                                   org.eclipse.core.runtime.IProgressMonitor monitor)
                            throws org.eclipse.core.runtime.CoreException
        Checks application publish state and publishes application if needs. Returns the new publish state after user interaction.
        Parameters:
        shell - the shell, cannot be null
        application - the application to update, cannot be null
        publishKind - the publish kind, cannot be null
        context - the execution context, cannot be null
        monitor - the progress monitor or null if not needed
        Returns:
        the application publish state, cannot be null
        Throws:
        org.eclipse.core.runtime.CoreException - if check or update fails