org.eclipse.cdt.managedbuilder.internal.core
Class ToolChain

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.internal.core.BuildObject
      extended by org.eclipse.cdt.managedbuilder.internal.core.HoldsOptions
          extended by org.eclipse.cdt.managedbuilder.internal.core.ToolChain
All Implemented Interfaces:
java.lang.Comparable, IBuildObject, IBuildPropertiesRestriction, IHoldsOptions, IToolChain, IBuildPropertyChangeListener, IMatchKeyProvider

public class ToolChain
extends HoldsOptions
implements IToolChain, IBuildPropertiesRestriction, IMatchKeyProvider


Field Summary
 
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IToolChain
ARCH_LIST, CONFIGURATION_ENVIRONMENT_SUPPLIER, CONFIGURATION_MACRO_SUPPLIER, CONVERT_TO_ID, ERROR_PARSERS, IS_SYSTEM, IS_TOOL_CHAIN_SUPPORTED, NON_INTERNAL_BUILDER_ID, OS_LIST, RESOURCE_TYPE_BASED_DISCOVERY, SCANNER_CONFIG_PROFILE_ID, SECONDARY_OUTPUTS, SUPPORTS_MANAGED_BUILD, TARGET_TOOL, TOOL_CHAIN_ELEMENT_NAME, VERSIONS_SUPPORTED
 
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IHoldsOptions
OPTION, OPTION_CAT, OPTION_REF
 
Constructor Summary
ToolChain(IFolderInfo folderInfo, org.eclipse.cdt.core.settings.model.ICStorageElement element, java.lang.String managedBuildRevision)
          Create a ToolChain based on the specification stored in the project file (.cdtbuild).
ToolChain(IFolderInfo folderInfo, IManagedConfigElement element, java.lang.String managedBuildRevision)
          This constructor is called to create a tool-chain defined by an extension point in a plugin manifest file, or returned by a dynamic element provider
ToolChain(IFolderInfo folderInfo, IToolChain superClass, java.lang.String Id, java.lang.String name, boolean isExtensionElement)
          This constructor is called to create a ToolChain whose attributes and children will be added by separate calls.
ToolChain(IFolderInfo folderInfo, java.lang.String Id, java.lang.String name, java.util.Map superIdMap, ToolChain toolChain)
          Create a ToolChain based upon an existing tool chain.
 
Method Summary
 void addTool(Tool tool)
           
 void checkForMigrationSupport()
           
 CfgDiscoveredPathManager.PathInfoCache clearDiscoveredPathInfo()
           
 int compareTo(java.lang.Object o)
           
 java.util.Set contributeErrorParsers(FolderInfo info, java.util.Set set, boolean includeChildren)
           
 IBuilder createBuilder(IBuilder superClass, java.lang.String id, java.lang.String name, boolean isExtensionElement)
          Creates the Builder child of this tool-chain.
 ITargetPlatform createTargetPlatform(ITargetPlatform superClass, java.lang.String id, java.lang.String name, boolean isExtensionElement)
          Creates the TargetPlatform child of this tool-chain.
 ITool createTool(ITool superClass, java.lang.String id, java.lang.String name, boolean isExtensionElement)
          Creates a Tool child of this tool-chain.
 ITool[] getAllTools(boolean includeCurrentUnused)
           
 java.lang.String[] getArchList()
          Returns an array of architectures the tool-chain outputs can run on.
 BooleanExpressionApplicabilityCalculator getBooleanExpressionCalculator()
           
 IBuilder getBuilder()
          Returns the builder child of this tool-chain.
 IConfigurationBuildMacroSupplier getBuildMacroSupplier()
          Returns the tool-integrator provided implementation of the configuration build macro supplier or null if none.
 org.eclipse.core.runtime.IConfigurationElement getBuildMacroSupplierElement()
          Returns the plugin.xml element of the configurationMacroSupplier extension or null if none.
 org.eclipse.core.runtime.IConfigurationElement getConverterModificationElement(IToolChain tc)
           
 org.eclipse.core.runtime.IConfigurationElement getConverterModificationElement(ITool fromTool, ITool toTool)
           
 java.lang.String getConvertToId()
          Returns the 'convertToId' of this tool-chain
 org.eclipse.core.runtime.IConfigurationElement getCurrentMbsVersionConversionElement()
           
 CfgDiscoveredPathManager.PathInfoCache getDiscoveredPathInfo()
           
 IConfigurationEnvironmentVariableSupplier getEnvironmentVariableSupplier()
          Returns the tool-integrator provided implementation of the configuration environment variable supplier or null if none.
 org.eclipse.core.runtime.IConfigurationElement getEnvironmentVariableSupplierElement()
          Returns the plugin.xml element of the configurationEnvironmentSupplier extension or null if none.
 java.lang.String getErrorParserIds()
          Returns the semicolon separated list of unique IDs of the error parsers associated with the tool-chain.
 java.lang.String getErrorParserIds(IConfiguration config)
          Returns the semicolon separated list of unique IDs of the error parsers associated with the tool-chain, filtered for the specified configuration.
 java.lang.String getErrorParserIdsAttribute()
           
 java.lang.String[] getErrorParserList()
          Returns the ordered list of unique IDs of the error parsers associated with the tool-chain.
 java.util.List getIdenticalList()
           
 java.lang.Object getMatchKey()
           
 java.lang.String getName()
           
 java.lang.String getNameAndVersion()
           
 IOptionPathConverter getOptionPathConverter()
          Returns an IOptionPathConverter implementation for this toolchain or null, if no conversion is required
 java.lang.String[] getOSList()
          Returns an array of operating systems the tool-chain outputs can run on.
 IConfiguration getParent()
          Returns the configuration that is the parent of this tool-chain.
 IFolderInfo getParentFolderInfo()
           
 org.eclipse.core.runtime.IConfigurationElement getPathconverterElement()
           
 org.eclipse.core.runtime.IConfigurationElement getPreviousMbsVersionConversionElement()
           
 java.lang.String[] getRequiredTypeIds()
           
 java.lang.String[] getRequiredTypeIds(boolean checkTools)
           
 java.lang.String getScannerConfigDiscoveryProfileId()
          Returns the scanner config discovery profile id or null if none.
 IOutputType[] getSecondaryOutputs()
          Returns the OutputTypes in this tool-chain, besides the primary output of the targetTool, that are also considered to be build artifacts.
 IToolChain getSuperClass()
          Returns the IToolChain that is the superclass of this tool-chain, or null if the attribute was not specified.
 java.lang.String[] getSupportedTypeIds()
           
 java.lang.String[] getSupportedTypeIds(boolean checkTools)
           
 java.lang.String[] getSupportedValueIds(java.lang.String typeId)
           
 java.lang.String[] getSupportedValueIds(java.lang.String typeId, boolean checkTools)
           
 boolean getSupportsManagedBuildAttribute()
           
 ITargetPlatform getTargetPlatform()
          Returns the target-platform child of this tool-chain
 org.eclipse.cdt.core.settings.model.extension.CTargetPlatformData getTargetPlatformData()
           
 java.lang.String getTargetToolIds()
          Returns the sem-colon separated list of Tool ids containing each tool that can create the final build artifact (the end target of the build).
 java.lang.String[] getTargetToolList()
          Returns the list of Tool ids containing each tool that can create the final build artifact (the end target of the build).
 ITool getTool(java.lang.String id)
          Returns the tool in this tool-chain with the ID specified in the argument, or null
 java.util.List getToolList()
           
 ITool[] getTools()
          Returns an array of tool children of this tool-chain
 ITool[] getToolsBySuperClassId(java.lang.String id)
          Returns the ITool in the tool-chain with the specified ID, or the tool(s) with a superclass with this id.
 java.lang.String getUniqueRealName()
           
 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.
 ITool[] getUnusedTools()
           
 java.lang.String getVersionsSupported()
          Returns the 'versionsSupported' of this tool-chain
 boolean hasCustomSettings(ToolChain tCh)
           
 boolean hasScannerConfigSettings()
           
 boolean isAbstract()
          Returns whether this element is abstract.
 boolean isDirty()
          Returns true if this tool-chain has changes that need to be saved in the project file, else false.
 boolean isExtensionElement()
          Returns true if this tool-chain was loaded from a manifest file, and false if it was loaded from a project (.cdtbuild) file.
 boolean isPerRcTypeDiscovery()
           
 boolean isPreferenceToolChain()
           
 boolean isSupported()
          Returns true if the tool-chain support is installed on the system otherwise returns false
 boolean isSystemObject()
           
 boolean matches(IToolChain tc)
           
 boolean needsRebuild()
          specifies whether the option holder is modified and needs rebuild
 void normalizeOutputExtensions()
           
 void propertiesChanged()
           
 void removeLocalBuilder()
          If the tool chain is not an extension element, and it has its own Builder child, remove the builder so that the tool chain uses its superclass' Builder
 void removeLocalTargetPlatform()
          If the tool chain is not an extension element, and it has its own TargetPlatform child, remove the TargetPlatform so that the tool chain uses its superclass' TargetPlatform
 void removeTool(Tool tool)
           
 boolean requiresType(java.lang.String typeId)
           
 boolean requiresType(java.lang.String typeId, boolean checkTools)
           
 void resetErrorParsers(FolderInfo info)
           
 void resolveReferences()
           
 void serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
          Persist the tool-chain to the project file.
 void setArchList(java.lang.String[] archs)
          Sets the architecture list.
 void setBuilder(Builder builder)
           
 void setConvertToId(java.lang.String convertToId)
          Sets the 'convertToId' attribute of the tool-chain.
 void setDirty(boolean isDirty)
          Sets the element's "dirty" (have I been modified?)
 CfgDiscoveredPathManager.PathInfoCache setDiscoveredPathInfo(CfgDiscoveredPathManager.PathInfoCache info)
           
 void setErrorParserIds(java.lang.String ids)
          Sets the semicolon separated list of error parser ids.
 void setErrorParserList(java.lang.String[] ids)
           
 void setIdenticalList(java.util.List list)
           
 void setIsAbstract(boolean b)
          Sets the isAbstract attribute of the tool-chain.
 void setOSList(java.lang.String[] OSs)
          Sets the OS list.
 void setPerRcTypeDiscovery(boolean on)
           
 void setRebuildState(boolean rebuild)
          sets the holder rebuild state
 void setScannerConfigDiscoveryProfileId(java.lang.String profileId)
          Sets the scanner config discovery profile id.
 void setSecondaryOutputs(java.lang.String newIds)
          Sets the semicolon separated list of OutputType identifiers in this tool-chain, besides the primary output of the targetTool, that are also considered to be build artifacts.
 void setSuperClass(IToolChain superClass)
           
 void setTargetToolIds(java.lang.String newIds)
          Sets the sem-colon separated list of Tool ids containing each tool that can create the final build artifact (the end target of the build).
 void setVersionsSupported(java.lang.String versionsSupported)
          Sets the 'versionsSupported' attribute of the tool-chain.
 boolean supportsBuild(boolean managed)
           
 boolean supportsType(IBuildPropertyType type)
           
 boolean supportsType(java.lang.String type)
           
 boolean supportsType(java.lang.String type, boolean checkTools)
           
 boolean supportsValue(IBuildPropertyType type, IBuildPropertyValue value)
           
 boolean supportsValue(java.lang.String type, java.lang.String value)
           
 boolean supportsValue(java.lang.String type, java.lang.String value, boolean checkTools)
           
 void updateManagedBuildRevision(java.lang.String revision)
           
 
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.HoldsOptions
addChildCategory, addOption, addOptionCategory, adjustOptions, createOption, createOptions, getChildCategories, getOption, getOptionById, getOptionBySuperClassId, getOptionCategory, getOptions, getOptionToSet, removeOption
 
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.BuildObject
getBaseId, getId, getManagedBuildRevision, getVersion, getVersionFromId, setId, setManagedBuildRevision, setName, setVersion, 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.IHoldsOptions
addOptionCategory, createOption, createOptions, getChildCategories, getOption, getOptionById, getOptionBySuperClassId, getOptionCategory, getOptions, getOptionToSet, removeOption
 

Constructor Detail

ToolChain

public ToolChain(IFolderInfo folderInfo,
                 IManagedConfigElement element,
                 java.lang.String managedBuildRevision)
This constructor is called to create a tool-chain defined by an extension point in a plugin manifest file, or returned by a dynamic element provider

Parameters:
parent - The IConfiguration parent of this tool-chain, or null if defined at the top level
element - The tool-chain definition from the manifest file or a dynamic element provider
managedBuildRevision - the fileVersion of Managed Build System

ToolChain

public ToolChain(IFolderInfo folderInfo,
                 IToolChain superClass,
                 java.lang.String Id,
                 java.lang.String name,
                 boolean isExtensionElement)
This constructor is called to create a ToolChain whose attributes and children will be added by separate calls.

Parameters:
Configuration - The parent of the tool chain, if any
ToolChain - The superClass, if any
String - The id for the new tool chain
String - The name for the new tool chain
boolean - Indicates whether this is an extension element or a managed project element

ToolChain

public ToolChain(IFolderInfo folderInfo,
                 org.eclipse.cdt.core.settings.model.ICStorageElement element,
                 java.lang.String managedBuildRevision)
Create a ToolChain based on the specification stored in the project file (.cdtbuild).

Parameters:
parent - The IConfiguration the tool-chain will be added to.
element - The XML element that contains the tool-chain settings.
managedBuildRevision - the fileVersion of Managed Build System

ToolChain

public ToolChain(IFolderInfo folderInfo,
                 java.lang.String Id,
                 java.lang.String name,
                 java.util.Map superIdMap,
                 ToolChain toolChain)
Create a ToolChain based upon an existing tool chain.

Parameters:
parent - The IConfiguration the tool-chain will be added to.
toolChain - The existing tool-chain to clone.
Method Detail

serialize

public void serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
Persist the tool-chain to the project file.

Parameters:
doc -
element -

getParent

public IConfiguration getParent()
Description copied from interface: IToolChain
Returns the configuration that is the parent of this tool-chain.

Specified by:
getParent in interface IToolChain
Returns:
IConfiguration

createTargetPlatform

public ITargetPlatform createTargetPlatform(ITargetPlatform superClass,
                                            java.lang.String id,
                                            java.lang.String name,
                                            boolean isExtensionElement)
Description copied from interface: IToolChain
Creates the TargetPlatform child of this tool-chain.

Specified by:
createTargetPlatform in interface IToolChain
Returns:
ITargetPlatform

getTargetPlatform

public ITargetPlatform getTargetPlatform()
Description copied from interface: IToolChain
Returns the target-platform child of this tool-chain

Specified by:
getTargetPlatform in interface IToolChain
Returns:
ITargetPlatform

removeLocalTargetPlatform

public void removeLocalTargetPlatform()
Description copied from interface: IToolChain
If the tool chain is not an extension element, and it has its own TargetPlatform child, remove the TargetPlatform so that the tool chain uses its superclass' TargetPlatform

Specified by:
removeLocalTargetPlatform in interface IToolChain

createBuilder

public IBuilder createBuilder(IBuilder superClass,
                              java.lang.String id,
                              java.lang.String name,
                              boolean isExtensionElement)
Description copied from interface: IToolChain
Creates the Builder child of this tool-chain.

Specified by:
createBuilder in interface IToolChain
Returns:
IBuilder

setBuilder

public void setBuilder(Builder builder)

getBuilder

public IBuilder getBuilder()
Description copied from interface: IToolChain
Returns the builder child of this tool-chain.

Specified by:
getBuilder in interface IToolChain
Returns:
IBuilder

removeLocalBuilder

public void removeLocalBuilder()
Description copied from interface: IToolChain
If the tool chain is not an extension element, and it has its own Builder child, remove the builder so that the tool chain uses its superclass' Builder

Specified by:
removeLocalBuilder in interface IToolChain

createTool

public ITool createTool(ITool superClass,
                        java.lang.String id,
                        java.lang.String name,
                        boolean isExtensionElement)
Description copied from interface: IToolChain
Creates a Tool child of this tool-chain.

Specified by:
createTool in interface IToolChain
Returns:
ITool

getTools

public ITool[] getTools()
Description copied from interface: IToolChain
Returns an array of tool children of this tool-chain

Specified by:
getTools in interface IToolChain
Returns:
ITool[]

getAllTools

public ITool[] getAllTools(boolean includeCurrentUnused)

getUnusedTools

public ITool[] getUnusedTools()

getTool

public ITool getTool(java.lang.String id)
Description copied from interface: IToolChain
Returns the tool in this tool-chain with the ID specified in the argument, or null

Specified by:
getTool in interface IToolChain
Parameters:
id - The ID of the requested tool
Returns:
ITool

getToolsBySuperClassId

public ITool[] getToolsBySuperClassId(java.lang.String id)
Description copied from interface: IToolChain
Returns the ITool in the tool-chain with the specified ID, or the tool(s) with a superclass with this id.

If the tool-chain does not have a tool with that ID, the method returns an empty array. It is the responsibility of the caller to verify the return value.

Specified by:
getToolsBySuperClassId in interface IToolChain
Parameters:
id - unique identifier of the tool to search for
Returns:
ITool[]

getToolList

public java.util.List getToolList()

addTool

public void addTool(Tool tool)

removeTool

public void removeTool(Tool tool)

getSuperClass

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

Specified by:
getSuperClass in interface IToolChain
Returns:
IToolChain

setSuperClass

public void setSuperClass(IToolChain superClass)

getName

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

isAbstract

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

Specified by:
isAbstract in interface IToolChain
Returns:
boolean

getUnusedChildren

public java.lang.String getUnusedChildren()
Description copied from interface: IToolChain
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 IToolChain
Returns:
String

getErrorParserIds

public java.lang.String getErrorParserIds()
Description copied from interface: IToolChain
Returns the semicolon separated list of unique IDs of the error parsers associated with the tool-chain.

Specified by:
getErrorParserIds in interface IToolChain
Returns:
String

getErrorParserIdsAttribute

public java.lang.String getErrorParserIdsAttribute()

getSecondaryOutputs

public IOutputType[] getSecondaryOutputs()
Description copied from interface: IToolChain
Returns the OutputTypes in this tool-chain, besides the primary output of the targetTool, that are also considered to be build artifacts.

Specified by:
getSecondaryOutputs in interface IToolChain
Returns:
IOutputType[]

getTargetToolIds

public java.lang.String getTargetToolIds()
Description copied from interface: IToolChain
Returns the sem-colon separated list of Tool ids containing each tool that can create the final build artifact (the end target of the build). MBS will use the first ID in the list that matches a Tool in the ToolChain. One reason for specifying a list, is that different versions of a tool can be selected based upon the project nature (e.g. different tool definitions for a linker for C vs. C++).

Specified by:
getTargetToolIds in interface IToolChain
Returns:
String

getTargetToolList

public java.lang.String[] getTargetToolList()
Description copied from interface: IToolChain
Returns the list of Tool ids containing each tool that can create the final build artifact (the end target of the build). MBS will use the first ID in the list that matches a Tool in the ToolChain. One reason for specifying a list, is that different versions of a tool can be selected based upon the project nature (e.g. different tool definitions for a linker for C vs. C++).

Specified by:
getTargetToolList in interface IToolChain
Returns:
String[]

getErrorParserIds

public java.lang.String getErrorParserIds(IConfiguration config)
Description copied from interface: IToolChain
Returns the semicolon separated list of unique IDs of the error parsers associated with the tool-chain, filtered for the specified configuration.

Specified by:
getErrorParserIds in interface IToolChain
Returns:
String

getErrorParserList

public java.lang.String[] getErrorParserList()
Description copied from interface: IToolChain
Returns the ordered list of unique IDs of the error parsers associated with the tool-chain.

Specified by:
getErrorParserList in interface IToolChain
Returns:
String[]

contributeErrorParsers

public java.util.Set contributeErrorParsers(FolderInfo info,
                                            java.util.Set set,
                                            boolean includeChildren)

getArchList

public java.lang.String[] getArchList()
Description copied from interface: IToolChain
Returns an array of architectures the tool-chain outputs can run on.

Specified by:
getArchList in interface IToolChain
Returns:
String[]

getOSList

public java.lang.String[] getOSList()
Description copied from interface: IToolChain
Returns an array of operating systems the tool-chain outputs can run on.

Specified by:
getOSList in interface IToolChain
Returns:
String[]

setIsAbstract

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

Specified by:
setIsAbstract in interface IToolChain

setErrorParserIds

public void setErrorParserIds(java.lang.String ids)
Description copied from interface: IToolChain
Sets the semicolon separated list of error parser ids.

Specified by:
setErrorParserIds in interface IToolChain

setSecondaryOutputs

public void setSecondaryOutputs(java.lang.String newIds)
Description copied from interface: IToolChain
Sets the semicolon separated list of OutputType identifiers in this tool-chain, besides the primary output of the targetTool, that are also considered to be build artifacts.

Specified by:
setSecondaryOutputs in interface IToolChain

setTargetToolIds

public void setTargetToolIds(java.lang.String newIds)
Description copied from interface: IToolChain
Sets the sem-colon separated list of Tool ids containing each tool that can create the final build artifact (the end target of the build).

Specified by:
setTargetToolIds in interface IToolChain

setOSList

public void setOSList(java.lang.String[] OSs)
Description copied from interface: IToolChain
Sets the OS list.

Specified by:
setOSList in interface IToolChain

setArchList

public void setArchList(java.lang.String[] archs)
Description copied from interface: IToolChain
Sets the architecture list.

Specified by:
setArchList in interface IToolChain

getScannerConfigDiscoveryProfileId

public java.lang.String getScannerConfigDiscoveryProfileId()
Description copied from interface: IToolChain
Returns the scanner config discovery profile id or null if none.

Specified by:
getScannerConfigDiscoveryProfileId in interface IToolChain
Returns:
String

setScannerConfigDiscoveryProfileId

public void setScannerConfigDiscoveryProfileId(java.lang.String profileId)
Description copied from interface: IToolChain
Sets the scanner config discovery profile id.

Specified by:
setScannerConfigDiscoveryProfileId in interface IToolChain

getPathconverterElement

public org.eclipse.core.runtime.IConfigurationElement getPathconverterElement()
Returns:
the pathconverterElement

getOptionPathConverter

public IOptionPathConverter getOptionPathConverter()
Description copied from interface: IToolChain
Returns an IOptionPathConverter implementation for this toolchain or null, if no conversion is required

Specified by:
getOptionPathConverter in interface IToolChain

isExtensionElement

public boolean isExtensionElement()
Description copied from interface: IToolChain
Returns true if this tool-chain was loaded from a manifest file, and false if it was loaded from a project (.cdtbuild) file.

Specified by:
isExtensionElement in interface IToolChain
Specified by:
isExtensionElement in class HoldsOptions
Returns:
boolean

isDirty

public boolean isDirty()
Description copied from interface: IToolChain
Returns true if this tool-chain has changes that need to be saved in the project file, else false.

Specified by:
isDirty in interface IToolChain
Returns:
boolean

setDirty

public void setDirty(boolean isDirty)
Description copied from interface: IToolChain
Sets the element's "dirty" (have I been modified?) flag.

Specified by:
setDirty in interface IToolChain

resolveReferences

public void resolveReferences()

normalizeOutputExtensions

public void normalizeOutputExtensions()

getConvertToId

public java.lang.String getConvertToId()
Description copied from interface: IToolChain
Returns the 'convertToId' of this tool-chain

Specified by:
getConvertToId in interface IToolChain
Returns:
String

setConvertToId

public void setConvertToId(java.lang.String convertToId)
Description copied from interface: IToolChain
Sets the 'convertToId' attribute of the tool-chain.

Specified by:
setConvertToId in interface IToolChain

getVersionsSupported

public java.lang.String getVersionsSupported()
Description copied from interface: IToolChain
Returns the 'versionsSupported' of this tool-chain

Specified by:
getVersionsSupported in interface IToolChain
Returns:
String

setVersionsSupported

public void setVersionsSupported(java.lang.String versionsSupported)
Description copied from interface: IToolChain
Sets the 'versionsSupported' attribute of the tool-chain.

Specified by:
setVersionsSupported in interface IToolChain

isSupported

public boolean isSupported()
Description copied from interface: IToolChain
Returns true if the tool-chain support is installed on the system otherwise returns false

Specified by:
isSupported in interface IToolChain
Returns:
boolean

getEnvironmentVariableSupplierElement

public org.eclipse.core.runtime.IConfigurationElement getEnvironmentVariableSupplierElement()
Returns the plugin.xml element of the configurationEnvironmentSupplier extension or null if none.

Returns:
IConfigurationElement

getEnvironmentVariableSupplier

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

Specified by:
getEnvironmentVariableSupplier in interface IToolChain
Returns:
IConfigurationEnvironmentVariableSupplier

getBuildMacroSupplierElement

public org.eclipse.core.runtime.IConfigurationElement getBuildMacroSupplierElement()
Returns the plugin.xml element of the configurationMacroSupplier extension or null if none.

Returns:
IConfigurationElement

getBuildMacroSupplier

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

Specified by:
getBuildMacroSupplier in interface IToolChain
Returns:
IConfigurationBuildMacroSupplier

checkForMigrationSupport

public void checkForMigrationSupport()

getPreviousMbsVersionConversionElement

public org.eclipse.core.runtime.IConfigurationElement getPreviousMbsVersionConversionElement()

getCurrentMbsVersionConversionElement

public org.eclipse.core.runtime.IConfigurationElement getCurrentMbsVersionConversionElement()

updateManagedBuildRevision

public void updateManagedBuildRevision(java.lang.String revision)
Overrides:
updateManagedBuildRevision in class BuildObject

needsRebuild

public boolean needsRebuild()
Description copied from interface: IHoldsOptions
specifies whether the option holder is modified and needs rebuild

Specified by:
needsRebuild in interface IHoldsOptions
Overrides:
needsRebuild in class HoldsOptions
Returns:
boolean

setRebuildState

public void setRebuildState(boolean rebuild)
Description copied from interface: IHoldsOptions
sets the holder rebuild state

Specified by:
setRebuildState in interface IHoldsOptions
Overrides:
setRebuildState in class HoldsOptions

getParentFolderInfo

public IFolderInfo getParentFolderInfo()
Specified by:
getParentFolderInfo in interface IToolChain

getTargetPlatformData

public org.eclipse.cdt.core.settings.model.extension.CTargetPlatformData getTargetPlatformData()
Specified by:
getTargetPlatformData in interface IToolChain

supportsType

public boolean supportsType(java.lang.String type,
                            boolean checkTools)

supportsType

public boolean supportsType(java.lang.String type)
Specified by:
supportsType in interface IBuildPropertiesRestriction
Overrides:
supportsType in class HoldsOptions

supportsType

public boolean supportsType(IBuildPropertyType type)
Overrides:
supportsType in class HoldsOptions

supportsValue

public boolean supportsValue(java.lang.String type,
                             java.lang.String value)
Specified by:
supportsValue in interface IBuildPropertiesRestriction
Overrides:
supportsValue in class HoldsOptions

supportsValue

public boolean supportsValue(java.lang.String type,
                             java.lang.String value,
                             boolean checkTools)

supportsValue

public boolean supportsValue(IBuildPropertyType type,
                             IBuildPropertyValue value)
Overrides:
supportsValue in class HoldsOptions

propertiesChanged

public void propertiesChanged()
Specified by:
propertiesChanged in interface IBuildPropertyChangeListener
Overrides:
propertiesChanged in class HoldsOptions

getBooleanExpressionCalculator

public BooleanExpressionApplicabilityCalculator getBooleanExpressionCalculator()

matches

public boolean matches(IToolChain tc)
Specified by:
matches in interface IToolChain

getIdenticalList

public java.util.List getIdenticalList()
Specified by:
getIdenticalList in interface IMatchKeyProvider

supportsBuild

public boolean supportsBuild(boolean managed)
Specified by:
supportsBuild in interface IToolChain

getSupportsManagedBuildAttribute

public boolean getSupportsManagedBuildAttribute()

isSystemObject

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

getMatchKey

public java.lang.Object getMatchKey()
Specified by:
getMatchKey in interface IMatchKeyProvider

setIdenticalList

public void setIdenticalList(java.util.List list)
Specified by:
setIdenticalList in interface IMatchKeyProvider

getNameAndVersion

public java.lang.String getNameAndVersion()

getConverterModificationElement

public org.eclipse.core.runtime.IConfigurationElement getConverterModificationElement(IToolChain tc)

getConverterModificationElement

public org.eclipse.core.runtime.IConfigurationElement getConverterModificationElement(ITool fromTool,
                                                                                      ITool toTool)

getRequiredTypeIds

public java.lang.String[] getRequiredTypeIds()
Specified by:
getRequiredTypeIds in interface IBuildPropertiesRestriction
Overrides:
getRequiredTypeIds in class HoldsOptions

getRequiredTypeIds

public java.lang.String[] getRequiredTypeIds(boolean checkTools)

getSupportedTypeIds

public java.lang.String[] getSupportedTypeIds()
Specified by:
getSupportedTypeIds in interface IBuildPropertiesRestriction
Overrides:
getSupportedTypeIds in class HoldsOptions

getSupportedTypeIds

public java.lang.String[] getSupportedTypeIds(boolean checkTools)

getSupportedValueIds

public java.lang.String[] getSupportedValueIds(java.lang.String typeId)
Specified by:
getSupportedValueIds in interface IBuildPropertiesRestriction
Overrides:
getSupportedValueIds in class HoldsOptions

getSupportedValueIds

public java.lang.String[] getSupportedValueIds(java.lang.String typeId,
                                               boolean checkTools)

requiresType

public boolean requiresType(java.lang.String typeId)
Specified by:
requiresType in interface IBuildPropertiesRestriction
Overrides:
requiresType in class HoldsOptions

requiresType

public boolean requiresType(java.lang.String typeId,
                            boolean checkTools)

resetErrorParsers

public void resetErrorParsers(FolderInfo info)

setErrorParserList

public void setErrorParserList(java.lang.String[] ids)

getUniqueRealName

public java.lang.String getUniqueRealName()
Specified by:
getUniqueRealName in interface IToolChain

hasScannerConfigSettings

public boolean hasScannerConfigSettings()

isPerRcTypeDiscovery

public boolean isPerRcTypeDiscovery()

setPerRcTypeDiscovery

public void setPerRcTypeDiscovery(boolean on)

setDiscoveredPathInfo

public CfgDiscoveredPathManager.PathInfoCache setDiscoveredPathInfo(CfgDiscoveredPathManager.PathInfoCache info)

getDiscoveredPathInfo

public CfgDiscoveredPathManager.PathInfoCache getDiscoveredPathInfo()

clearDiscoveredPathInfo

public CfgDiscoveredPathManager.PathInfoCache clearDiscoveredPathInfo()

isPreferenceToolChain

public boolean isPreferenceToolChain()

hasCustomSettings

public boolean hasCustomSettings(ToolChain tCh)

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable