|
||||||||||
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.HoldsOptions
org.eclipse.cdt.managedbuilder.ui.tests.util.TestToolchain
public class TestToolchain
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 | |
---|---|
TestToolchain()
|
Method Summary | |
---|---|
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. |
java.lang.String[] |
getArchList()
Returns an array of architectures the tool-chain outputs can run on. |
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. |
java.lang.String |
getConvertToId()
Returns the 'convertToId' of this tool-chain |
IConfigurationEnvironmentVariableSupplier |
getEnvironmentVariableSupplier()
Returns the tool-integrator provided implementation of the configuration environment variable supplier 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[] |
getErrorParserList()
Returns the ordered list of unique IDs of the error parsers associated with the tool-chain. |
java.lang.String |
getId()
|
java.lang.String |
getManagedBuildRevision()
|
java.lang.String |
getName()
|
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()
|
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. |
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 |
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. |
org.eclipse.core.runtime.PluginVersionIdentifier |
getVersion()
|
java.lang.String |
getVersionsSupported()
Returns the 'versionsSupported' of this tool-chain |
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 |
isSupported()
Returns true if the tool-chain support is installed on the system
otherwise returns false |
boolean |
isSystemObject()
|
boolean |
matches(IToolChain tc)
|
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 |
setArchList(java.lang.String[] archs)
Sets the architecture list. |
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?) |
void |
setErrorParserIds(java.lang.String ids)
Sets the semicolon separated list of error parser ids. |
void |
setID(java.lang.String id)
|
void |
setIsAbstract(boolean b)
Sets the isAbstract attribute of the tool-chain. |
void |
setOSList(java.lang.String[] OSs)
Sets the OS list. |
void |
setScannerConfigDiscoveryProfileId(java.lang.String profileId)
Sets the scanner config discovery profile id. |
void |
setSecondaryOutputs(java.lang.String ids)
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 |
setTargetToolIds(java.lang.String targetToolIds)
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 |
setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
|
void |
setVersionsSupported(java.lang.String versionsSupported)
Sets the 'versionsSupported' attribute of the tool-chain. |
boolean |
supportsBuild(boolean managed)
|
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.HoldsOptions |
---|
addChildCategory, addOption, addOptionCategory, adjustOptions, createOption, createOptions, getChildCategories, getOption, getOptionById, getOptionBySuperClassId, getOptionCategory, getOptions, getOptionToSet, getRequiredTypeIds, getSupportedTypeIds, getSupportedValueIds, needsRebuild, propertiesChanged, removeOption, requiresType, setRebuildState, supportsType, supportsType, supportsValue, supportsValue |
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.BuildObject |
---|
getBaseId, getVersionFromId, setId, setManagedBuildRevision, setName, 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.IHoldsOptions |
---|
addOptionCategory, createOption, createOptions, getChildCategories, getOption, getOptionById, getOptionBySuperClassId, getOptionCategory, getOptions, getOptionToSet, needsRebuild, removeOption, setRebuildState |
Constructor Detail |
---|
public TestToolchain()
Method Detail |
---|
public java.lang.String getManagedBuildRevision()
getManagedBuildRevision
in interface IBuildObject
getManagedBuildRevision
in class BuildObject
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 IConfigurationBuildMacroSupplier getBuildMacroSupplier()
IToolChain
null
if none.
getBuildMacroSupplier
in interface IToolChain
public IConfiguration getParent()
IToolChain
getParent
in interface IToolChain
public ITargetPlatform createTargetPlatform(ITargetPlatform superClass, java.lang.String Id, java.lang.String name, boolean isExtensionElement)
IToolChain
TargetPlatform
child of this tool-chain.
createTargetPlatform
in interface IToolChain
public ITargetPlatform getTargetPlatform()
IToolChain
getTargetPlatform
in interface IToolChain
public void removeLocalTargetPlatform()
IToolChain
removeLocalTargetPlatform
in interface IToolChain
public java.lang.String getVersionsSupported()
IToolChain
getVersionsSupported
in interface IToolChain
public java.lang.String getConvertToId()
IToolChain
getConvertToId
in interface IToolChain
public void setVersionsSupported(java.lang.String versionsSupported)
IToolChain
setVersionsSupported
in interface IToolChain
public void setConvertToId(java.lang.String convertToId)
IToolChain
setConvertToId
in interface IToolChain
public IBuilder createBuilder(IBuilder superClass, java.lang.String Id, java.lang.String name, boolean isExtensionElement)
IToolChain
Builder
child of this tool-chain.
createBuilder
in interface IToolChain
public void removeLocalBuilder()
IToolChain
removeLocalBuilder
in interface IToolChain
public IBuilder getBuilder()
IToolChain
getBuilder
in interface IToolChain
public ITool createTool(ITool superClass, java.lang.String Id, java.lang.String name, boolean isExtensionElement)
IToolChain
Tool
child of this tool-chain.
createTool
in interface IToolChain
public ITool[] getTools()
IToolChain
getTools
in interface IToolChain
public ITool getTool(java.lang.String id)
IToolChain
null
getTool
in interface IToolChain
id
- The ID of the requested tool
public ITool[] getToolsBySuperClassId(java.lang.String id)
IToolChain
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.
getToolsBySuperClassId
in interface IToolChain
id
- unique identifier of the tool to search for
ITool[]
public IToolChain getSuperClass()
IToolChain
IToolChain
that is the superclass of this
tool-chain, or null
if the attribute was not specified.
getSuperClass
in interface IToolChain
public boolean isAbstract()
IToolChain
false
if the attribute was not specified.
isAbstract
in interface IToolChain
public void setIsAbstract(boolean b)
IToolChain
setIsAbstract
in interface IToolChain
public java.lang.String getUnusedChildren()
IToolChain
getUnusedChildren
in interface IToolChain
public java.lang.String[] getOSList()
IToolChain
getOSList
in interface IToolChain
public void setOSList(java.lang.String[] OSs)
IToolChain
setOSList
in interface IToolChain
public java.lang.String[] getArchList()
IToolChain
getArchList
in interface IToolChain
public void setArchList(java.lang.String[] archs)
IToolChain
setArchList
in interface IToolChain
public java.lang.String getErrorParserIds()
IToolChain
getErrorParserIds
in interface IToolChain
public java.lang.String getErrorParserIds(IConfiguration config)
IToolChain
getErrorParserIds
in interface IToolChain
public java.lang.String[] getErrorParserList()
IToolChain
getErrorParserList
in interface IToolChain
public void setErrorParserIds(java.lang.String ids)
IToolChain
setErrorParserIds
in interface IToolChain
public java.lang.String getScannerConfigDiscoveryProfileId()
IToolChain
null
if none.
getScannerConfigDiscoveryProfileId
in interface IToolChain
public void setScannerConfigDiscoveryProfileId(java.lang.String profileId)
IToolChain
setScannerConfigDiscoveryProfileId
in interface IToolChain
public java.lang.String getTargetToolIds()
IToolChain
getTargetToolIds
in interface IToolChain
public void setTargetToolIds(java.lang.String targetToolIds)
IToolChain
setTargetToolIds
in interface IToolChain
public java.lang.String[] getTargetToolList()
IToolChain
getTargetToolList
in interface IToolChain
public IOutputType[] getSecondaryOutputs()
IToolChain
getSecondaryOutputs
in interface IToolChain
public void setSecondaryOutputs(java.lang.String ids)
IToolChain
setSecondaryOutputs
in interface IToolChain
public boolean isDirty()
IToolChain
true
if this tool-chain has changes that need to
be saved in the project file, else false
.
isDirty
in interface IToolChain
public void setDirty(boolean isDirty)
IToolChain
setDirty
in interface IToolChain
public boolean isExtensionElement()
IToolChain
true
if this tool-chain was loaded from a manifest file,
and false
if it was loaded from a project (.cdtbuild) file.
isExtensionElement
in interface IToolChain
isExtensionElement
in class HoldsOptions
public boolean isSupported()
IToolChain
true
if the tool-chain support is installed on the system
otherwise returns false
isSupported
in interface IToolChain
public IConfigurationEnvironmentVariableSupplier getEnvironmentVariableSupplier()
IToolChain
null
if none.
getEnvironmentVariableSupplier
in interface IToolChain
public java.lang.String getId()
getId
in interface IBuildObject
getId
in class BuildObject
public java.lang.String getName()
getName
in interface IBuildObject
getName
in class BuildObject
public void setID(java.lang.String id)
public IOptionPathConverter getOptionPathConverter()
IToolChain
getOptionPathConverter
in interface IToolChain
public IFolderInfo getParentFolderInfo()
getParentFolderInfo
in interface IToolChain
public org.eclipse.cdt.core.settings.model.extension.CTargetPlatformData getTargetPlatformData()
getTargetPlatformData
in interface IToolChain
public java.lang.String getUniqueRealName()
getUniqueRealName
in interface IToolChain
public boolean isSystemObject()
isSystemObject
in interface IToolChain
public boolean matches(IToolChain tc)
matches
in interface IToolChain
public boolean supportsBuild(boolean managed)
supportsBuild
in interface IToolChain
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |