|
||||||||||
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.ProjectType
public class ProjectType
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IProjectType |
---|
BUILD_ARTEFACT_TYPE, BUILD_PROPERTIES, CONFIGURATION_NAME_PROVIDER, CONVERT_TO_ID, IS_ABSTRACT, IS_TEST, PROJECT_ENVIRONMENT_SUPPLIER, PROJECT_MACRO_SUPPLIER, PROJECTTYPE_ELEMENT_NAME, SUPERCLASS, UNUSED_CHILDREN |
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
ID, NAME |
Constructor Summary | |
---|---|
ProjectType(IManagedConfigElement element,
java.lang.String managedBuildRevision)
This constructor is called to create a projectType defined by an extension point in a plugin manifest file. |
|
ProjectType(ProjectType superClass,
java.lang.String Id,
java.lang.String name,
java.lang.String managedBuildRevision)
This constructor is called to create a project type whose attributes and children will be added by separate calls. |
Method Summary | |
---|---|
void |
addConfiguration(Configuration configuration)
|
boolean |
checkForMigrationSupport()
check for migration support. |
IConfiguration |
createConfiguration(IConfiguration parent,
java.lang.String id,
java.lang.String name)
Creates a configuration for this project-type populated with the tools and options settings from the parent configuration. |
IBuildPropertyValue |
getBuildArtefactType()
|
IProjectBuildMacroSupplier |
getBuildMacroSupplier()
Returns the tool-integrator provided implementation of the project build macro supplier or null if none. |
org.eclipse.core.runtime.IConfigurationElement |
getBuildMacroSupplierElement()
Returns the plugin.xml element of the projectMacroSupplier extension or null if none. |
IBuildObjectProperties |
getBuildProperties()
|
IConfiguration |
getConfiguration(java.lang.String id)
Returns the configuration with the given id, or null if not found. |
IConfigurationNameProvider |
getConfigurationNameProvider()
Returns the configurationNameProvider. |
org.eclipse.core.runtime.IConfigurationElement |
getConfigurationNameProviderElement()
|
IConfiguration[] |
getConfigurations()
Returns all of the configurations defined by this project-type. |
java.lang.String |
getConvertToId()
Returns the 'convertToId' of this project type. |
org.eclipse.core.runtime.IConfigurationElement |
getCurrentMbsVersionConversionElement()
|
IProjectEnvironmentVariableSupplier |
getEnvironmentVariableSupplier()
Returns the tool-integrator provided implementation of the project environment variable supplier or null if none. |
org.eclipse.core.runtime.IConfigurationElement |
getEnvironmentVariableSupplierElement()
Returns the plugin.xml element of the projectEnvironmentSupplier extension or null if none. |
java.lang.String |
getName()
|
java.lang.String |
getNameAttribute()
|
org.eclipse.core.runtime.IConfigurationElement |
getPreviousMbsVersionConversionElement()
|
java.lang.String[] |
getRequiredTypeIds()
|
IProjectType |
getSuperClass()
Returns the IProjectType that is the superclass of this
project-type, or null if the attribute was not specified. |
java.lang.String[] |
getSupportedTypeIds()
|
java.lang.String[] |
getSupportedValueIds(java.lang.String typeId)
|
java.lang.String |
getUnusedChildren()
Returns a semi-colon delimited list of child Ids of the superclass' children that should not be automatically inherited by this element. |
boolean |
isAbstract()
Returns whether this element is abstract. |
boolean |
isSupported()
Returns true if at least one project-type contiguration is supported on the system
otherwise returns false |
boolean |
isSystemObject()
|
boolean |
isTestProjectType()
Returns true if the project-type is defined
for testing purposes only, 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)
|
void |
resolveReferences()
|
void |
setConfigurationNameProviderElement(org.eclipse.core.runtime.IConfigurationElement configurationElement)
|
void |
setConvertToId(java.lang.String convertToId)
Sets the 'convertToId' attribute of the project type. |
void |
setIsAbstract(boolean b)
Sets the isAbstract attribute of the tool-chain. |
void |
setIsTest(boolean b)
|
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)
|
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.BuildObject |
---|
getBaseId, getId, getManagedBuildRevision, getVersion, getVersionFromId, setId, setManagedBuildRevision, setName, setVersion, toString, updateManagedBuildRevision |
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, getVersion, setVersion |
Constructor Detail |
---|
public ProjectType(IManagedConfigElement element, java.lang.String managedBuildRevision)
element
- managedBuildRevision
- public ProjectType(ProjectType superClass, java.lang.String Id, java.lang.String name, java.lang.String managedBuildRevision)
ProjectType
- The superClass, if anyString
- The id for the new project typeString
- The name for the new project typeMethod Detail |
---|
public IConfiguration createConfiguration(IConfiguration parent, java.lang.String id, java.lang.String name)
IProjectType
NOTE: This routine affects the in-memory representation of the project-type, but since project-types are never written to the .cdtbuild file, the manifest definition does not change.
createConfiguration
in interface IProjectType
parent
- The IConfiguration
to use as a settings templateid
- The unique id the new configuration will havename
- The name the new configuration will have
public IConfiguration getConfiguration(java.lang.String id)
IProjectType
null
if not found.
getConfiguration
in interface IProjectType
id
- The unique id of the configuration
public IConfiguration[] getConfigurations()
IProjectType
getConfigurations
in interface IProjectType
public void removeConfiguration(java.lang.String id)
IProjectType
NOTE: This routine affects the in-memory representation of the project-type, but since project-types are never written to the .cdtbuild file, the manifest definition does not change.
removeConfiguration
in interface IProjectType
id
- The unique id of the configurationpublic void addConfiguration(Configuration configuration)
public java.lang.String getName()
getName
in interface IBuildObject
getName
in class BuildObject
public java.lang.String getNameAttribute()
getNameAttribute
in interface IProjectType
public IProjectType getSuperClass()
IProjectType
IProjectType
that is the superclass of this
project-type, or null
if the attribute was not specified.
getSuperClass
in interface IProjectType
public boolean isAbstract()
IProjectType
false
if the attribute was not specified.
isAbstract
in interface IProjectType
public java.lang.String getUnusedChildren()
IProjectType
getUnusedChildren
in interface IProjectType
public boolean isTestProjectType()
IProjectType
true
if the project-type is defined
for testing purposes only, else false
. A test project-type will
not be shown in the UI but can still be manipulated programmatically.
Returns false
if the attribute was not specified.
isTestProjectType
in interface IProjectType
public void setIsAbstract(boolean b)
IProjectType
setIsAbstract
in interface IProjectType
public void setIsTest(boolean b)
public void resolveReferences()
public boolean isSupported()
IProjectType
true
if at least one project-type contiguration is supported on the system
otherwise returns false
isSupported
in interface IProjectType
public org.eclipse.core.runtime.IConfigurationElement getConfigurationNameProviderElement()
public void setConfigurationNameProviderElement(org.eclipse.core.runtime.IConfigurationElement configurationElement)
public IConfigurationNameProvider getConfigurationNameProvider()
IProjectType
getConfigurationNameProvider
in interface IProjectType
public org.eclipse.core.runtime.IConfigurationElement getEnvironmentVariableSupplierElement()
null
if none.
public IProjectEnvironmentVariableSupplier getEnvironmentVariableSupplier()
IProjectType
null
if none.
getEnvironmentVariableSupplier
in interface IProjectType
public org.eclipse.core.runtime.IConfigurationElement getBuildMacroSupplierElement()
null
if none.
public IProjectBuildMacroSupplier getBuildMacroSupplier()
IProjectType
null
if none.
getBuildMacroSupplier
in interface IProjectType
public java.lang.String getConvertToId()
IProjectType
getConvertToId
in interface IProjectType
public void setConvertToId(java.lang.String convertToId)
IProjectType
setConvertToId
in interface IProjectType
public boolean checkForMigrationSupport()
IProjectType
checkForMigrationSupport
in interface IProjectType
public org.eclipse.core.runtime.IConfigurationElement getPreviousMbsVersionConversionElement()
public org.eclipse.core.runtime.IConfigurationElement getCurrentMbsVersionConversionElement()
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
public IBuildPropertyValue getBuildArtefactType()
getBuildArtefactType
in interface IProjectType
public boolean isSystemObject()
isSystemObject
in interface IProjectType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |