|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.managedbuilder.internal.core.BuildObject
org.eclipse.cdt.managedbuilder.internal.core.ManagedProject
public class ManagedProject
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IManagedProject |
---|
BUILD_ARTEFACT_TYPE, BUILD_PROPERTIES, MANAGED_PROJECT_ELEMENT_NAME, PROJECTTYPE |
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
ID, NAME |
Constructor Summary | |
---|---|
ManagedProject(org.eclipse.cdt.core.settings.model.ICProjectDescription des)
|
|
ManagedProject(org.eclipse.core.resources.IResource owner,
IProjectType projectType)
Create a project instance from the project-type specified in the argument, that is owned by the specified Eclipse project. |
|
ManagedProject(ManagedBuildInfo buildInfo,
org.eclipse.cdt.core.settings.model.ICStorageElement element,
boolean loadConfigs,
java.lang.String managedBuildRevision)
Create the project instance from project file. |
Method Summary | |
---|---|
void |
addConfiguration(Configuration configuration)
|
void |
applyConfiguration(Configuration cfg)
|
IConfiguration |
createConfiguration(IConfiguration parent,
java.lang.String id)
Creates a configuration for this project populated with the tools and options settings from the parent configuration. |
IConfiguration |
createConfigurationClone(IConfiguration parent,
java.lang.String id)
Creates a configuration for this project populated with the tools and options settings from the parent configuration. |
IBuildObjectProperties |
getBuildProperties()
|
IConfiguration |
getConfiguration(java.lang.String id)
Returns the configuration with the given id, or null if not found. |
java.util.Map |
getConfigurationMap()
|
IConfiguration[] |
getConfigurations()
Returns all of the configurations defined by this project-type. |
java.lang.String |
getDefaultArtifactName()
Returns the default build artifact name for the project |
org.eclipse.core.resources.IResource |
getOwner()
Returns the owner of the managed project (an IProject). |
IProjectType |
getProjectType()
Answers the IProjectType that is the superclass of this
project-type, or null if the attribute was not specified. |
java.lang.String[] |
getRequiredTypeIds()
|
java.lang.String[] |
getSupportedTypeIds()
|
java.lang.String[] |
getSupportedValueIds(java.lang.String typeId)
|
org.eclipse.cdt.utils.envvar.StorableEnvironment |
getUserDefinedEnvironmet()
|
org.eclipse.core.runtime.PluginVersionIdentifier |
getVersion()
|
boolean |
isDirty()
Returns true if this project has changes that need to
be saved in the project file, else false . |
boolean |
isValid()
Returns true if this project is valid
else false . |
void |
propertiesChanged()
|
void |
removeConfiguration(java.lang.String id)
Removes the configuration with the ID specified in the argument. |
boolean |
requiresType(java.lang.String typeId)
|
boolean |
resolveReferences()
|
void |
serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element,
boolean saveChildren)
|
void |
serializeProjectInfo(org.eclipse.cdt.core.settings.model.ICStorageElement element)
|
void |
setDirty(boolean isDirty)
Sets the element's "dirty" (have I been modified?) |
void |
setProjectType(IProjectType projectType)
|
void |
setUserDefinedEnvironmet(org.eclipse.cdt.utils.envvar.StorableEnvironment env)
|
void |
setValid(boolean isValid)
Sets the element's "Valid" flag. |
void |
setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
|
boolean |
supportsType(IBuildPropertyType type)
|
boolean |
supportsType(java.lang.String typeId)
|
boolean |
supportsValue(IBuildPropertyType type,
IBuildPropertyValue value)
|
boolean |
supportsValue(java.lang.String typeId,
java.lang.String valueId)
|
void |
updateManagedBuildRevision(java.lang.String revision)
|
void |
updateOwner(org.eclipse.core.resources.IResource resource)
Sets the owner of the managed project. |
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.BuildObject |
---|
getBaseId, getId, getManagedBuildRevision, getName, getVersionFromId, setId, setManagedBuildRevision, setName, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
getBaseId, getId, getManagedBuildRevision, getName |
Constructor Detail |
---|
public ManagedProject(org.eclipse.core.resources.IResource owner, IProjectType projectType)
owner
- the Eclipse project that owns the Managed ProjectprojectType
- public ManagedProject(org.eclipse.cdt.core.settings.model.ICProjectDescription des)
public ManagedProject(ManagedBuildInfo buildInfo, org.eclipse.cdt.core.settings.model.ICStorageElement element, boolean loadConfigs, java.lang.String managedBuildRevision)
buildInfo
- element
- managedBuildRevision
- the fileVersion of Managed Build SystemMethod Detail |
---|
public void serializeProjectInfo(org.eclipse.cdt.core.settings.model.ICStorageElement element)
public void serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element, boolean saveChildren)
public org.eclipse.core.resources.IResource getOwner()
IManagedProject
getOwner
in interface IManagedProject
public void updateOwner(org.eclipse.core.resources.IResource resource)
IManagedProject
updateOwner
in interface IManagedProject
public IProjectType getProjectType()
IManagedProject
IProjectType
that is the superclass of this
project-type, or null
if the attribute was not specified.
getProjectType
in interface IManagedProject
public IConfiguration createConfiguration(IConfiguration parent, java.lang.String id)
IManagedProject
This method performs steps 3 & 4 described above.
createConfiguration
in interface IManagedProject
parent
- The IConfiguration
to use as a settings templateid
- The unique id the new configuration will have
public IConfiguration createConfigurationClone(IConfiguration parent, java.lang.String id)
IManagedProject
createConfiguration
method, this method creates a configuration
from an existing configuration in the project.
In this case, the new configuration is cloned from the existing configuration, and does not retain a pointer to the existing configuration.
createConfigurationClone
in interface IManagedProject
parent
- The IConfiguration
to cloneid
- The unique id the new configuration will have
public IConfiguration getConfiguration(java.lang.String id)
IManagedProject
null
if not found.
getConfiguration
in interface IManagedProject
id
- The unique id of the configuration
public IConfiguration[] getConfigurations()
IManagedProject
getConfigurations
in interface IManagedProject
public void removeConfiguration(java.lang.String id)
IManagedProject
removeConfiguration
in interface IManagedProject
id
- The unique id of the configurationpublic void addConfiguration(Configuration configuration)
public java.util.Map getConfigurationMap()
public java.lang.String getDefaultArtifactName()
IManagedProject
getDefaultArtifactName
in interface IManagedProject
public boolean resolveReferences()
public boolean isDirty()
IManagedProject
true
if this project has changes that need to
be saved in the project file, else false
.
isDirty
in interface IManagedProject
public void setDirty(boolean isDirty)
IManagedProject
setDirty
in interface IManagedProject
public boolean isValid()
IManagedProject
true
if this project is valid
else false
.
isValid
in interface IManagedProject
public void setValid(boolean isValid)
IManagedProject
setValid
in interface IManagedProject
public org.eclipse.core.runtime.PluginVersionIdentifier getVersion()
getVersion
in interface IBuildObject
getVersion
in class BuildObject
public void setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
setVersion
in interface IBuildObject
setVersion
in class BuildObject
version
- The version to set.public org.eclipse.cdt.utils.envvar.StorableEnvironment getUserDefinedEnvironmet()
public void setUserDefinedEnvironmet(org.eclipse.cdt.utils.envvar.StorableEnvironment env)
public void updateManagedBuildRevision(java.lang.String revision)
updateManagedBuildRevision
in class BuildObject
public void setProjectType(IProjectType projectType)
public void applyConfiguration(Configuration cfg)
public IBuildObjectProperties getBuildProperties()
getBuildProperties
in interface IBuildObjectPropertiesContainer
public void propertiesChanged()
propertiesChanged
in interface IBuildPropertyChangeListener
public boolean supportsType(IBuildPropertyType type)
public boolean supportsValue(IBuildPropertyType type, IBuildPropertyValue value)
public boolean supportsType(java.lang.String typeId)
supportsType
in interface IBuildPropertiesRestriction
public boolean supportsValue(java.lang.String typeId, java.lang.String valueId)
supportsValue
in interface IBuildPropertiesRestriction
public java.lang.String[] getRequiredTypeIds()
getRequiredTypeIds
in interface IBuildPropertiesRestriction
public java.lang.String[] getSupportedTypeIds()
getSupportedTypeIds
in interface IBuildPropertiesRestriction
public java.lang.String[] getSupportedValueIds(java.lang.String typeId)
getSupportedValueIds
in interface IBuildPropertiesRestriction
public boolean requiresType(java.lang.String typeId)
requiresType
in interface IBuildPropertiesRestriction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |