Class TestingProjectLifecycleSupport


  • public final class TestingProjectLifecycleSupport
    extends Object
    Support class with helper methods to wait for EDT project lifecycle states.
    Restriction:
    This class is not intended to be sub-classed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Method Detail

      • waitForProjectStart

        public static org.eclipse.core.resources.IProject waitForProjectStart​(org.eclipse.core.resources.IProject project)
        Waits until the provided project's ProjectContext state matches the ServiceState.STARTED.
        Parameters:
        project - the project to wait the started state change for, cannot be null
        Returns:
        a reference to the same project, never null
      • waitForProjectStop

        public static org.eclipse.core.resources.IProject waitForProjectStop​(org.eclipse.core.resources.IProject project)
                                                                      throws Exception
        Waits for the project context to be stopped as a result of the project closure, for example.
        Parameters:
        project - the project to wait stopping for, cannot be null
        Returns:
        a reference to the same project, never null
        Throws:
        Exception - if an error occurred