|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.managedbuilder.internal.core.BuildObject
org.eclipse.cdt.managedbuilder.internal.core.ConfigurationV2
public class ConfigurationV2
This class is deprecated in 2.1
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IConfigurationV2 |
---|
CONFIGURATION_ELEMENT_NAME, PARENT, TOOLREF_ELEMENT_NAME |
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
ID, NAME |
Constructor Summary | |
---|---|
ConfigurationV2(Target target,
org.w3c.dom.Element element)
Build a configuration from the project manifest file. |
|
ConfigurationV2(Target target,
IConfigurationV2 parentConfig,
java.lang.String id)
Create a new configuration based on one already defined. |
|
ConfigurationV2(Target target,
IManagedConfigElement element)
Create a new ConfigurationV2 based on the specification in the plugin manifest. |
|
ConfigurationV2(Target target,
java.lang.String id)
A fresh new configuration for a target. |
Method Summary | |
---|---|
void |
addToolReference(ToolReference toolRef)
Adds a tool reference to the receiver. |
IConfiguration |
getCreatedConfig()
Returns the configuration that was created from this V2.0 configuration. |
ITool[] |
getFilteredTools(org.eclipse.core.resources.IProject project)
Projects have C or CC natures. |
java.lang.String |
getName()
|
org.eclipse.core.resources.IResource |
getOwner()
Returns the resource that owns the project that owns the configuration. |
IConfigurationV2 |
getParent()
Answers the configuration that this configuration is based on. |
ITarget |
getTarget()
Returns the target for this configuration. |
ITool |
getToolById(java.lang.String id)
Answers the ITool in the receiver with the same
id as the argument, or null . |
IToolReference[] |
getToolReferences()
Returns the tool references that are children of this configuration. |
ITool[] |
getTools()
Returns the tools that are used in this configuration. |
boolean |
isDirty()
Answers true the receiver has changes that need to be saved
in the project file, else false . |
boolean |
needsRebuild()
Answers whether the receiver has been changed and requires the project to be rebuilt. |
void |
reset(IManagedConfigElement element)
|
void |
resolveReferences()
|
void |
serialize(org.w3c.dom.Document doc,
org.w3c.dom.Element element)
Persist receiver to project file. |
void |
setCreatedConfig(IConfiguration config)
Sets the configuration that was created from this V2.0 configuration. |
void |
setDirty(boolean isDirty)
Sets the element's "dirty" (have I been modified?) |
void |
setOption(IOption option,
boolean value)
Sets the value of a boolean option for this configuration. |
void |
setOption(IOption option,
java.lang.String value)
Sets the value of a string option for this configuration. |
void |
setOption(IOption option,
java.lang.String[] value)
Sets the value of a list option for this configuration. |
void |
setRebuildState(boolean rebuild)
Sets the rebuild state in the receiver. |
void |
setToolCommand(ITool tool,
java.lang.String command)
Overrides the tool command for a tool defined in the receiver. |
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.IConfigurationV2 |
---|
setName |
Methods inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
getBaseId, getId, getManagedBuildRevision, getVersion, setVersion |
Constructor Detail |
---|
public ConfigurationV2(Target target, org.w3c.dom.Element element)
target
- The Target
the configuration belongs to.element
- The element from the manifest that contains the overridden configuration information.public ConfigurationV2(Target target, IConfigurationV2 parentConfig, java.lang.String id)
target
- The Target
the receiver will be added to.parentConfig
- The IConfigurationV2
to copy the settings from.id
- A unique ID for the configuration.public ConfigurationV2(Target target, IManagedConfigElement element)
ConfigurationV2
based on the specification in the plugin manifest.
target
- The Target
the receiver will be added to.element
- The element from the manifest that contains the default configuration settings.public ConfigurationV2(Target target, java.lang.String id)
target
- id
- Method Detail |
---|
public void resolveReferences()
public void addToolReference(ToolReference toolRef)
toolRef
- public IToolReference[] getToolReferences()
IConfigurationV2
getToolReferences
in interface IConfigurationV2
public ITool[] getFilteredTools(org.eclipse.core.resources.IProject project)
IConfigurationV2
getFilteredTools
in interface IConfigurationV2
project
- the project to filter for
ITools
that have compatible filters
for the specified projectpublic java.lang.String getName()
getName
in interface IBuildObject
getName
in class BuildObject
public ITool[] getTools()
IConfigurationV2
getTools
in interface IConfigurationV2
public boolean isDirty()
IConfigurationV2
true
the receiver has changes that need to be saved
in the project file, else false
.
isDirty
in interface IConfigurationV2
public boolean needsRebuild()
IConfigurationV2
needsRebuild
in interface IConfigurationV2
true
if the receiver contains a change
that needs the project to be rebuiltpublic IConfigurationV2 getParent()
IConfigurationV2
getParent
in interface IConfigurationV2
public ITool getToolById(java.lang.String id)
IConfigurationV2
ITool
in the receiver with the same
id as the argument, or null
.
getToolById
in interface IConfigurationV2
id
- unique identifier to search for
public ITarget getTarget()
IConfigurationV2
getTarget
in interface IConfigurationV2
public org.eclipse.core.resources.IResource getOwner()
IConfigurationV2
getOwner
in interface IConfigurationV2
public void reset(IManagedConfigElement element)
targetElement
- public void serialize(org.w3c.dom.Document doc, org.w3c.dom.Element element)
doc
- element
- public void setDirty(boolean isDirty)
IConfigurationV2
setDirty
in interface IConfigurationV2
public void setOption(IOption option, boolean value) throws BuildException
IConfigurationV2
setOption
in interface IConfigurationV2
option
- The option to change.value
- The value to apply to the option.
BuildException
public void setOption(IOption option, java.lang.String value) throws BuildException
IConfigurationV2
setOption
in interface IConfigurationV2
option
- The option that will be effected by change.value
- The value to apply to the option.
BuildException
public void setOption(IOption option, java.lang.String[] value) throws BuildException
IConfigurationV2
setOption
in interface IConfigurationV2
option
- The option to change.value
- The values to apply to the option.
BuildException
public void setRebuildState(boolean rebuild)
IConfigurationV2
setRebuildState
in interface IConfigurationV2
rebuild
- true
will force a rebuild the next time the project buildsIManagedBuildInfo.setRebuildState(boolean)
public void setToolCommand(ITool tool, java.lang.String command)
IConfigurationV2
setToolCommand
in interface IConfigurationV2
tool
- The tool that will have its command modifiedcommand
- The commandpublic void setCreatedConfig(IConfiguration config)
IConfigurationV2
setCreatedConfig
in interface IConfigurationV2
public IConfiguration getCreatedConfig()
IConfigurationV2
getCreatedConfig
in interface IConfigurationV2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |