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

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.internal.core.BuildObject
      extended by 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


Field Summary
 
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
 
Method Summary
 boolean canExclude(boolean exclude)
           
abstract  java.util.Set contributeErrorParsers(java.util.Set set)
           
 IConfiguration getParent()
           
 ResourceInfo getParentResourceInfo()
           
 org.eclipse.core.runtime.IPath getPath()
           
 org.eclipse.cdt.core.settings.model.extension.CResourceData getResourceData()
           
 ITool getToolById(java.lang.String id)
           
abstract  boolean hasCustomSettings()
           
 boolean isDirty()
           
 boolean isExcluded()
           
abstract  boolean isExtensionElement()
           
abstract  boolean isFolderInfo()
           
 boolean isRoot()
           
 boolean isValid()
           
 boolean needsRebuild()
           
static org.eclipse.core.runtime.IPath normalizePath(org.eclipse.core.runtime.IPath path)
           
 void propertiesChanged()
           
abstract  void resetErrorParsers()
           
 void setDirty(boolean dirty)
           
 void setExclude(boolean excluded)
           
 IOption setOption(IHoldsOptions parent, IOption option, boolean value)
          Sets the value of a boolean option for this resource configuration.
 IOption setOption(IHoldsOptions parent, IOption option, OptionStringValue[] value)
           
 IOption setOption(IHoldsOptions parent, IOption option, java.lang.String value)
          Sets the value of a string option for this resource configuration.
 IOption setOption(IHoldsOptions parent, IOption option, java.lang.String[] value)
          Sets the value of a list option for this resource configuration.
 void setPath(org.eclipse.core.runtime.IPath p)
           
 void setRebuildState(boolean rebuild)
           
 
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
 
Methods inherited from interface org.eclipse.cdt.managedbuilder.core.IResourceInfo
getCLanguageDatas, getKind, getTools, supportsBuild
 
Methods inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject
getBaseId, getId, getManagedBuildRevision, getName, getVersion, setVersion
 

Method Detail

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