Package com._1c.g5.v8.dt.core.platform
Interface IDependentProject
-
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable
,IV8Project
- All Known Subinterfaces:
IExtensionProject
,IExternalObjectProject
public interface IDependentProject extends IV8Project
IDependentProject
represents a handle of an abstract V8 dependent project. Dependent projects may have a V8 configuration project as the parent, but may also be independent.Clients need to use an
appropriate
V8 project-specific manager to change or clear project parent.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Collection<IDtProject>
getDependent(IDtProject parent, Collection<? extends IV8Project> candidates)
Utility method that returns a collection of dependent DT projects from the collection of the given v8 project candidates.static Collection<IDtProject>
getDependent(IDtProject parent, Collection<? extends IV8Project> candidates, Class<? extends IDependentProject> type)
Utility method that returns a collection of dependent DT projects of the given type from the collection of the given v8 project candidates.static Collection<org.eclipse.core.resources.IProject>
getDependent(org.eclipse.core.resources.IProject parent, Collection<? extends IV8Project> candidates)
Utility method that returns a collection of dependent projects from the collection of the given v8 project candidates.static Collection<org.eclipse.core.resources.IProject>
getDependent(org.eclipse.core.resources.IProject parent, Collection<? extends IV8Project> candidates, Class<? extends IDependentProject> type)
Utility method that returns a collection of dependent projects of the given type from the collection of the given v8 project candidates.IConfigurationProject
getParent()
Returns parent configuration project of this dependent project.org.eclipse.core.resources.IProject
getParentProject()
Returns underlying workspaceIProject
of parent configuration project of this dependent project.static boolean
isDependent(IV8Project v8project, IDtProject parent)
Utility method that returns whether the given V8 project is dependent for the given parent DT project candidate.static boolean
isDependent(IV8Project v8project, org.eclipse.core.resources.IProject parent)
Utility method that returns whether the given V8 project is dependent for the given parent project candidate.-
Methods inherited from interface com._1c.g5.v8.dt.core.platform.IV8Project
getCompatibilityMode, getDefaultLanguage, getDtProject, getLanguages, getProject, getScriptVariant, getUsePurposes, getVersion
-
-
-
-
Method Detail
-
getParent
IConfigurationProject getParent()
Returns parent configuration project of this dependent project. Returnsnull
if this project is independent (has no parent).- Returns:
- parent configuration V8 project or
null
if none
-
getParentProject
org.eclipse.core.resources.IProject getParentProject()
Returns underlying workspaceIProject
of parent configuration project of this dependent project. Returnsnull
if this project is independent (has no parent).- Returns:
- parent configuration
IProject
ornull
if none
-
isDependent
static boolean isDependent(IV8Project v8project, org.eclipse.core.resources.IProject parent)
Utility method that returns whether the given V8 project is dependent for the given parent project candidate.- Parameters:
v8project
- the V8 project to check, cannot benull
parent
- the parent project candidate, cannot benull
- Returns:
- whether the given V8 project is dependent for the given parent project candidate
-
isDependent
static boolean isDependent(IV8Project v8project, IDtProject parent)
Utility method that returns whether the given V8 project is dependent for the given parent DT project candidate.- Parameters:
v8project
- the V8 project to check, cannot benull
parent
- the parent project candidate, cannot benull
- Returns:
- whether the given V8 project is dependent for the given parent project candidate
-
getDependent
static Collection<org.eclipse.core.resources.IProject> getDependent(org.eclipse.core.resources.IProject parent, Collection<? extends IV8Project> candidates)
Utility method that returns a collection of dependent projects from the collection of the given v8 project candidates.- Parameters:
parent
- the parent project to get dependent for, cannot benull
candidates
- the v8 project candidates, cannot benull
- Returns:
- a collection of dependent projects from the collection of the given v8 project candidates,
never
null
-
getDependent
static Collection<IDtProject> getDependent(IDtProject parent, Collection<? extends IV8Project> candidates)
Utility method that returns a collection of dependent DT projects from the collection of the given v8 project candidates.- Parameters:
parent
- the parent project to get dependent for, cannot benull
candidates
- the v8 project candidates, cannot benull
- Returns:
- a collection of dependent projects from the collection of the given v8 project candidates,
never
null
-
getDependent
static Collection<org.eclipse.core.resources.IProject> getDependent(org.eclipse.core.resources.IProject parent, Collection<? extends IV8Project> candidates, Class<? extends IDependentProject> type)
Utility method that returns a collection of dependent projects of the given type from the collection of the given v8 project candidates.- Parameters:
parent
- the parent project to get dependent for, cannot benull
candidates
- the v8 project candidates, cannot benull
type
- the specific dependent project type to get, cannot benull
- Returns:
- a collection of dependent projects of the given type from the collection of the given v8
project candidates, never
null
-
getDependent
static Collection<IDtProject> getDependent(IDtProject parent, Collection<? extends IV8Project> candidates, Class<? extends IDependentProject> type)
Utility method that returns a collection of dependent DT projects of the given type from the collection of the given v8 project candidates.- Parameters:
parent
- the parent project to get dependent for, cannot benull
candidates
- the v8 project candidates, cannot benull
type
- the specific dependent project type to get, cannot benull
- Returns:
- a collection of dependent projects of the given type from the collection of the given v8
project candidates, never
null
-
-