org.eclipse.cdt.managedbuilder.ui.tests.util
Class TestFolderInfo

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.ui.tests.util.TestFolderInfo
All Implemented Interfaces:
IBuildObject, IFolderInfo, IResourceInfo

public class TestFolderInfo
extends java.lang.Object
implements IFolderInfo


Field Summary
 
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IFolderInfo
FOLDER_INFO_ELEMENT_NAME
 
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
TestFolderInfo(IConfiguration parent)
           
 
Method Summary
 boolean buildsFileType(java.lang.String srcExt)
           
 boolean canExclude(boolean exclude)
           
 IToolChain changeToolChain(IToolChain newSuperClass, java.lang.String Id, java.lang.String name)
           
 java.lang.String getBaseId()
           
 org.eclipse.cdt.core.settings.model.extension.CLanguageData[] getCLanguageDatas()
           
 ITool[] getFilteredTools()
           
 org.eclipse.cdt.core.settings.model.extension.CFolderData getFolderData()
           
 java.lang.String getId()
           
 int getKind()
           
 java.lang.String getManagedBuildRevision()
           
 java.lang.String getName()
           
 java.lang.String getOutputExtension(java.lang.String resourceExtension)
           
 IConfiguration getParent()
           
 org.eclipse.core.runtime.IPath getPath()
           
 org.eclipse.cdt.core.settings.model.extension.CResourceData getResourceData()
           
 ITool getTool(java.lang.String id)
           
 IToolChain getToolChain()
           
 IModificationStatus getToolChainModificationStatus(ITool[] removed, ITool[] added)
           
 ITool getToolFromInputExtension(java.lang.String sourceExtension)
          Returns a ITool for the tool associated with the input extension.
 ITool getToolFromOutputExtension(java.lang.String extension)
          Returns a ITool for the tool associated with the output extension.
 ITool[] getTools()
           
 ITool[] getToolsBySuperClassId(java.lang.String id)
           
 org.eclipse.core.runtime.PluginVersionIdentifier getVersion()
           
 boolean isDirty()
           
 boolean isExcluded()
           
 boolean isExtensionElement()
           
 boolean isHeaderFile(java.lang.String ext)
           
 boolean isToolChainCompatible(IToolChain ch)
           
 boolean isValid()
           
 void modifyToolChain(ITool[] removed, ITool[] added)
           
 boolean needsRebuild()
           
 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 path)
           
 void setRebuildState(boolean rebuild)
           
 void setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
           
 boolean supportsBuild(boolean managed)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestFolderInfo

public TestFolderInfo(IConfiguration parent)
Method Detail

buildsFileType

public boolean buildsFileType(java.lang.String srcExt)
Specified by:
buildsFileType in interface IFolderInfo

changeToolChain

public IToolChain changeToolChain(IToolChain newSuperClass,
                                  java.lang.String Id,
                                  java.lang.String name)
                           throws BuildException
Specified by:
changeToolChain in interface IFolderInfo
Throws:
BuildException

getFilteredTools

public ITool[] getFilteredTools()
Specified by:
getFilteredTools in interface IFolderInfo

getFolderData

public org.eclipse.cdt.core.settings.model.extension.CFolderData getFolderData()
Specified by:
getFolderData in interface IFolderInfo

getOutputExtension

public java.lang.String getOutputExtension(java.lang.String resourceExtension)
Specified by:
getOutputExtension in interface IFolderInfo

getTool

public ITool getTool(java.lang.String id)
Specified by:
getTool in interface IFolderInfo

getToolChain

public IToolChain getToolChain()
Specified by:
getToolChain in interface IFolderInfo

getToolChainModificationStatus

public IModificationStatus getToolChainModificationStatus(ITool[] removed,
                                                          ITool[] added)
Specified by:
getToolChainModificationStatus in interface IFolderInfo

getToolFromInputExtension

public ITool getToolFromInputExtension(java.lang.String sourceExtension)
Description copied from interface: IFolderInfo
Returns a ITool for the tool associated with the input extension.

Specified by:
getToolFromInputExtension in interface IFolderInfo
Returns:
ITool

getToolFromOutputExtension

public ITool getToolFromOutputExtension(java.lang.String extension)
Description copied from interface: IFolderInfo
Returns a ITool for the tool associated with the output extension.

Specified by:
getToolFromOutputExtension in interface IFolderInfo
Parameters:
extension - the file extension of the output file
Returns:
ITool

getToolsBySuperClassId

public ITool[] getToolsBySuperClassId(java.lang.String id)
Specified by:
getToolsBySuperClassId in interface IFolderInfo

isHeaderFile

public boolean isHeaderFile(java.lang.String ext)
Specified by:
isHeaderFile in interface IFolderInfo

isToolChainCompatible

public boolean isToolChainCompatible(IToolChain ch)
Specified by:
isToolChainCompatible in interface IFolderInfo

modifyToolChain

public void modifyToolChain(ITool[] removed,
                            ITool[] added)
                     throws BuildException
Specified by:
modifyToolChain in interface IFolderInfo
Throws:
BuildException

getCLanguageDatas

public org.eclipse.cdt.core.settings.model.extension.CLanguageData[] getCLanguageDatas()
Specified by:
getCLanguageDatas in interface IResourceInfo

getKind

public int getKind()
Specified by:
getKind in interface IResourceInfo

getParent

public IConfiguration getParent()
Specified by:
getParent in interface IResourceInfo

getPath

public org.eclipse.core.runtime.IPath getPath()
Specified by:
getPath in interface IResourceInfo

getResourceData

public org.eclipse.cdt.core.settings.model.extension.CResourceData getResourceData()
Specified by:
getResourceData in interface IResourceInfo

getTools

public ITool[] getTools()
Specified by:
getTools in interface IResourceInfo

isDirty

public boolean isDirty()
Specified by:
isDirty in interface IResourceInfo

isExcluded

public boolean isExcluded()
Specified by:
isExcluded in interface IResourceInfo

isExtensionElement

public boolean isExtensionElement()
Specified by:
isExtensionElement in interface IResourceInfo

isValid

public boolean isValid()
Specified by:
isValid 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

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

setPath

public void setPath(org.eclipse.core.runtime.IPath path)
Specified by:
setPath in interface IResourceInfo

setRebuildState

public void setRebuildState(boolean rebuild)
Specified by:
setRebuildState in interface IResourceInfo

supportsBuild

public boolean supportsBuild(boolean managed)
Specified by:
supportsBuild in interface IResourceInfo

getBaseId

public java.lang.String getBaseId()
Specified by:
getBaseId in interface IBuildObject

getId

public java.lang.String getId()
Specified by:
getId in interface IBuildObject

getManagedBuildRevision

public java.lang.String getManagedBuildRevision()
Specified by:
getManagedBuildRevision in interface IBuildObject

getName

public java.lang.String getName()
Specified by:
getName in interface IBuildObject

getVersion

public org.eclipse.core.runtime.PluginVersionIdentifier getVersion()
Specified by:
getVersion in interface IBuildObject

setVersion

public void setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
Specified by:
setVersion in interface IBuildObject

canExclude

public boolean canExclude(boolean exclude)
Specified by:
canExclude in interface IResourceInfo

setOption

public IOption setOption(IHoldsOptions parent,
                         IOption option,
                         OptionStringValue[] value)
                  throws BuildException
Specified by:
setOption in interface IResourceInfo
Throws:
BuildException