Class DtProjectManagerMock
java.lang.Object
com.e1c.g5.v8.dt.internal.snapshot.DtProjectManagerMock
- All Implemented Interfaces:
IDtProjectManager
Mock implementation of
IDtProjectManager. This manager considers any IProject to be a started
DT project.-
Field Summary
Fields inherited from interface com._1c.g5.v8.dt.core.platform.IDtProjectManager
SERVICE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindParentProject(IDtProject project) Finds parent project for the specified.getDtProject(String projectName) Gets theIDtProjectassociated with the specified project name.getDtProject(org.eclipse.core.resources.IProject project) Gets theIDtProjectassociated withIProjectGets registeredIDtProject'sorg.eclipse.core.resources.IProjectgetProject(IDtProject dtProject) Gets theIProjectassociated withIDtProjectbooleanisProjectActive(IDtProject dtProject) Checks if the given project is active
-
Constructor Details
-
DtProjectManagerMock
public DtProjectManagerMock()
-
-
Method Details
-
getDtProject
Description copied from interface:IDtProjectManagerGets theIDtProjectassociated withIProject- Specified by:
getDtProjectin interfaceIDtProjectManager- Parameters:
project- TheIProjectto get theIDtProjectfor. May benullonly in case if data incosistency of the project lifecycle- Returns:
- matching
IDtProject
-
getDtProject
Description copied from interface:IDtProjectManagerGets theIDtProjectassociated with the specified project name.
Just a while theprojectNameis a project name.- Specified by:
getDtProjectin interfaceIDtProjectManager- Parameters:
projectName- The project name to get theIDtProjectfor. May benullonly in case if data incosistency of the project lifecycle.- Returns:
- matching
IDtProjectornullif there is no matching instance.
-
getProject
Description copied from interface:IDtProjectManagerGets theIProjectassociated withIDtProject- Specified by:
getProjectin interfaceIDtProjectManager- Parameters:
dtProject- TheIDtProjectto get theIProjectfor. May benullfor non-workspace projects- Returns:
- The matching
IProjectif presents. May benullfor non-workspace projects
-
isProjectActive
Description copied from interface:IDtProjectManagerChecks if the given project is active- Specified by:
isProjectActivein interfaceIDtProjectManager- Parameters:
dtProject- TargetIDtProject. May not benull- Returns:
- True if the project is active
-
getDtProjects
Description copied from interface:IDtProjectManagerGets registeredIDtProject's- Specified by:
getDtProjectsin interfaceIDtProjectManager- Returns:
- Collection of registered
IDtProject's. May not benull
-
findParentProject
Description copied from interface:IDtProjectManagerFinds parent project for the specified. OnlyIDependentProjects have parent projects.- Specified by:
findParentProjectin interfaceIDtProjectManager- Parameters:
project-IDtProjectfor found its parent project. May not benull- Returns:
- parent
IDtProjectfor the specified, may benullif the specified project is not corresponding toIDependentProject
-