org.eclipse.cdt.managedbuilder.internal.core
Class ResourceInfo
java.lang.Object
org.eclipse.cdt.managedbuilder.internal.core.BuildObject
org.eclipse.cdt.managedbuilder.internal.core.ResourceInfo
- All Implemented Interfaces:
- IBuildObject, IResourceInfo
- Direct Known Subclasses:
- FolderInfo, ResourceConfiguration
public abstract class ResourceInfo
- extends BuildObject
- implements IResourceInfo
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.BuildObject |
getBaseId, getId, getManagedBuildRevision, getName, getVersion, getVersionFromId, setId, setManagedBuildRevision, setName, setVersion, toString, updateManagedBuildRevision |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
isRoot
public boolean isRoot()
getParent
public IConfiguration getParent()
- Specified by:
getParent
in interface IResourceInfo
getPath
public org.eclipse.core.runtime.IPath getPath()
- Specified by:
getPath
in interface IResourceInfo
isDirty
public boolean isDirty()
- Specified by:
isDirty
in interface IResourceInfo
isExcluded
public boolean isExcluded()
- Specified by:
isExcluded
in interface IResourceInfo
needsRebuild
public boolean needsRebuild()
- Specified by:
needsRebuild
in interface IResourceInfo
setDirty
public void setDirty(boolean dirty)
- Specified by:
setDirty
in interface IResourceInfo
setExclude
public void setExclude(boolean excluded)
- Specified by:
setExclude
in interface IResourceInfo
canExclude
public boolean canExclude(boolean exclude)
- Specified by:
canExclude
in interface IResourceInfo
isFolderInfo
public abstract boolean isFolderInfo()
setPath
public void setPath(org.eclipse.core.runtime.IPath p)
- Specified by:
setPath
in interface IResourceInfo
setRebuildState
public void setRebuildState(boolean rebuild)
- Specified by:
setRebuildState
in interface IResourceInfo
getResourceData
public org.eclipse.cdt.core.settings.model.extension.CResourceData getResourceData()
- Specified by:
getResourceData
in interface IResourceInfo
isValid
public boolean isValid()
- Specified by:
isValid
in interface IResourceInfo
setOption
public IOption setOption(IHoldsOptions parent,
IOption option,
boolean value)
throws BuildException
- Description copied from interface:
IResourceInfo
- Sets the value of a boolean option for this resource configuration.
- Specified by:
setOption
in interface IResourceInfo
- Parameters:
parent
- The holder/parent of the option.option
- The option to change.value
- The value to apply to the option.
- Returns:
- IOption The modified option. This can be the same option or a newly created option.
- Throws:
BuildException
setOption
public IOption setOption(IHoldsOptions parent,
IOption option,
java.lang.String value)
throws BuildException
- Description copied from interface:
IResourceInfo
- Sets the value of a string option for this resource configuration.
- Specified by:
setOption
in interface IResourceInfo
- Parameters:
parent
- The holder/parent of the option.option
- The option that will be effected by change.value
- The value to apply to the option.
- Returns:
- IOption The modified option. This can be the same option or a newly created option.
- Throws:
BuildException
setOption
public IOption setOption(IHoldsOptions parent,
IOption option,
java.lang.String[] value)
throws BuildException
- Description copied from interface:
IResourceInfo
- Sets the value of a list option for this resource configuration.
- Specified by:
setOption
in interface IResourceInfo
- Parameters:
parent
- The holder/parent of the option.option
- The option to change.value
- The values to apply to the option.
- Returns:
- IOption The modified option. This can be the same option or a newly created option.
- Throws:
BuildException
setOption
public IOption setOption(IHoldsOptions parent,
IOption option,
OptionStringValue[] value)
throws BuildException
- Specified by:
setOption
in interface IResourceInfo
- Throws:
BuildException
propertiesChanged
public void propertiesChanged()
isExtensionElement
public abstract boolean isExtensionElement()
- Specified by:
isExtensionElement
in interface IResourceInfo
contributeErrorParsers
public abstract java.util.Set contributeErrorParsers(java.util.Set set)
resetErrorParsers
public abstract void resetErrorParsers()
getToolById
public ITool getToolById(java.lang.String id)
normalizePath
public static org.eclipse.core.runtime.IPath normalizePath(org.eclipse.core.runtime.IPath path)
getParentResourceInfo
public ResourceInfo getParentResourceInfo()
hasCustomSettings
public abstract boolean hasCustomSettings()