org.eclipse.cdt.managedbuilder.ui.tests.util
Class TestProjectType

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.ui.tests.util.TestProjectType
All Implemented Interfaces:
IBuildObject, IBuildObjectPropertiesContainer, IProjectType

public class TestProjectType
extends java.lang.Object
implements IProjectType


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
TestProjectType()
           
 
Method Summary
 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.
 java.lang.String getBaseId()
           
 IBuildPropertyValue getBuildArtefactType()
           
 IProjectBuildMacroSupplier getBuildMacroSupplier()
          Returns the tool-integrator provided implementation of the project build macro supplier 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.
 IConfiguration[] getConfigurations()
          Returns all of the configurations defined by this project-type.
 java.lang.String getConvertToId()
          Returns the 'convertToId' of this project type.
 IProjectEnvironmentVariableSupplier getEnvironmentVariableSupplier()
          Returns the tool-integrator provided implementation of the project environment variable supplier or null if none.
 java.lang.String getId()
           
 java.lang.String getManagedBuildRevision()
           
 java.lang.String getName()
           
 java.lang.String getNameAttribute()
           
 IProjectType getSuperClass()
          Returns the IProjectType that is the superclass of this project-type, or null if the attribute was not specified.
 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.
 org.eclipse.core.runtime.PluginVersionIdentifier getVersion()
           
 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 removeConfiguration(java.lang.String id)
          Removes the configuration with the ID specified in the argument.
 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 setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestProjectType

public TestProjectType()
Method Detail

checkForMigrationSupport

public boolean checkForMigrationSupport()
Description copied from interface: IProjectType
check for migration support.

Specified by:
checkForMigrationSupport in interface IProjectType
Returns:
boolean

createConfiguration

public IConfiguration createConfiguration(IConfiguration parent,
                                          java.lang.String id,
                                          java.lang.String name)
Description copied from interface: IProjectType
Creates a configuration for this project-type populated with the tools and options settings from the parent configuration. As options and tools change in the parent, unoverridden values are updated in the child configuration as well.

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.

Specified by:
createConfiguration in interface IProjectType
Parameters:
parent - The IConfiguration to use as a settings template
id - The unique id the new configuration will have
name - The name the new configuration will have
Returns:
IConfiguration of the new configuration

getBuildMacroSupplier

public IProjectBuildMacroSupplier getBuildMacroSupplier()
Description copied from interface: IProjectType
Returns the tool-integrator provided implementation of the project build macro supplier or null if none.

Specified by:
getBuildMacroSupplier in interface IProjectType
Returns:
IProjectBuildMacroSupplier

getConfiguration

public IConfiguration getConfiguration(java.lang.String id)
Description copied from interface: IProjectType
Returns the configuration with the given id, or null if not found.

Specified by:
getConfiguration in interface IProjectType
Parameters:
id - The unique id of the configuration
Returns:
IConfiguration

getConfigurationNameProvider

public IConfigurationNameProvider getConfigurationNameProvider()
Description copied from interface: IProjectType
Returns the configurationNameProvider.

Specified by:
getConfigurationNameProvider in interface IProjectType
Returns:
IConfigurationNameProvider

getConfigurations

public IConfiguration[] getConfigurations()
Description copied from interface: IProjectType
Returns all of the configurations defined by this project-type.

Specified by:
getConfigurations in interface IProjectType
Returns:
IConfiguration[]

getConvertToId

public java.lang.String getConvertToId()
Description copied from interface: IProjectType
Returns the 'convertToId' of this project type.

Specified by:
getConvertToId in interface IProjectType
Returns:
String

getEnvironmentVariableSupplier

public IProjectEnvironmentVariableSupplier getEnvironmentVariableSupplier()
Description copied from interface: IProjectType
Returns the tool-integrator provided implementation of the project environment variable supplier or null if none.

Specified by:
getEnvironmentVariableSupplier in interface IProjectType
Returns:
IProjectEnvironmentVariableSupplier

getNameAttribute

public java.lang.String getNameAttribute()
Specified by:
getNameAttribute in interface IProjectType

getSuperClass

public IProjectType getSuperClass()
Description copied from interface: IProjectType
Returns the IProjectType that is the superclass of this project-type, or null if the attribute was not specified.

Specified by:
getSuperClass in interface IProjectType
Returns:
IProjectType

getUnusedChildren

public java.lang.String getUnusedChildren()
Description copied from interface: IProjectType
Returns a semi-colon delimited list of child Ids of the superclass' children that should not be automatically inherited by this element. Returns an empty string if the attribute was not specified.

Specified by:
getUnusedChildren in interface IProjectType
Returns:
String

isAbstract

public boolean isAbstract()
Description copied from interface: IProjectType
Returns whether this element is abstract. Returns false if the attribute was not specified.

Specified by:
isAbstract in interface IProjectType
Returns:
boolean

isSupported

public boolean isSupported()
Description copied from interface: IProjectType
Returns true if at least one project-type contiguration is supported on the system otherwise returns false

Specified by:
isSupported in interface IProjectType
Returns:
boolean

isTestProjectType

public boolean isTestProjectType()
Description copied from interface: IProjectType
Returns 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.

Specified by:
isTestProjectType in interface IProjectType
Returns:
boolean

removeConfiguration

public void removeConfiguration(java.lang.String id)
Description copied from interface: IProjectType
Removes the configuration with the ID specified in the argument.

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.

Specified by:
removeConfiguration in interface IProjectType
Parameters:
id - The unique id of the configuration

setConvertToId

public void setConvertToId(java.lang.String convertToId)
Description copied from interface: IProjectType
Sets the 'convertToId' attribute of the project type.

Specified by:
setConvertToId in interface IProjectType

setIsAbstract

public void setIsAbstract(boolean b)
Description copied from interface: IProjectType
Sets the isAbstract attribute of the tool-chain.

Specified by:
setIsAbstract in interface IProjectType

getBaseId

public java.lang.String getBaseId()
Specified by:
getBaseId in interface IBuildObject

getId

public java.lang.String getId()
Specified by:
getId in interface IBuildObject

getManagedBuildRevision

public java.lang.String getManagedBuildRevision()
Specified by:
getManagedBuildRevision in interface IBuildObject

getName

public java.lang.String getName()
Specified by:
getName in interface IBuildObject

getVersion

public org.eclipse.core.runtime.PluginVersionIdentifier getVersion()
Specified by:
getVersion in interface IBuildObject

setVersion

public void setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
Specified by:
setVersion in interface IBuildObject

getBuildProperties

public IBuildObjectProperties getBuildProperties()
Specified by:
getBuildProperties in interface IBuildObjectPropertiesContainer

getBuildArtefactType

public IBuildPropertyValue getBuildArtefactType()
Specified by:
getBuildArtefactType in interface IProjectType

isSystemObject

public boolean isSystemObject()
Specified by:
isSystemObject in interface IProjectType