|
||||||||||
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.ResourceInfo
org.eclipse.cdt.managedbuilder.internal.core.ResourceConfiguration
public class ResourceConfiguration
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IFileInfo |
---|
FILE_INFO_ELEMENT_NAME |
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IResourceConfiguration |
---|
APPLY_RCBS_TOOL_AFTER, APPLY_RCBS_TOOL_AS_OVERRIDE, APPLY_RCBS_TOOL_BEFORE, DISABLE_RCBS_TOOL, KIND_APPLY_RCBS_TOOL_AFTER, KIND_APPLY_RCBS_TOOL_AS_OVERRIDE, KIND_APPLY_RCBS_TOOL_BEFORE, KIND_DISABLE_RCBS_TOOL, RCBS_APPLICABILITY, RESOURCE_CONFIGURATION_ELEMENT_NAME, TOOLS_TO_INVOKE |
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IResourceInfo |
---|
EXCLUDE, RESOURCE_PATH |
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
ID, NAME |
Constructor Summary | |
---|---|
ResourceConfiguration(FolderInfo folderInfo,
ITool baseTool,
java.lang.String id,
java.lang.String resourceName,
org.eclipse.core.runtime.IPath path)
|
|
ResourceConfiguration(IConfiguration parent,
org.eclipse.cdt.core.settings.model.ICStorageElement element,
java.lang.String managedBuildRevision)
Create a ResourceConfiguration based on the specification stored in the
project file (.cdtbuild). |
|
ResourceConfiguration(IConfiguration parent,
IManagedConfigElement element,
java.lang.String managedBuildRevision)
This constructor is called to create a resource configuration defined by an extension point in a plugin manifest file, or returned by a dynamic element provider |
|
ResourceConfiguration(IConfiguration cfg,
ResourceConfiguration cloneConfig,
java.lang.String id,
java.util.Map superClassIdMap,
boolean cloneChildren)
Create a new resource configuration based on one already defined. |
|
ResourceConfiguration(ResourceConfiguration baseInfo,
org.eclipse.core.runtime.IPath path,
java.lang.String id,
java.lang.String name)
|
Method Summary | |
---|---|
void |
addTool(Tool tool)
|
java.util.Set |
contributeErrorParsers(java.util.Set set)
|
ITool |
createTool(ITool superClass,
java.lang.String id,
java.lang.String name,
boolean isExtensionElement)
Creates a Tool child for this resource configuration. |
IToolChain |
getBaseToolChain()
|
org.eclipse.cdt.core.settings.model.extension.CLanguageData[] |
getCLanguageDatas()
|
org.eclipse.cdt.core.settings.model.extension.CFileData |
getFileData()
|
int |
getKind()
|
org.eclipse.core.resources.IResource |
getOwner()
Returns the Eclipse project that owns the resource configuration. |
int |
getRcbsApplicability()
Returns an integer constant representing the users desire for ordering the application of a resource custom build step tool. |
java.lang.String |
getResourcePath()
Returns the path of the project resource that this element references. |
ITool |
getTool(java.lang.String id)
Returns the tool in this resource configuration with the ID specified in the argument, or null |
ITool[] |
getTools()
Returns the list of tools associated with this resource configuration. |
ITool[] |
getToolsToInvoke()
Returns the list of tools currently defined for the project resource that this element references. |
org.eclipse.core.runtime.PluginVersionIdentifier |
getVersion()
|
boolean |
hasCustomSettings()
|
boolean |
isDirty()
Returns true if this element has changes that need to
be saved in the project file, else false . |
boolean |
isExtensionElement()
|
boolean |
isExtensionResourceConfiguration()
|
boolean |
isFolderInfo()
|
boolean |
needsRebuild()
specifies whether the resource configuration is modified and needs rebuild |
void |
removeTool(ITool tool)
Removes the Tool from the Tool list and map |
void |
reset()
|
void |
resetErrorParsers()
|
void |
resolveReferences()
|
void |
serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
Persist the resource configuration to the project file. |
void |
setDirty(boolean isDirty)
Sets the element's "dirty" (have I been modified?) |
void |
setRcbsApplicability(int newValue)
Sets the new value representing the users desire for ordering the application of a resource custom build step tool. |
void |
setRebuildState(boolean rebuild)
sets the resource configuration rebuild state |
void |
setResourcePath(java.lang.String path)
Sets the resource path to which this resource configuration applies. |
void |
setToolCommand(ITool tool,
java.lang.String command)
Overrides the tool command for a tool defined in this resource configuration's tool. |
void |
setTools(ITool[] tools)
|
void |
setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
|
boolean |
supportsBuild(boolean managed)
|
void |
updateManagedBuildRevision(java.lang.String revision)
|
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.ResourceInfo |
---|
canExclude, getParent, getParentResourceInfo, getPath, getResourceData, getToolById, isExcluded, isRoot, isValid, normalizePath, propertiesChanged, setExclude, setOption, setOption, setOption, setOption, setPath |
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.BuildObject |
---|
getBaseId, getId, getManagedBuildRevision, getName, getVersionFromId, setId, setManagedBuildRevision, setName, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.cdt.managedbuilder.core.IResourceConfiguration |
---|
getParent, isExcluded, setExclude, setOption, setOption, setOption |
Methods inherited from interface org.eclipse.cdt.managedbuilder.core.IResourceInfo |
---|
canExclude, getPath, getResourceData, isValid, setOption, setPath |
Methods inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
getBaseId, getId, getManagedBuildRevision, getName |
Constructor Detail |
---|
public ResourceConfiguration(IConfiguration parent, IManagedConfigElement element, java.lang.String managedBuildRevision)
parent
- The IConfiguration parent of this resource configurationelement
- The resource configuration definition from the manifest file
or a dynamic element providermanagedBuildRevision
- public ResourceConfiguration(IConfiguration parent, org.eclipse.cdt.core.settings.model.ICStorageElement element, java.lang.String managedBuildRevision)
ResourceConfiguration
based on the specification stored in the
project file (.cdtbuild).
parent
- The IConfiguration
the resource configuration will be added to.element
- The XML element that contains the resource configuration settings.managedBuildRevision
- public ResourceConfiguration(FolderInfo folderInfo, ITool baseTool, java.lang.String id, java.lang.String resourceName, org.eclipse.core.runtime.IPath path)
public ResourceConfiguration(IConfiguration cfg, ResourceConfiguration cloneConfig, java.lang.String id, java.util.Map superClassIdMap, boolean cloneChildren)
managedProject
- The ManagedProject
the configuration will be added to.parentConfig
- The IConfiguration
to copy the settings from.id
- A unique ID for the new configuration.public ResourceConfiguration(ResourceConfiguration baseInfo, org.eclipse.core.runtime.IPath path, java.lang.String id, java.lang.String name)
Method Detail |
---|
public void serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
doc
- element
- public ITool[] getTools()
IResourceConfiguration
getTools
in interface IResourceConfiguration
getTools
in interface IResourceInfo
public ITool getTool(java.lang.String id)
IResourceConfiguration
null
getTool
in interface IResourceConfiguration
id
- The ID of the requested tool
public void addTool(Tool tool)
public void removeTool(ITool tool)
IResourceConfiguration
removeTool
in interface IResourceConfiguration
public java.lang.String getResourcePath()
IResourceConfiguration
getResourcePath
in interface IResourceConfiguration
public int getRcbsApplicability()
IResourceConfiguration
getRcbsApplicability
in interface IResourceConfiguration
public ITool[] getToolsToInvoke()
IResourceConfiguration
getToolsToInvoke
in interface IResourceConfiguration
public void setRcbsApplicability(int newValue)
IResourceConfiguration
setRcbsApplicability
in interface IResourceConfiguration
public void setResourcePath(java.lang.String path)
IResourceConfiguration
setResourcePath
in interface IResourceConfiguration
public boolean isExtensionResourceConfiguration()
public boolean isDirty()
IResourceConfiguration
true
if this element has changes that need to
be saved in the project file, else false
.
isDirty
in interface IResourceConfiguration
isDirty
in interface IResourceInfo
isDirty
in class ResourceInfo
public void setDirty(boolean isDirty)
IResourceConfiguration
setDirty
in interface IResourceConfiguration
setDirty
in interface IResourceInfo
setDirty
in class ResourceInfo
public void resolveReferences()
public ITool createTool(ITool superClass, java.lang.String id, java.lang.String name, boolean isExtensionElement)
IResourceConfiguration
Tool
child for this resource configuration.
createTool
in interface IResourceConfiguration
public void reset()
public void setToolCommand(ITool tool, java.lang.String command)
IResourceConfiguration
setToolCommand
in interface IResourceConfiguration
tool
- The tool that will have its command modifiedcommand
- The commandpublic org.eclipse.core.resources.IResource getOwner()
IResourceConfiguration
getOwner
in interface IResourceConfiguration
public org.eclipse.core.runtime.PluginVersionIdentifier getVersion()
getVersion
in interface IBuildObject
getVersion
in class BuildObject
public void setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
setVersion
in interface IBuildObject
setVersion
in class BuildObject
version
- The version to set.public void updateManagedBuildRevision(java.lang.String revision)
updateManagedBuildRevision
in class BuildObject
public boolean needsRebuild()
IResourceConfiguration
needsRebuild
in interface IResourceConfiguration
needsRebuild
in interface IResourceInfo
needsRebuild
in class ResourceInfo
public void setRebuildState(boolean rebuild)
IResourceConfiguration
setRebuildState
in interface IResourceConfiguration
setRebuildState
in interface IResourceInfo
setRebuildState
in class ResourceInfo
public final int getKind()
getKind
in interface IResourceInfo
public org.eclipse.cdt.core.settings.model.extension.CFileData getFileData()
getFileData
in interface IFileInfo
public org.eclipse.cdt.core.settings.model.extension.CLanguageData[] getCLanguageDatas()
getCLanguageDatas
in interface IResourceInfo
public IToolChain getBaseToolChain()
public boolean isExtensionElement()
isExtensionElement
in interface IResourceInfo
isExtensionElement
in class ResourceInfo
public boolean supportsBuild(boolean managed)
supportsBuild
in interface IResourceInfo
public java.util.Set contributeErrorParsers(java.util.Set set)
contributeErrorParsers
in class ResourceInfo
public void resetErrorParsers()
resetErrorParsers
in class ResourceInfo
public boolean hasCustomSettings()
hasCustomSettings
in class ResourceInfo
public void setTools(ITool[] tools)
setTools
in interface IResourceConfiguration
public boolean isFolderInfo()
isFolderInfo
in class ResourceInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |