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 theIDtProject
associated with the specified project name.getDtProject
(org.eclipse.core.resources.IProject project) Gets theIDtProject
associated withIProject
Gets registeredIDtProject
'sorg.eclipse.core.resources.IProject
getProject
(IDtProject dtProject) Gets theIProject
associated withIDtProject
boolean
isProjectActive
(IDtProject dtProject) Checks if the given project is active
-
Constructor Details
-
DtProjectManagerMock
public DtProjectManagerMock()
-
-
Method Details
-
getDtProject
Description copied from interface:IDtProjectManager
Gets theIDtProject
associated withIProject
- Specified by:
getDtProject
in interfaceIDtProjectManager
- Parameters:
project
- TheIProject
to get theIDtProject
for. May benull
only in case if data incosistency of the project lifecycle- Returns:
- matching
IDtProject
-
getDtProject
Description copied from interface:IDtProjectManager
Gets theIDtProject
associated with the specified project name.
Just a while theprojectName
is a project name.- Specified by:
getDtProject
in interfaceIDtProjectManager
- Parameters:
projectName
- The project name to get theIDtProject
for. May benull
only in case if data incosistency of the project lifecycle.- Returns:
- matching
IDtProject
ornull
if there is no matching instance.
-
getProject
Description copied from interface:IDtProjectManager
Gets theIProject
associated withIDtProject
- Specified by:
getProject
in interfaceIDtProjectManager
- Parameters:
dtProject
- TheIDtProject
to get theIProject
for. May benull
for non-workspace projects- Returns:
- The matching
IProject
if presents. May benull
for non-workspace projects
-
isProjectActive
Description copied from interface:IDtProjectManager
Checks if the given project is active- Specified by:
isProjectActive
in interfaceIDtProjectManager
- Parameters:
dtProject
- TargetIDtProject
. May not benull
- Returns:
- True if the project is active
-
getDtProjects
Description copied from interface:IDtProjectManager
Gets registeredIDtProject
's- Specified by:
getDtProjects
in interfaceIDtProjectManager
- Returns:
- Collection of registered
IDtProject
's. May not benull
-
findParentProject
Description copied from interface:IDtProjectManager
Finds parent project for the specified. OnlyIDependentProject
s have parent projects.- Specified by:
findParentProject
in interfaceIDtProjectManager
- Parameters:
project
-IDtProject
for found its parent project. May not benull
- Returns:
- parent
IDtProject
for the specified, may benull
if the specified project is not corresponding toIDependentProject
-