Package com._1c.g5.v8.dt.testing
Class TestingProjectLifecycleSupport
java.lang.Object
com._1c.g5.v8.dt.testing.TestingProjectLifecycleSupport
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 Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.core.resources.IProject
waitForProjectStart
(org.eclipse.core.resources.IProject project) Waits until the provided project'sProjectContext
state matches the ServiceState.STARTED.static org.eclipse.core.resources.IProject
waitForProjectStop
(org.eclipse.core.resources.IProject project) Waits for the project context to be stopped as a result of the project closure, for example.
-
Method Details
-
waitForProjectStart
public static org.eclipse.core.resources.IProject waitForProjectStart(org.eclipse.core.resources.IProject project) Waits until the provided project'sProjectContext
state matches the ServiceState.STARTED.- Parameters:
project
- the project to wait the started state change for, cannot benull
- 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 benull
- Returns:
- a reference to the same project, never
null
- Throws:
Exception
- if an error occurred
-