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

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.Tool
All Implemented Interfaces:
java.lang.Comparable, IBuildObject, IBuildPropertiesRestriction, IHoldsOptions, IOptionCategory, ITool, IBuildPropertyChangeListener, IMatchKeyProvider

public class Tool
extends HoldsOptions
implements ITool, IOptionCategory, IMatchKeyProvider

Represents a tool that can be invoked during a build. Note that this class implements IOptionCategory to represent the top category.


Field Summary
static java.lang.String DEFAULT_CBS_PATTERN
           
static java.lang.String DEFAULT_PATTERN
           
 
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.ITool
ADVANCED_INPUT_CATEGORY, ANNOUNCEMENT, COMMAND, COMMAND_LINE_GENERATOR, COMMAND_LINE_PATTERN, CONVERT_TO_ID, CUSTOM_BUILD_STEP, DEP_CALC_ID, FILTER_BOTH, FILTER_C, FILTER_CC, INPUT_TYPE, INTERFACE_EXTS, IS_SYSTEM, NATURE, OPTIONPATHCONVERTER, OUTPUT_FLAG, OUTPUT_PREFIX, OUTPUT_TYPE, OUTPUTS, SOURCES, SUPPORTS_MANAGED_BUILD, TOOL_ELEMENT_NAME, VERSIONS_SUPPORTED, WHITE_SPACE
 
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IHoldsOptions
OPTION, OPTION_CAT, OPTION_REF
 
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IOptionCategory
ALL, FILTER_ALL, FILTER_FILE, FILTER_PROJECT, ICON, OWNER, PROJECT
 
Constructor Summary
Tool(IBuildObject parent, org.eclipse.cdt.core.settings.model.ICStorageElement element, java.lang.String managedBuildRevision)
          Create a Tool based on the specification stored in the project file (.cdtbuild).
Tool(IBuildObject parent, IManagedConfigElement element, java.lang.String managedBuildRevision)
          Constructor to create a new tool for a tool-chain based on the information defined in the plugin.xml manifest.
Tool(IBuildObject parent, ITool toolSuperClass, java.lang.String Id, java.lang.String name, Tool tool)
          Create a Tool based upon an existing tool.
Tool(IBuildObject parent, java.lang.String toolSuperClassId, java.lang.String Id, java.lang.String name, Tool tool)
           
Tool(IManagedConfigElement element, java.lang.String managedBuildRevision)
          Constructor to create a tool based on an element from the plugin manifest.
Tool(ResourceConfiguration parent, ITool superClass, java.lang.String Id, java.lang.String name, boolean isExtensionElement)
          This constructor is called to create a Tool whose attributes and children will be added by separate calls.
Tool(ToolChain parent, ITool superClass, java.lang.String Id, java.lang.String name, boolean isExtensionElement)
          This constructor is called to create a Tool whose attributes and children will be added by separate calls.
 
Method Summary
 void addInputType(InputType type)
           
 void addOutputType(OutputType type)
           
 boolean buildsFileType(java.lang.String extension)
          Return true if the receiver builds files with the specified extension, else false.
 void checkForMigrationSupport()
           
 void clearAllDiscoveredInfo()
           
 void clearAllDiscoveredPathInfo()
           
 CfgDiscoveredPathManager.PathInfoCache clearDiscoveredPathInfo(IInputType type)
           
 int compareTo(java.lang.Object o)
           
 java.util.Set contributeErrorParsers(java.util.Set set)
           
 IInputType createInputType(IInputType superClass, java.lang.String Id, java.lang.String name, boolean isExtensionElement)
          Creates a child InputType for this tool.
 IOutputType createOutputType(IOutputType superClass, java.lang.String Id, java.lang.String name, boolean isExtensionElement)
          Creates a child OutputType for this tool.
 java.lang.String evaluateCommand(java.lang.String command, java.lang.String values)
          Look for ${VALUE} in the command string
 void filterValues(int type, java.util.List values)
           
 org.eclipse.core.runtime.IPath[] getAdditionalDependencies()
          Returns all of the additional dependency resources of all InputType children.
 org.eclipse.core.runtime.IPath[] getAdditionalResources()
          Returns all of the additional input resources of all InputType children.
 boolean getAdvancedInputCategory()
          Returns true if the Tool wants the MBS to display the Advanced Input category that allows the user to specify additional input resources and dependencies, else false.
 java.lang.String[] getAllDependencyExtensions()
          Returns the array of all valid dependency extensions for this tool's inputs.
 java.lang.String[] getAllInputExtensions()
          Returns the array of all valid source extensions this tool knows how to build.
 java.lang.String[] getAllInputExtensions(org.eclipse.core.resources.IProject project)
           
 IInputType getAllInputTypeById(java.lang.String id)
           
 IInputType[] getAllInputTypes()
           
 java.lang.String[] getAllOutputExtensions()
          Returns the array of all valid output extensions this tool can create.
 java.lang.String[] getAllOutputExtensions(org.eclipse.core.resources.IProject project)
           
 IOutputType getAllOutputTypeById(java.lang.String id)
           
 IOutputType[] getAllOutputTypes()
           
 java.lang.String getAnnouncement()
          Returns the announcement string for this tool
 java.lang.String getAnnouncementAttribute()
           
 BooleanExpressionApplicabilityCalculator getBooleanExpressionCalculator()
           
 org.eclipse.cdt.core.settings.model.extension.CLanguageData getCLanguageData(IInputType type)
           
 org.eclipse.cdt.core.settings.model.extension.CLanguageData[] getCLanguageDatas()
           
 java.lang.String[] getCommandFlags()
          Returns an array of command line arguments that have been specified for the tool.
 IManagedCommandLineGenerator getCommandLineGenerator()
          Returns the command line generator specified for this tool
 org.eclipse.core.runtime.IConfigurationElement getCommandLineGeneratorElement()
          Returns the plugin.xml element of the commandLineGenerator extension or null if none.
 java.lang.String getCommandLinePattern()
          Returns command line pattern for this tool
 java.lang.String[] getContentTypeFileSpecs(org.eclipse.core.runtime.content.IContentType type)
           
 java.lang.String[] getContentTypeFileSpecs(org.eclipse.core.runtime.content.IContentType type, org.eclipse.core.resources.IProject project)
           
 org.eclipse.core.runtime.IConfigurationElement getConverterModificationElement(ITool toTool)
           
 java.lang.String getConvertToId()
          Returns the 'convertToId' of this tool
 org.eclipse.core.runtime.IConfigurationElement getCurrentMbsVersionConversionElement()
           
 boolean getCustomBuildStep()
          Returns true if the Tool represents a user-define custom build step, else false.
 java.lang.String getDefaultInputExtension()
          Returns the default input extension for the primary input of the tool
 IManagedDependencyGenerator getDependencyGenerator()
          Returns a class instance that implements an interface to generate source-level dependencies for the tool specified in the argument.
 org.eclipse.core.runtime.IConfigurationElement getDependencyGeneratorElement()
          Returns the plugin.xml element of the dependencyGenerator extension or null if none.
 org.eclipse.core.runtime.IConfigurationElement getDependencyGeneratorElementForExtension(java.lang.String sourceExt)
           
 IManagedDependencyGeneratorType getDependencyGeneratorForExtension(java.lang.String sourceExt)
          Returns a class instance that implements an interface to generate source-level dependencies for the tool specified in the argument.
 CfgDiscoveredPathManager.PathInfoCache getDiscoveredPathInfo(IInputType type)
           
 java.lang.String getDiscoveryProfileId()
           
 java.lang.String getDiscoveryProfileIdAttribute()
           
 IInputType getEdtableInputType(IInputType base)
           
 IOutputType getEdtableOutputType(IOutputType base)
           
 IEnvVarBuildPath[] getEnvVarBuildPaths()
          Returns an array of the Environment Build Path variable descriptors
 java.lang.String getErrorParserIds()
          Returns the semicolon separated list of unique IDs of the error parsers associated with the tool.
 java.lang.String[] getErrorParserList()
          Returns the ordered list of unique IDs of the error parsers associated with the tool.
 java.net.URL getIconPath()
          Get the path name of an alternative icon for the option group.
 java.util.List getIdenticalList()
           
 java.util.List getInputExtensions()
          Returns the list of valid source extensions this tool knows how to build.
 IInputType getInputType(java.lang.String inputExtension)
          Returns the IInputType in the tool that uses the specified extension.
 IInputType getInputTypeById(java.lang.String id)
          Returns the IInputType in the tool with the specified ID.
 IInputType getInputTypeForCLanguageData(org.eclipse.cdt.core.settings.model.extension.CLanguageData data)
           
 IInputType[] getInputTypes()
          Returns the complete list of input types that are available for this tool.
 java.util.List getInterfaceExtensions()
          Returns the list of valid header extensions for this tool.
 java.lang.Object getMatchKey()
           
 java.lang.String getName()
           
 java.lang.String getNameAndVersion()
           
 int getNatureFilter()
          Answers a constant corresponding to the project nature the tool should be used for.
 IHoldsOptions getOptionHolder()
          Returns the holder (parent) of this category.
 IOptionPathConverter getOptionPathConverter()
          Returns an IOptionPathConverter implementation for this tool or null, if no conversion is required
 java.lang.Object[][] getOptions(IConfiguration configuration)
           
 java.lang.Object[][] getOptions(IConfiguration configuration, IHoldsOptions optionHolder)
          Returns an array of ITool/IOption pairs for the options in this category for a given configuration.
 java.lang.Object[][] getOptions(IResourceConfiguration resConfig)
           
 java.lang.Object[][] getOptions(IResourceInfo resConfig)
           
 java.lang.Object[][] getOptions(IResourceInfo resInfo, IHoldsOptions optionHolder)
          Returns an array of ITool/IOption pairs for the options in this category for a given resource configuration.
 IOption[] getOptionsOfType(int type)
           
 java.lang.String getOutputExtension(java.lang.String inputExtension)
          Answer the output extension the receiver will create from the input, or null if the tool does not understand that extension.
 java.lang.String[] getOutputExtensions()
          Answers all of the output extensions that the receiver can build.
 java.lang.String getOutputFlag()
          Answers the argument that must be passed to a specific tool in order to control the name of the output artifact.
 java.lang.String getOutputPrefix()
          Answers the prefix that the tool should prepend to the name of the build artifact.
 java.lang.String[] getOutputsAttribute()
          Answers all of the output extensions that the receiver can build, from the value of the outputs attribute
 IOutputType getOutputType(java.lang.String outputExtension)
          Returns the IOutputType in the tool that creates the specified extension.
 IOutputType getOutputTypeById(java.lang.String id)
          Get the IOutputType in the receiver with the specified ID.
 IOutputType[] getOutputTypes()
          Returns the complete list of output types that are available for this tool.
 IOptionCategory getOwner()
          Returns the category that owns this category, or null if this is the top category for a tool.
 IBuildObject getParent()
          Returns the tool-chain or resource configuration that is the parent of this tool.
 IResourceInfo getParentResourceInfo()
           
 org.eclipse.core.runtime.IConfigurationElement getPathconverterElement()
           
 org.eclipse.core.runtime.IConfigurationElement getPreviousMbsVersionConversionElement()
           
 java.lang.String[] getPrimaryInputExtensions()
          Returns the array of valid primary source extensions this tool knows how to build.
 IInputType getPrimaryInputType()
          Returns the primary IInputType in this tool If the receiver has no InputTypes, the method returns null.
 IOutputType getPrimaryOutputType()
          Returns the primary IOutputType in this tool If the receiver has no OutputTypes, the method returns null.
 org.eclipse.core.resources.IProject getProject()
           
 java.lang.String[] getRequiredTypeIds()
           
 ITool getSuperClass()
          Returns the ITool that is the superclass of this tool, or null if the attribute was not specified.
 java.lang.String[] getSupportedTypeIds()
           
 java.lang.String[] getSupportedValueIds(java.lang.String typeId)
           
 ITool getTool()
          Returns the tool that ultimately owns this category.
 java.lang.String getToolCommand()
          Answers the command-line invocation defined for the receiver.
 java.lang.String[] getToolCommandFlags(org.eclipse.core.runtime.IPath inputFileLocation, org.eclipse.core.runtime.IPath outputFileLocation)
          Returns an array of command line arguments that have been specified for the tool.
 java.lang.String[] getToolCommandFlags(org.eclipse.core.runtime.IPath inputFileLocation, org.eclipse.core.runtime.IPath outputFileLocation, org.eclipse.cdt.utils.cdtvariables.SupplierBasedCdtVariableSubstitutor macroSubstitutor, IMacroContextInfoProvider provider)
          this method used internaly by the Tool to obtain the command flags with the build macros resolved, but could be also used by other MBS components to adjust the tool flags resolution behavior by passing the method some custom macro substitutor
 java.lang.String getToolCommandFlagsString(org.eclipse.core.runtime.IPath inputFileLocation, org.eclipse.core.runtime.IPath outputFileLocation)
          Returns the command line arguments that have been specified for the tool.
 java.lang.String getToolFlags()
          Returns the command line arguments that have been specified for the tool.
 IOptionCategory getTopOptionCategory()
          Options are organized into categories for UI purposes.
 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.
 java.lang.String getVersionsSupported()
          Returns the 'versionsSupported' of this tool
 boolean hasCustomSettings(Tool tool)
           
 boolean hasScannerConfigSettings(IInputType type)
           
 boolean isAbstract()
          Returns whether this element is abstract.
 boolean isDirty()
          Returns true if this element has changes that need to be saved in the project file, else false.
 boolean isEnabled()
           
 boolean isEnabled(IResourceInfo rcInfo)
           
 boolean isExtensionElement()
          Returns true if this tool was loaded from a manifest file, and false if it was loaded from a project (.cdtbuild) file.
 boolean isHeaderFile(java.lang.String ext)
          Answers true if the tool considers the file extension to be one associated with a header file.
 boolean isInputFileType(java.lang.String extension)
          Return true if the receiver uses files with the specified extension as input, else false.
 boolean isSystemObject()
           
 boolean matches(ITool tool)
           
 boolean needsRebuild()
          specifies whether the option holder is modified and needs rebuild
 boolean producesFileType(java.lang.String extension)
          Answers true if the receiver builds a file with the extension specified in the argument, else false.
 void propertiesChanged()
           
 void removeInputType(IInputType type)
          Removes an InputType from the tool's list.
 void removeOutputType(IOutputType type)
          Removes an OutputType from the tool's list.
 boolean requiresType(java.lang.String typeId)
           
 void resetErrorParsers()
           
 void resolveReferences()
           
 void serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
          Persist the tool to the project file.
 void setAdvancedInputCategory(boolean b)
          Sets whether the Tool wants the MBS to display the Advanced Input category that allows the user to specify additional input resources and dependencies.
 void setAnnouncement(java.lang.String newText)
          Sets the announcement string for this tool
 void setCommandLineGeneratorElement(org.eclipse.core.runtime.IConfigurationElement element)
          Sets the CommandLineGenerator plugin.xml element
 void setCommandLinePattern(java.lang.String pattern)
          Sets the command line pattern for this tool
 void setConvertToId(java.lang.String convertToId)
          Sets the 'convertToId' attribute of the tool.
 void setCustomBuildStep(boolean b)
          Sets whether the Tool represents a user-define custom build step.
 void setDependencyGeneratorElement(org.eclipse.core.runtime.IConfigurationElement element)
          Sets the DependencyGenerator plugin.xml element
 void setDirty(boolean isDirty)
          Sets the element's "dirty" (have I been modified?)
 CfgDiscoveredPathManager.PathInfoCache setDiscoveredPathInfo(IInputType type, 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 setOutputFlag(java.lang.String flag)
          Sets the argument that must be passed to a specific tool in order to control the name of the output artifact.
 void setOutputPrefix(java.lang.String prefix)
          Sets the prefix that the tool should prepend to the name of the build artifact.
 void setOutputPrefixForPrimaryOutput(java.lang.String prefix)
           
 void setOutputsAttribute(java.lang.String ext)
          Sets all of the output extensions that the receiver can build, into the outputs attribute.
 void setRebuildState(boolean rebuild)
          sets the holder rebuild state
 void setSuperClass(ITool superClass)
           
 boolean setToolCommand(java.lang.String cmd)
          Sets the command-line invocation command defined for this tool.
 void setToolParent(IBuildObject newParent)
           
 void setVersionsSupported(java.lang.String versionsSupported)
          Sets the 'versionsSupported' attribute of the tool.
 boolean supportsBuild(boolean managed)
           
 boolean supportsLanguageSettings()
           
 boolean supportsType(IBuildPropertyType type)
           
 boolean supportsType(java.lang.String type)
           
 boolean supportsValue(IBuildPropertyType type, IBuildPropertyValue value)
           
 boolean supportsValue(java.lang.String type, java.lang.String value)
           
 
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, 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, removeOption
 
Methods inherited from interface org.eclipse.cdt.managedbuilder.core.IOptionCategory
getChildCategories
 

Field Detail

DEFAULT_PATTERN

public static final java.lang.String DEFAULT_PATTERN
See Also:
Constant Field Values

DEFAULT_CBS_PATTERN

public static final java.lang.String DEFAULT_CBS_PATTERN
See Also:
Constant Field Values
Constructor Detail

Tool

public Tool(IManagedConfigElement element,
            java.lang.String managedBuildRevision)
Constructor to create a tool based on an element from the plugin manifest.

Parameters:
element - The element containing the information about the tool.
managedBuildRevision - the fileVersion of Managed Build System

Tool

public Tool(IBuildObject parent,
            IManagedConfigElement element,
            java.lang.String managedBuildRevision)
Constructor to create a new tool for a tool-chain based on the information defined in the plugin.xml manifest.

Parameters:
parent - The parent of this tool. This can be a ToolChain or a ResourceConfiguration.
element - The element containing the information about the tool.
managedBuildRevision - the fileVersion of Managed Build System

Tool

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

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

Tool

public Tool(ResourceConfiguration parent,
            ITool superClass,
            java.lang.String Id,
            java.lang.String name,
            boolean isExtensionElement)
This constructor is called to create a Tool whose attributes and children will be added by separate calls.

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

Tool

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

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

Tool

public Tool(IBuildObject parent,
            ITool toolSuperClass,
            java.lang.String Id,
            java.lang.String name,
            Tool tool)
Create a Tool based upon an existing tool.

Parameters:
parent - The IToolChain or IResourceConfiguration the tool will be added to.
tool - The existing tool to clone.

Tool

public Tool(IBuildObject parent,
            java.lang.String toolSuperClassId,
            java.lang.String Id,
            java.lang.String name,
            Tool tool)
Method Detail

serialize

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

Parameters:
doc -
element -

getParent

public IBuildObject getParent()
Description copied from interface: ITool
Returns the tool-chain or resource configuration that is the parent of this tool.

Specified by:
getParent in interface ITool
Returns:
IBuildObject

setToolParent

public void setToolParent(IBuildObject newParent)

getTopOptionCategory

public IOptionCategory getTopOptionCategory()
Description copied from interface: ITool
Options are organized into categories for UI purposes. These categories are organized into a tree. This is the root of that tree.

Specified by:
getTopOptionCategory in interface ITool
Returns:
IOptionCategory

createInputType

public IInputType createInputType(IInputType superClass,
                                  java.lang.String Id,
                                  java.lang.String name,
                                  boolean isExtensionElement)
Description copied from interface: ITool
Creates a child InputType for this tool.

Specified by:
createInputType in interface ITool
Returns:
IInputType

removeInputType

public void removeInputType(IInputType type)
Description copied from interface: ITool
Removes an InputType from the tool's list.

Specified by:
removeInputType in interface ITool

getInputTypes

public IInputType[] getInputTypes()
Description copied from interface: ITool
Returns the complete list of input types that are available for this tool. The list is a merging of the input types specified for this tool with the input types of its superclasses. The lowest input type instance in the hierarchy takes precedence.

Specified by:
getInputTypes in interface ITool
Returns:
IInputType[]

getAllInputTypes

public IInputType[] getAllInputTypes()

getInputTypeById

public IInputType getInputTypeById(java.lang.String id)
Description copied from interface: ITool
Returns the IInputType in the tool with the specified ID. This is an efficient search in the receiver.

If the receiver does not have an InputType with that ID, the method returns null. It is the responsibility of the caller to verify the return value.

Specified by:
getInputTypeById in interface ITool
Parameters:
id - unique identifier of the InputType to search for
Returns:
IInputType

getAllInputTypeById

public IInputType getAllInputTypeById(java.lang.String id)

createOutputType

public IOutputType createOutputType(IOutputType superClass,
                                    java.lang.String Id,
                                    java.lang.String name,
                                    boolean isExtensionElement)
Description copied from interface: ITool
Creates a child OutputType for this tool.

Specified by:
createOutputType in interface ITool
Returns:
IOutputType

removeOutputType

public void removeOutputType(IOutputType type)
Description copied from interface: ITool
Removes an OutputType from the tool's list.

Specified by:
removeOutputType in interface ITool

getOutputTypes

public IOutputType[] getOutputTypes()
Description copied from interface: ITool
Returns the complete list of output types that are available for this tool. The list is a merging of the output types specified for this tool with the output types of its superclasses. The lowest output type instance in the hierarchy takes precedence.

Specified by:
getOutputTypes in interface ITool
Returns:
IOutputType[]

getAllOutputTypes

public IOutputType[] getAllOutputTypes()

getPrimaryOutputType

public IOutputType getPrimaryOutputType()
Description copied from interface: ITool
Returns the primary IOutputType in this tool

If the receiver has no OutputTypes, the method returns null. It is the responsibility of the caller to verify the return value.

Specified by:
getPrimaryOutputType in interface ITool
Returns:
IOutputType

getOutputTypeById

public IOutputType getOutputTypeById(java.lang.String id)
Description copied from interface: ITool
Get the IOutputType in the receiver with the specified ID. This is an efficient search in the receiver.

If the receiver does not have an OutputType with that ID, the method returns null. It is the responsibility of the caller to verify the return value.

Specified by:
getOutputTypeById in interface ITool
Parameters:
id - unique identifier of the OutputType to search for
Returns:
IOutputType

getAllOutputTypeById

public IOutputType getAllOutputTypeById(java.lang.String id)

getOwner

public IOptionCategory getOwner()
Description copied from interface: IOptionCategory
Returns the category that owns this category, or null if this is the top category for a tool.

Specified by:
getOwner in interface IOptionCategory
Returns:

getIconPath

public java.net.URL getIconPath()
Description copied from interface: IOptionCategory
Get the path name of an alternative icon for the option group. Or null if no alternative icon was defined.

Specified by:
getIconPath in interface IOptionCategory
Returns:
URL

getOptions

public java.lang.Object[][] getOptions(IConfiguration configuration,
                                       IHoldsOptions optionHolder)
Description copied from interface: IOptionCategory
Returns an array of ITool/IOption pairs for the options in this category for a given configuration.

Specified by:
getOptions in interface IOptionCategory
Returns:
Object[][]

getOptions

public java.lang.Object[][] getOptions(IConfiguration configuration)
Specified by:
getOptions in interface IOptionCategory

getOptions

public java.lang.Object[][] getOptions(IResourceInfo resInfo,
                                       IHoldsOptions optionHolder)
Description copied from interface: IOptionCategory
Returns an array of ITool/IOption pairs for the options in this category for a given resource configuration.

Specified by:
getOptions in interface IOptionCategory
Returns:
Object[][]

getOptions

public java.lang.Object[][] getOptions(IResourceConfiguration resConfig)
Specified by:
getOptions in interface IOptionCategory

getOptions

public java.lang.Object[][] getOptions(IResourceInfo resConfig)

getTool

public ITool getTool()
Description copied from interface: IOptionCategory
Returns the tool that ultimately owns this category. If owned by a toolChain return null.

Specified by:
getTool in interface IOptionCategory
Returns:

getOptionHolder

public IHoldsOptions getOptionHolder()
Description copied from interface: IOptionCategory
Returns the holder (parent) of this category. This may be an object implementing ITool or IToolChain, which both extend IHoldsOptions. The call can return null, for example the top option category of a tool will return null. Note that the name getOptionHolder() has been choosen, because Tool implements both ITool and IOptionCategory and ITool.getParent() exists already.

Specified by:
getOptionHolder in interface IOptionCategory
Returns:
IHoldsOptions

addInputType

public void addInputType(InputType type)
Parameters:
type -

addOutputType

public void addOutputType(OutputType type)
Parameters:
type -

getSuperClass

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

Specified by:
getSuperClass in interface ITool
Returns:
ITool

setSuperClass

public void setSuperClass(ITool 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: ITool
Returns whether this element is abstract. Returns false if the attribute was not specified.

Specified by:
isAbstract in interface ITool
Returns:
boolean

setIsAbstract

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

Specified by:
setIsAbstract in interface ITool

getUnusedChildren

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

getErrorParserIds

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

Specified by:
getErrorParserIds in interface ITool
Returns:
String

getErrorParserList

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

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

contributeErrorParsers

public java.util.Set contributeErrorParsers(java.util.Set set)

getInputExtensions

public java.util.List getInputExtensions()
Description copied from interface: ITool
Returns the list of valid source extensions this tool knows how to build. The list may be empty but will never be null.

Specified by:
getInputExtensions in interface ITool
Returns:
List

getDefaultInputExtension

public java.lang.String getDefaultInputExtension()
Description copied from interface: ITool
Returns the default input extension for the primary input of the tool

Specified by:
getDefaultInputExtension in interface ITool
Returns:
String

getPrimaryInputExtensions

public java.lang.String[] getPrimaryInputExtensions()
Description copied from interface: ITool
Returns the array of valid primary source extensions this tool knows how to build. The array may be empty but will never be null.

Specified by:
getPrimaryInputExtensions in interface ITool
Returns:
String[]

getAllInputExtensions

public java.lang.String[] getAllInputExtensions()
Description copied from interface: ITool
Returns the array of all valid source extensions this tool knows how to build. The array may be empty but will never be null.

Specified by:
getAllInputExtensions in interface ITool
Returns:
String[]

getAllInputExtensions

public java.lang.String[] getAllInputExtensions(org.eclipse.core.resources.IProject project)

getPrimaryInputType

public IInputType getPrimaryInputType()
Description copied from interface: ITool
Returns the primary IInputType in this tool

If the receiver has no InputTypes, the method returns null. It is the responsibility of the caller to verify the return value.

Specified by:
getPrimaryInputType in interface ITool
Returns:
IInputType

getInputType

public IInputType getInputType(java.lang.String inputExtension)
Description copied from interface: ITool
Returns the IInputType in the tool that uses the specified extension.

If the receiver does not have an InputType that uses the extension, the method returns null. It is the responsibility of the caller to verify the return value.

Specified by:
getInputType in interface ITool
Parameters:
inputExtension - File extension
Returns:
IInputType

getAdditionalDependencies

public org.eclipse.core.runtime.IPath[] getAdditionalDependencies()
Description copied from interface: ITool
Returns all of the additional dependency resources of all InputType children. Note: This does not include the primary InputType and does not include additional inputs.

Specified by:
getAdditionalDependencies in interface ITool
Returns:
IPath[]

getAdditionalResources

public org.eclipse.core.runtime.IPath[] getAdditionalResources()
Description copied from interface: ITool
Returns all of the additional input resources of all InputType children. Note: This does not include the primary InputType and does not include additional dependencies.

Specified by:
getAdditionalResources in interface ITool
Returns:
IPath[]

getAllDependencyExtensions

public java.lang.String[] getAllDependencyExtensions()
Description copied from interface: ITool
Returns the array of all valid dependency extensions for this tool's inputs. The array may be empty but will never be null.

Specified by:
getAllDependencyExtensions in interface ITool
Returns:
String[]

getInterfaceExtensions

public java.util.List getInterfaceExtensions()
Description copied from interface: ITool
Returns the list of valid header extensions for this tool. Returns the value of the headerExtensions attribute The list may be empty but will never be null.

Specified by:
getInterfaceExtensions in interface ITool
Returns:
List

getOutputFlag

public java.lang.String getOutputFlag()
Description copied from interface: ITool
Answers the argument that must be passed to a specific tool in order to control the name of the output artifact. For example, the GCC compile and linker use '-o', while the archiver does not.

Specified by:
getOutputFlag in interface ITool
Returns:
String

getOutputPrefix

public java.lang.String getOutputPrefix()
Description copied from interface: ITool
Answers the prefix that the tool should prepend to the name of the build artifact. For example, a librarian usually prepends 'lib' to the target.a

Specified by:
getOutputPrefix in interface ITool
Returns:
String

getToolCommand

public java.lang.String getToolCommand()
Description copied from interface: ITool
Answers the command-line invocation defined for the receiver.

Specified by:
getToolCommand in interface ITool
Returns:
String

getCommandLinePattern

public java.lang.String getCommandLinePattern()
Description copied from interface: ITool
Returns command line pattern for this tool

Specified by:
getCommandLinePattern in interface ITool
Returns:
String

getAdvancedInputCategory

public boolean getAdvancedInputCategory()
Description copied from interface: ITool
Returns true if the Tool wants the MBS to display the Advanced Input category that allows the user to specify additional input resources and dependencies, else false.

Specified by:
getAdvancedInputCategory in interface ITool
Returns:
boolean

getCustomBuildStep

public boolean getCustomBuildStep()
Description copied from interface: ITool
Returns true if the Tool represents a user-define custom build step, else false.

Specified by:
getCustomBuildStep in interface ITool
Returns:
boolean

getAnnouncement

public java.lang.String getAnnouncement()
Description copied from interface: ITool
Returns the announcement string for this tool

Specified by:
getAnnouncement in interface ITool
Returns:
String

getAnnouncementAttribute

public java.lang.String getAnnouncementAttribute()

getCommandLineGeneratorElement

public org.eclipse.core.runtime.IConfigurationElement getCommandLineGeneratorElement()
Description copied from interface: ITool
Returns the plugin.xml element of the commandLineGenerator extension or null if none.

Specified by:
getCommandLineGeneratorElement in interface ITool
Returns:
IConfigurationElement

setCommandLineGeneratorElement

public void setCommandLineGeneratorElement(org.eclipse.core.runtime.IConfigurationElement element)
Description copied from interface: ITool
Sets the CommandLineGenerator plugin.xml element

Specified by:
setCommandLineGeneratorElement in interface ITool

getCommandLineGenerator

public IManagedCommandLineGenerator getCommandLineGenerator()
Description copied from interface: ITool
Returns the command line generator specified for this tool

Specified by:
getCommandLineGenerator in interface ITool
Returns:
IManagedCommandLineGenerator

getDependencyGeneratorElement

public org.eclipse.core.runtime.IConfigurationElement getDependencyGeneratorElement()
Description copied from interface: ITool
Returns the plugin.xml element of the dependencyGenerator extension or null if none.

Specified by:
getDependencyGeneratorElement in interface ITool
Returns:
IConfigurationElement

getDependencyGeneratorElementForExtension

public org.eclipse.core.runtime.IConfigurationElement getDependencyGeneratorElementForExtension(java.lang.String sourceExt)

setDependencyGeneratorElement

public void setDependencyGeneratorElement(org.eclipse.core.runtime.IConfigurationElement element)
Description copied from interface: ITool
Sets the DependencyGenerator plugin.xml element

Specified by:
setDependencyGeneratorElement in interface ITool

getDependencyGenerator

public IManagedDependencyGenerator getDependencyGenerator()
Description copied from interface: ITool
Returns a class instance that implements an interface to generate source-level dependencies for the tool specified in the argument. This method may return null in which case, the receiver should assume that the tool does not require dependency information when the project is built.

Specified by:
getDependencyGenerator in interface ITool
Returns:
IManagedDependencyGenerator

getDependencyGeneratorForExtension

public IManagedDependencyGeneratorType getDependencyGeneratorForExtension(java.lang.String sourceExt)
Description copied from interface: ITool
Returns a class instance that implements an interface to generate source-level dependencies for the tool specified in the argument. This method may return null in which case, the receiver should assume that the tool does not require dependency information when the project is built.

Specified by:
getDependencyGeneratorForExtension in interface ITool
Parameters:
sourceExt - source file extension
Returns:
IManagedDependencyGeneratorType

getNatureFilter

public int getNatureFilter()
Description copied from interface: ITool
Answers a constant corresponding to the project nature the tool should be used for. Possible answers are:
ITool.FILTER_C
The tool should only be displayed for C projects. Notes: even though a C++ project has a C nature, this flag will mask the tool for C++ projects.
ITool.FILTER_CC
The tool should only be displayed for C++ projects.
ITool.FILTER_BOTH
The tool should be displayed for projects with both natures.

Specified by:
getNatureFilter in interface ITool
Returns:
int

getAllOutputExtensions

public java.lang.String[] getAllOutputExtensions(org.eclipse.core.resources.IProject project)

getAllOutputExtensions

public java.lang.String[] getAllOutputExtensions()
Description copied from interface: ITool
Returns the array of all valid output extensions this tool can create. The array may be empty but will never be null.

Specified by:
getAllOutputExtensions in interface ITool
Returns:
String[]

getOutputExtensions

public java.lang.String[] getOutputExtensions()
Description copied from interface: ITool
Answers all of the output extensions that the receiver can build. This routine returns the value if the outputs attribute.

Specified by:
getOutputExtensions in interface ITool
Returns:
String[] of extensions

getOutputsAttribute

public java.lang.String[] getOutputsAttribute()
Description copied from interface: ITool
Answers all of the output extensions that the receiver can build, from the value of the outputs attribute

Specified by:
getOutputsAttribute in interface ITool
Returns:
String[] of extensions

getOutputExtension

public java.lang.String getOutputExtension(java.lang.String inputExtension)
Description copied from interface: ITool
Answer the output extension the receiver will create from the input, or null if the tool does not understand that extension.

Specified by:
getOutputExtension in interface ITool
Parameters:
inputExtension - The extension of the source file.
Returns:
String

getOutputType

public IOutputType getOutputType(java.lang.String outputExtension)
Description copied from interface: ITool
Returns the IOutputType in the tool that creates the specified extension.

If the receiver does not have an OutputType that creates the extension, the method returns null. It is the responsibility of the caller to verify the return value.

Specified by:
getOutputType in interface ITool
Parameters:
outputExtension - File extension
Returns:
IOutputType

setErrorParserIds

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

Specified by:
setErrorParserIds in interface ITool

setToolCommand

public boolean setToolCommand(java.lang.String cmd)
Description copied from interface: ITool
Sets the command-line invocation command defined for this tool.

Specified by:
setToolCommand in interface ITool
Returns:
boolean if true, then the tool command was modified

setCommandLinePattern

public void setCommandLinePattern(java.lang.String pattern)
Description copied from interface: ITool
Sets the command line pattern for this tool

Specified by:
setCommandLinePattern in interface ITool

setOutputFlag

public void setOutputFlag(java.lang.String flag)
Description copied from interface: ITool
Sets the argument that must be passed to a specific tool in order to control the name of the output artifact. For example, the GCC compile and linker use '-o', while the archiver does not.

Specified by:
setOutputFlag in interface ITool

setOutputPrefix

public void setOutputPrefix(java.lang.String prefix)
Description copied from interface: ITool
Sets the prefix that the tool should prepend to the name of the build artifact. For example, a librarian usually prepends 'lib' to the target.a

Specified by:
setOutputPrefix in interface ITool
See Also:
#setOutputPrefixForPrimaryOutput(String)}

setOutputPrefixForPrimaryOutput

public void setOutputPrefixForPrimaryOutput(java.lang.String prefix)
Specified by:
setOutputPrefixForPrimaryOutput in interface ITool

setOutputsAttribute

public void setOutputsAttribute(java.lang.String ext)
Description copied from interface: ITool
Sets all of the output extensions that the receiver can build, into the outputs attribute. Note that the outputs attribute is ignored when one or more outputTypes are specified.

Specified by:
setOutputsAttribute in interface ITool

setAdvancedInputCategory

public void setAdvancedInputCategory(boolean b)
Description copied from interface: ITool
Sets whether the Tool wants the MBS to display the Advanced Input category that allows the user to specify additional input resources and dependencies.

Specified by:
setAdvancedInputCategory in interface ITool

setCustomBuildStep

public void setCustomBuildStep(boolean b)
Description copied from interface: ITool
Sets whether the Tool represents a user-define custom build step.

Specified by:
setCustomBuildStep in interface ITool

setAnnouncement

public void setAnnouncement(java.lang.String newText)
Description copied from interface: ITool
Sets the announcement string for this tool

Specified by:
setAnnouncement in interface ITool

getCommandFlags

public java.lang.String[] getCommandFlags()
                                   throws BuildException
Description copied from interface: ITool
Returns an array of command line arguments that have been specified for the tool. The flags contain build macros resolved to the makefile format. That is if a user has chosen to expand all macros in the buildfile, the flags contain all macro references resolved, otherwise, if a user has chosen to keep the environment build macros unresolved, the flags contain the environment macro references converted to the buildfile variable format, all other macro references are resolved

Specified by:
getCommandFlags in interface ITool
Returns:
String[]
Throws:
BuildException

getToolFlags

public java.lang.String getToolFlags()
                              throws BuildException
Description copied from interface: ITool
Returns the command line arguments that have been specified for the tool. The string contains build macros resolved to the makefile format. That is if a user has chosen to expand all macros in the buildfile, the string contains all macro references resolved, otherwise, if a user has chosen to keep the environment build macros unresolved, the string contains the environment macro references converted to the buildfile variable format, all other macro references are resolved

Specified by:
getToolFlags in interface ITool
Returns:
String
Throws:
BuildException

getToolCommandFlags

public java.lang.String[] getToolCommandFlags(org.eclipse.core.runtime.IPath inputFileLocation,
                                              org.eclipse.core.runtime.IPath outputFileLocation,
                                              org.eclipse.cdt.utils.cdtvariables.SupplierBasedCdtVariableSubstitutor macroSubstitutor,
                                              IMacroContextInfoProvider provider)
                                       throws BuildException
this method used internaly by the Tool to obtain the command flags with the build macros resolved, but could be also used by other MBS components to adjust the tool flags resolution behavior by passing the method some custom macro substitutor

Parameters:
inputFileLocation -
outputFileLocation -
macroSubstitutor -
Returns:
Throws:
BuildException

getToolCommandFlags

public java.lang.String[] getToolCommandFlags(org.eclipse.core.runtime.IPath inputFileLocation,
                                              org.eclipse.core.runtime.IPath outputFileLocation)
                                       throws BuildException
Description copied from interface: ITool
Returns an array of command line arguments that have been specified for the tool. The flags contain build macros resolved to the makefile format. That is if a user has chosen to expand all macros in the buildfile, the flags contain all macro references resolved, otherwise, if a user has chosen to keep the environment build macros unresolved, the flags contain the environment macro references converted to the buildfile variable format, all other macro references are resolved

Specified by:
getToolCommandFlags in interface ITool
Returns:
Throws:
BuildException

getToolCommandFlagsString

public java.lang.String getToolCommandFlagsString(org.eclipse.core.runtime.IPath inputFileLocation,
                                                  org.eclipse.core.runtime.IPath outputFileLocation)
                                           throws BuildException
Description copied from interface: ITool
Returns the command line arguments that have been specified for the tool. The string contains build macros resolved to the makefile format. That is if a user has chosen to expand all macros in the buildfile, the string contains all macro references resolved, otherwise, if a user has chosen to keep the environment build macros unresolved, the string contains the environment macro references converted to the buildfile variable format, all other macro references are resolved

Specified by:
getToolCommandFlagsString in interface ITool
Returns:
Throws:
BuildException

isHeaderFile

public boolean isHeaderFile(java.lang.String ext)
Description copied from interface: ITool
Answers true if the tool considers the file extension to be one associated with a header file.

Specified by:
isHeaderFile in interface ITool
Parameters:
ext - file extension of the source
Returns:
boolean

buildsFileType

public boolean buildsFileType(java.lang.String extension)
Description copied from interface: ITool
Return true if the receiver builds files with the specified extension, else false.

Specified by:
buildsFileType in interface ITool
Parameters:
extension - file extension of the source
Returns:
boolean

isInputFileType

public boolean isInputFileType(java.lang.String extension)
Description copied from interface: ITool
Return true if the receiver uses files with the specified extension as input, else false. This returns true for a superset of the extensions that buildFileType returns true for - it includes secondary inputs.

Specified by:
isInputFileType in interface ITool
Parameters:
extension - file extension of the source
Returns:
boolean

producesFileType

public boolean producesFileType(java.lang.String extension)
Description copied from interface: ITool
Answers true if the receiver builds a file with the extension specified in the argument, else false.

Specified by:
producesFileType in interface ITool
Parameters:
extension - extension of the file being produced by a tool
Returns:
boolean

getPathconverterElement

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

getOptionPathConverter

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

Specified by:
getOptionPathConverter in interface ITool

isExtensionElement

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

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

isDirty

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

Specified by:
isDirty in interface IOptionCategory
Specified by:
isDirty in interface ITool
Returns:
boolean

setDirty

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

Specified by:
setDirty in interface IOptionCategory
Specified by:
setDirty in interface ITool

resolveReferences

public void resolveReferences()

evaluateCommand

public java.lang.String evaluateCommand(java.lang.String command,
                                        java.lang.String values)
Look for ${VALUE} in the command string


getConvertToId

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

Specified by:
getConvertToId in interface ITool
Returns:
String

setConvertToId

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

Specified by:
setConvertToId in interface ITool

getVersionsSupported

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

Specified by:
getVersionsSupported in interface ITool
Returns:
String

setVersionsSupported

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

Specified by:
setVersionsSupported in interface ITool

getEnvVarBuildPaths

public IEnvVarBuildPath[] getEnvVarBuildPaths()
Description copied from interface: ITool
Returns an array of the Environment Build Path variable descriptors

Specified by:
getEnvVarBuildPaths in interface ITool
Returns:
IEnvVarBuildPath[]

checkForMigrationSupport

public void checkForMigrationSupport()

getPreviousMbsVersionConversionElement

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

getCurrentMbsVersionConversionElement

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

getProject

public org.eclipse.core.resources.IProject getProject()

getContentTypeFileSpecs

public java.lang.String[] getContentTypeFileSpecs(org.eclipse.core.runtime.content.IContentType type)

getContentTypeFileSpecs

public java.lang.String[] getContentTypeFileSpecs(org.eclipse.core.runtime.content.IContentType type,
                                                  org.eclipse.core.resources.IProject project)

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

getCLanguageData

public org.eclipse.cdt.core.settings.model.extension.CLanguageData getCLanguageData(IInputType type)
Specified by:
getCLanguageData in interface ITool

supportsLanguageSettings

public boolean supportsLanguageSettings()

getCLanguageDatas

public org.eclipse.cdt.core.settings.model.extension.CLanguageData[] getCLanguageDatas()
Specified by:
getCLanguageDatas in interface ITool

getInputTypeForCLanguageData

public IInputType getInputTypeForCLanguageData(org.eclipse.cdt.core.settings.model.extension.CLanguageData data)
Specified by:
getInputTypeForCLanguageData in interface ITool

getParentResourceInfo

public IResourceInfo getParentResourceInfo()
Specified by:
getParentResourceInfo in interface ITool

getEdtableInputType

public IInputType getEdtableInputType(IInputType base)
Specified by:
getEdtableInputType in interface ITool

getEdtableOutputType

public IOutputType getEdtableOutputType(IOutputType base)
Specified by:
getEdtableOutputType in interface ITool

supportsType

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

supportsType

public boolean supportsType(java.lang.String type)
Specified by:
supportsType in interface IBuildPropertiesRestriction
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(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()

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface ITool

isEnabled

public boolean isEnabled(IResourceInfo rcInfo)

matches

public boolean matches(ITool tool)
Specified by:
matches in interface ITool

supportsBuild

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

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(ITool toTool)

getIdenticalList

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

getRequiredTypeIds

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

getSupportedTypeIds

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

getSupportedValueIds

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

requiresType

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

resetErrorParsers

public void resetErrorParsers()

setErrorParserList

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

isSystemObject

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

getUniqueRealName

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

hasScannerConfigSettings

public boolean hasScannerConfigSettings(IInputType type)

setDiscoveredPathInfo

public CfgDiscoveredPathManager.PathInfoCache setDiscoveredPathInfo(IInputType type,
                                                                    CfgDiscoveredPathManager.PathInfoCache info)

getDiscoveredPathInfo

public CfgDiscoveredPathManager.PathInfoCache getDiscoveredPathInfo(IInputType type)

clearDiscoveredPathInfo

public CfgDiscoveredPathManager.PathInfoCache clearDiscoveredPathInfo(IInputType type)

clearAllDiscoveredPathInfo

public void clearAllDiscoveredPathInfo()

clearAllDiscoveredInfo

public void clearAllDiscoveredInfo()

getDiscoveryProfileIdAttribute

public java.lang.String getDiscoveryProfileIdAttribute()

getDiscoveryProfileId

public java.lang.String getDiscoveryProfileId()

hasCustomSettings

public boolean hasCustomSettings(Tool tool)

getOptionsOfType

public IOption[] getOptionsOfType(int type)

filterValues

public void filterValues(int type,
                         java.util.List values)

compareTo

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