|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.managedbuilder.internal.core.ToolReference
public class ToolReference
Field Summary |
---|
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, EMPTY_STRING, 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 |
Constructor Summary | |
---|---|
ToolReference(BuildObject owner,
org.w3c.dom.Element element)
Create a new tool reference based on information contained in a project file. |
|
ToolReference(BuildObject owner,
IManagedConfigElement element)
Created tool reference from an extension defined in a plugin manifest. |
|
ToolReference(BuildObject owner,
ITool tool)
Created a tool reference on the fly based on an existing tool or tool reference. |
Method Summary | |
---|---|
void |
addOptionCategory(IOptionCategory category)
Adds the IOptionCategory to this Option Holder's
list of Option Categories. |
void |
addOptionReference(OptionReference optionRef)
Adds the option reference specified in the argument to the receiver. |
boolean |
buildsFileType(java.lang.String extension)
Return true if the receiver builds files with the
specified extension, else false . |
IInputType |
createInputType(IInputType superClass,
java.lang.String Id,
java.lang.String name,
boolean isExtensionElement)
Creates a child InputType for this tool. |
IOption |
createOption(IOption superClass,
java.lang.String Id,
java.lang.String name,
boolean b)
Creates a child Option |
OptionReference |
createOptionReference(IOption option)
Answers a reference to the option. |
void |
createOptions(IHoldsOptions options)
Creates options from the superclass and adds it to this class. |
IOutputType |
createOutputType(IOutputType superClass,
java.lang.String Id,
java.lang.String name,
boolean isExtensionElement)
Creates a child OutputType for this tool. |
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[] |
getAllOutputExtensions()
Returns the array of all valid output extensions this tool can create. |
java.lang.String |
getAnnouncement()
Returns the announcement string for this tool |
java.lang.String |
getBaseId()
|
IOptionCategory[] |
getChildCategories()
Returns the option category children of this tool. |
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 |
getConvertToId()
Returns the 'convertToId' of this tool |
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. |
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.lang.String |
getId()
|
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.String |
getManagedBuildRevision()
|
java.lang.String |
getName()
|
int |
getNatureFilter()
Answers a constant corresponding to the project nature the tool should be used for. |
IOption |
getOption(java.lang.String id)
This is a deprecated method for retrieving an IOption from
the receiver based on an ID. |
IOption |
getOptionById(java.lang.String id)
Get the IOption in the receiver with the specified
ID. |
IOption |
getOptionBySuperClassId(java.lang.String id)
Get the IOption in the receiver with the specified
ID, or an option with a superclass with this id. |
IOptionCategory |
getOptionCategory(java.lang.String id)
Answers the IOptionCategory that has the unique identifier
specified in the argument. |
IOptionPathConverter |
getOptionPathConverter()
Returns an IOptionPathConverter implementation for this tool or null, if no conversion is required |
java.util.List |
getOptionReferenceList()
Answers the list of option references contained in the receiver. |
IOption[] |
getOptions()
Returns the complete list of options that are available for this object. |
IOption |
getOptionToSet(IOption option,
boolean adjustExtension)
This method should be called in order to obtain the option whose value and attributes could be directly changed/adjusted |
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. |
IBuildObject |
getParent()
Returns the tool-chain or resource configuration that is the parent of this tool. |
IResourceInfo |
getParentResourceInfo()
|
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 . |
java.lang.String |
getRawOutputExtensions()
Answers all of the output extensions that the receiver can build. |
java.lang.String |
getRawOutputFlag()
Answers the argument that must be passed to a specific tool in order to control the name of the output artifact. |
java.lang.String |
getRawOutputPrefix()
Answers the prefix that the tool should prepend to the name of the build artifact. |
java.lang.String |
getRawToolCommand()
Answers the command-line invocation defined for the receiver. |
ITool |
getSuperClass()
Returns the ITool that is the superclass of this
tool, or null if the attribute was not specified. |
ITool |
getTool()
Answers the tool that the reference has been created for. |
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 |
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. |
org.eclipse.core.runtime.PluginVersionIdentifier |
getVersion()
|
java.lang.String |
getVersionsSupported()
Returns the 'versionsSupported' of this tool |
boolean |
isAbstract()
Returns whether this element is abstract. |
boolean |
isDirty()
Returns true if this tool has changes that need to
be saved in the project file, else false . |
boolean |
isEnabled()
|
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 |
isReal()
|
boolean |
isSystemObject()
|
boolean |
matches(ITool tool)
|
boolean |
needsRebuild()
specifies whether the option holder is modified and needs rebuild |
boolean |
ownedByConfiguration(IConfigurationV2 config)
Answers true if the owner of the receiver matches
the argument. |
boolean |
producesFileType(java.lang.String outputExtension)
Answers true if the receiver builds a file with the extension specified
in the argument, else false . |
boolean |
references(ITool target)
Answers true if the reference is a reference to the
tool specified in the argument. |
void |
removeInputType(IInputType type)
Removes an InputType from the tool's list. |
void |
removeOption(IOption o)
Removes an option. |
void |
removeOutputType(IOutputType type)
Removes an OutputType from the tool's list. |
void |
resolveReferences()
|
void |
serialize(org.w3c.dom.Document doc,
org.w3c.dom.Element element)
Persist receiver to project file. |
void |
setAdvancedInputCategory(boolean display)
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 announcement)
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 customBuildStep)
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?) |
void |
setErrorParserIds(java.lang.String ids)
Sets the semicolon separated list of error parser ids |
void |
setIsAbstract(boolean b)
Sets the isAbstract attribute of the tool-chain. |
void |
setOutputExtensions(java.lang.String ext)
|
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 extensions)
Sets all of the output extensions that the receiver can build, into the outputs attribute. |
void |
setRebuildState(boolean rebuild)
sets the holder rebuild state |
boolean |
setToolCommand(java.lang.String cmd)
Sets the command-line invocation command defined for this tool. |
void |
setToolParent(IBuildObject newParent)
|
void |
setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
|
void |
setVersionsSupported(java.lang.String versionsSupported)
Sets the 'versionsSupported' attribute of the tool. |
boolean |
supportsBuild(boolean managed)
|
boolean |
supportsManagedBuild()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ToolReference(BuildObject owner, org.w3c.dom.Element element)
owner
- The ConfigurationV2
the receiver will be added to.element
- The element defined in the project file containing build information
for the receiver.public ToolReference(BuildObject owner, IManagedConfigElement element)
owner
- The BuildObject
the receiver will be added to.element
- The element containing build information for the reference.public ToolReference(BuildObject owner, ITool tool)
owner
- The BuildObject
the receiver will be added to.tool
- The ITool
tool the reference will be based on.Method Detail |
---|
public boolean references(ITool target)
IToolReference
true
if the reference is a reference to the
tool specified in the argument.
references
in interface IToolReference
public void resolveReferences()
public void addOptionReference(OptionReference optionRef)
optionRef
- public boolean buildsFileType(java.lang.String extension)
ITool
true
if the receiver builds files with the
specified extension, else false
.
buildsFileType
in interface ITool
extension
- file extension of the source
public boolean isInputFileType(java.lang.String extension)
ITool
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.
isInputFileType
in interface ITool
extension
- file extension of the source
public OptionReference createOptionReference(IOption option)
IToolReference
createOptionReference
in interface IToolReference
public java.lang.String getId()
getId
in interface IBuildObject
public java.lang.String getBaseId()
getBaseId
in interface IBuildObject
public java.util.List getInputExtensions()
ITool
null
.
getInputExtensions
in interface ITool
public java.lang.String getName()
getName
in interface IBuildObject
public int getNatureFilter()
ITool
getNatureFilter
in interface ITool
public IOption getOption(java.lang.String id)
IHoldsOptions
IOption
from
the receiver based on an ID. It is preferred that you use the newer method
getOptionById
getOption
in interface IHoldsOptions
id
- unique identifier of the option to search for
IOption
org.eclipse.cdt.core.build.managed.IHoldsOptions#getOptionById(java.lang.String)
public IOption getOptionById(java.lang.String id)
IHoldsOptions
IOption
in the receiver with the specified
ID. This is an efficient search in the receiver.
If the receiver does not have an option with that ID, the method
returns null
. It is the responsibility of the caller to
verify the return value.
getOptionById
in interface IHoldsOptions
id
- unique identifier of the option to search for
IOption
public boolean producesFileType(java.lang.String outputExtension)
ITool
true
if the receiver builds a file with the extension specified
in the argument, else false
.
producesFileType
in interface ITool
outputExtension
- extension of the file being produced by a tool
public ITool getTool()
IToolReference
getTool
in interface IToolReference
public java.lang.String getToolCommand()
ITool
getToolCommand
in interface ITool
public java.lang.String getToolFlags() throws BuildException
ITool
getToolFlags
in interface ITool
BuildException
public IOptionCategory getTopOptionCategory()
ITool
getTopOptionCategory
in interface ITool
public java.util.List getOptionReferenceList()
IToolReference
getOptionReferenceList
in interface IToolReference
public IOption[] getOptions()
IHoldsOptions
getOptions
in interface IHoldsOptions
public java.lang.String[] getOutputExtensions()
ITool
getOutputExtensions
in interface ITool
String[]
of extensionspublic java.lang.String getOutputExtension(java.lang.String inputExtension)
ITool
null
if the tool does not understand that extension.
getOutputExtension
in interface ITool
inputExtension
- The extension of the source file.
public java.lang.String getOutputFlag()
ITool
getOutputFlag
in interface ITool
public java.lang.String getOutputPrefix()
ITool
getOutputPrefix
in interface ITool
public boolean isDirty()
ITool
true
if this tool has changes that need to
be saved in the project file, else false
.
isDirty
in interface ITool
isDirty
in interface IToolReference
public boolean isHeaderFile(java.lang.String ext)
ITool
true
if the tool considers the file extension to be
one associated with a header file.
isHeaderFile
in interface ITool
ext
- file extension of the source
public boolean ownedByConfiguration(IConfigurationV2 config)
true
if the owner of the receiver matches
the argument.
config
-
public void serialize(org.w3c.dom.Document doc, org.w3c.dom.Element element)
doc
- The persistent store for the reference information.element
- The root element in the store the receiver must use
to persist settings.public void setDirty(boolean isDirty)
ITool
setDirty
in interface ITool
setDirty
in interface IToolReference
isDirty
- The value to set the dirty flag to in the receiverpublic boolean setToolCommand(java.lang.String cmd)
ITool
setToolCommand
in interface ITool
setToolCommand
in interface IToolReference
true
, then the tool command was modifiedpublic void setOutputFlag(java.lang.String flag)
ITool
setOutputFlag
in interface ITool
public void setOutputPrefix(java.lang.String prefix)
ITool
setOutputPrefix
in interface ITool
#setOutputPrefixForPrimaryOutput(String)}
public void setOutputExtensions(java.lang.String ext)
public void setToolParent(IBuildObject newParent)
public IBuildObject getParent()
ITool
getParent
in interface ITool
public java.lang.String getCommandLinePattern()
ITool
getCommandLinePattern
in interface ITool
public IManagedCommandLineGenerator getCommandLineGenerator()
ITool
getCommandLineGenerator
in interface ITool
public IManagedDependencyGenerator getDependencyGenerator()
ITool
null
in which case, the receiver
should assume that the tool does not require dependency information
when the project is built.
getDependencyGenerator
in interface ITool
public java.lang.String[] getCommandFlags() throws BuildException
ITool
getCommandFlags
in interface ITool
BuildException
public java.lang.String[] getToolCommandFlags(org.eclipse.core.runtime.IPath inputFileLocation, org.eclipse.core.runtime.IPath outputFileLocation) throws BuildException
ITool
getToolCommandFlags
in interface ITool
BuildException
public java.lang.String getToolCommandFlagsString(org.eclipse.core.runtime.IPath inputFileLocation, org.eclipse.core.runtime.IPath outputFileLocation) throws BuildException
ITool
getToolCommandFlagsString
in interface ITool
BuildException
public java.lang.String toString()
toString
in class java.lang.Object
public ITool getSuperClass()
ITool
ITool
that is the superclass of this
tool, or null
if the attribute was not specified.
getSuperClass
in interface ITool
public boolean isAbstract()
ITool
false
if the attribute was not specified.
isAbstract
in interface ITool
public java.lang.String getUnusedChildren()
ITool
getUnusedChildren
in interface ITool
public java.lang.String[] getErrorParserList()
ITool
getErrorParserList
in interface ITool
public java.lang.String getErrorParserIds()
ITool
getErrorParserIds
in interface ITool
public void setErrorParserIds(java.lang.String ids)
ITool
setErrorParserIds
in interface ITool
public java.util.List getInterfaceExtensions()
ITool
null
.
getInterfaceExtensions
in interface ITool
public boolean isExtensionElement()
ITool
true
if this tool was loaded from a manifest file,
and false
if it was loaded from a project (.cdtbuild) file.
isExtensionElement
in interface ITool
public IOption createOption(IOption superClass, java.lang.String Id, java.lang.String name, boolean b)
IHoldsOptions
createOption
in interface IHoldsOptions
public void createOptions(IHoldsOptions options)
IHoldsOptions
createOptions
in interface IHoldsOptions
public void removeOption(IOption o)
IHoldsOptions
removeOption
in interface IHoldsOptions
public IOptionCategory[] getChildCategories()
IHoldsOptions
getChildCategories
in interface IHoldsOptions
public void setIsAbstract(boolean b)
ITool
setIsAbstract
in interface ITool
public void setCommandLinePattern(java.lang.String pattern)
ITool
setCommandLinePattern
in interface ITool
public void setCommandLineGeneratorElement(org.eclipse.core.runtime.IConfigurationElement element)
ITool
setCommandLineGeneratorElement
in interface ITool
public org.eclipse.core.runtime.IConfigurationElement getDependencyGeneratorElement()
ITool
null
if none.
getDependencyGeneratorElement
in interface ITool
public void setDependencyGeneratorElement(org.eclipse.core.runtime.IConfigurationElement element)
ITool
setDependencyGeneratorElement
in interface ITool
public org.eclipse.core.runtime.IConfigurationElement getCommandLineGeneratorElement()
ITool
null
if none.
getCommandLineGeneratorElement
in interface ITool
public boolean getAdvancedInputCategory()
ITool
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
.
getAdvancedInputCategory
in interface ITool
public void setAdvancedInputCategory(boolean display)
ITool
setAdvancedInputCategory
in interface ITool
public IInputType createInputType(IInputType superClass, java.lang.String Id, java.lang.String name, boolean isExtensionElement)
ITool
createInputType
in interface ITool
public IOutputType createOutputType(IOutputType superClass, java.lang.String Id, java.lang.String name, boolean isExtensionElement)
ITool
createOutputType
in interface ITool
public java.lang.String getAnnouncement()
ITool
getAnnouncement
in interface ITool
public IInputType getInputTypeById(java.lang.String id)
ITool
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.
getInputTypeById
in interface ITool
id
- unique identifier of the InputType to search for
IInputType
public IInputType[] getInputTypes()
ITool
getInputTypes
in interface ITool
public IOutputType getOutputTypeById(java.lang.String id)
ITool
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.
getOutputTypeById
in interface ITool
id
- unique identifier of the OutputType to search for
IOutputType
public IOutputType[] getOutputTypes()
ITool
getOutputTypes
in interface ITool
public void removeInputType(IInputType type)
ITool
removeInputType
in interface ITool
public void removeOutputType(IOutputType type)
ITool
removeOutputType
in interface ITool
public void setAnnouncement(java.lang.String announcement)
ITool
setAnnouncement
in interface ITool
public java.lang.String getDefaultInputExtension()
ITool
getDefaultInputExtension
in interface ITool
public java.lang.String[] getAllInputExtensions()
ITool
null
.
getAllInputExtensions
in interface ITool
public java.lang.String[] getPrimaryInputExtensions()
ITool
null
.
getPrimaryInputExtensions
in interface ITool
public IInputType getInputType(java.lang.String inputExtension)
ITool
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.
getInputType
in interface ITool
inputExtension
- File extension
IInputType
public java.lang.String[] getOutputsAttribute()
ITool
getOutputsAttribute
in interface ITool
String[]
of extensionspublic IOutputType getOutputType(java.lang.String outputExtension)
ITool
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.
getOutputType
in interface ITool
outputExtension
- File extension
IOutputType
public void setOutputsAttribute(java.lang.String extensions)
ITool
setOutputsAttribute
in interface ITool
public java.lang.String[] getAllOutputExtensions()
ITool
null
.
getAllOutputExtensions
in interface ITool
public java.lang.String[] getAllDependencyExtensions()
ITool
null
.
getAllDependencyExtensions
in interface ITool
public IInputType getPrimaryInputType()
ITool
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.
getPrimaryInputType
in interface ITool
IInputType
public IOutputType getPrimaryOutputType()
ITool
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.
getPrimaryOutputType
in interface ITool
IOutputType
public org.eclipse.core.runtime.IPath[] getAdditionalDependencies()
ITool
getAdditionalDependencies
in interface ITool
public org.eclipse.core.runtime.IPath[] getAdditionalResources()
ITool
getAdditionalResources
in interface ITool
public org.eclipse.core.runtime.IConfigurationElement getDependencyGeneratorElementForExtension(java.lang.String sourceExt)
public IManagedDependencyGeneratorType getDependencyGeneratorForExtension(java.lang.String sourceExt)
ITool
null
in which case, the receiver
should assume that the tool does not require dependency information
when the project is built.
getDependencyGeneratorForExtension
in interface ITool
sourceExt
- source file extension
public boolean getCustomBuildStep()
ITool
true
if the Tool represents a user-define custom build
step, else false
.
getCustomBuildStep
in interface ITool
public void setCustomBuildStep(boolean customBuildStep)
ITool
setCustomBuildStep
in interface ITool
public IOption getOptionBySuperClassId(java.lang.String id)
IHoldsOptions
IOption
in the receiver with the specified
ID, or an option with a superclass with this id.
If the receiver does not have an option with that ID, the method
returns null
. It is the responsibility of the caller to
verify the return value.
getOptionBySuperClassId
in interface IHoldsOptions
id
- unique identifier of the option to search for
IOption
public IOptionCategory getOptionCategory(java.lang.String id)
IHoldsOptions
IOptionCategory
that has the unique identifier
specified in the argument.
getOptionCategory
in interface IHoldsOptions
id
- The unique identifier of the option category
IOptionCategory
with the id specified in the argumentpublic void addOptionCategory(IOptionCategory category)
IHoldsOptions
IOptionCategory
to this Option Holder's
list of Option Categories.
addOptionCategory
in interface IHoldsOptions
category
- The option category to be addedpublic java.lang.String getRawOutputExtensions()
IToolReference
getRawOutputExtensions
in interface IToolReference
public java.lang.String getRawOutputFlag()
IToolReference
getRawOutputFlag
in interface IToolReference
public java.lang.String getRawOutputPrefix()
IToolReference
getRawOutputPrefix
in interface IToolReference
public java.lang.String getRawToolCommand()
IToolReference
getRawToolCommand
in interface IToolReference
public java.lang.String getConvertToId()
ITool
getConvertToId
in interface ITool
public void setConvertToId(java.lang.String convertToId)
ITool
setConvertToId
in interface ITool
public java.lang.String getVersionsSupported()
ITool
getVersionsSupported
in interface ITool
public void setVersionsSupported(java.lang.String versionsSupported)
ITool
setVersionsSupported
in interface ITool
public IEnvVarBuildPath[] getEnvVarBuildPaths()
ITool
getEnvVarBuildPaths
in interface ITool
public org.eclipse.core.runtime.PluginVersionIdentifier getVersion()
getVersion
in interface IBuildObject
public void setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
setVersion
in interface IBuildObject
public java.lang.String getManagedBuildRevision()
getManagedBuildRevision
in interface IBuildObject
public IOption getOptionToSet(IOption option, boolean adjustExtension)
IHoldsOptions
getOptionToSet
in interface IHoldsOptions
adjustExtension
- - if false, modifications are to be made for the non-extension element
(only for some particular configuration associated with some eclipse project)
This is the most common use of this method.
True is allowed only while while handling the LOAD value handler event.
In this case modifications are to be made for the extension element.
This could be used for adjusting extension options
Note: changing this option will affect all non-extension configurations using this option!public boolean needsRebuild()
IHoldsOptions
needsRebuild
in interface IHoldsOptions
public void setRebuildState(boolean rebuild)
IHoldsOptions
setRebuildState
in interface IHoldsOptions
public IOptionPathConverter getOptionPathConverter()
ITool
getOptionPathConverter
in interface ITool
public org.eclipse.cdt.core.settings.model.extension.CLanguageData getCLanguageData(IInputType type)
getCLanguageData
in interface ITool
public org.eclipse.cdt.core.settings.model.extension.CLanguageData[] getCLanguageDatas()
getCLanguageDatas
in interface ITool
public IInputType getInputTypeForCLanguageData(org.eclipse.cdt.core.settings.model.extension.CLanguageData data)
getInputTypeForCLanguageData
in interface ITool
public IResourceInfo getParentResourceInfo()
getParentResourceInfo
in interface ITool
public IInputType getEdtableInputType(IInputType base)
getEdtableInputType
in interface ITool
public boolean isEnabled()
isEnabled
in interface ITool
public boolean isReal()
public boolean supportsManagedBuild()
public boolean supportsBuild(boolean managed)
supportsBuild
in interface ITool
public boolean matches(ITool tool)
matches
in interface ITool
public boolean isSystemObject()
isSystemObject
in interface ITool
public java.lang.String getUniqueRealName()
getUniqueRealName
in interface ITool
public IOutputType getEdtableOutputType(IOutputType base)
getEdtableOutputType
in interface ITool
public void setOutputPrefixForPrimaryOutput(java.lang.String prefix)
setOutputPrefixForPrimaryOutput
in interface ITool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |