|
||||||||||
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.Configuration
public class Configuration
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IConfiguration |
---|
ARTIFACT_NAME, BUILD_ARTEFACT_TYPE, BUILD_PROPERTIES, CLEAN_COMMAND, CONFIGURATION_ELEMENT_NAME, DESCRIPTION, ERROR_PARSERS, EXTENSION, IS_SYSTEM, PARENT, POSTANNOUNCEBUILD_STEP, POSTBUILD_STEP, PREANNOUNCEBUILD_STEP, PREBUILD_STEP, SOURCE_ENTRIES |
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
ID, NAME |
Constructor Summary | |
---|---|
Configuration(ManagedProject managedProject,
Configuration cloneConfig,
java.lang.String id,
boolean cloneChildren,
boolean temporary)
|
|
Configuration(ManagedProject managedProject,
Configuration cloneConfig,
java.lang.String id,
boolean cloneChildren,
boolean temporary,
boolean isPreferenceConfig)
Create a new project, non-extension, configuration based on one already defined. |
|
Configuration(ManagedProject managedProject,
org.eclipse.cdt.core.settings.model.ICStorageElement element,
java.lang.String managedBuildRevision,
boolean isPreference)
Create a Configuration based on the specification stored in the
project file (.cdtbuild). |
|
Configuration(ManagedProject managedProject,
ToolChain tCh,
java.lang.String id,
java.lang.String name)
|
|
Configuration(ProjectType projectType,
IConfiguration parentConfig,
java.lang.String id)
Create a new extension configuration based on one already defined. |
|
Configuration(ProjectType projectType,
IConfiguration parentConfig,
java.lang.String id,
java.lang.String name)
Create a new extension configuration and fill in the attributes and childen later. |
|
Configuration(ProjectType projectType,
IManagedConfigElement element,
java.lang.String managedBuildRevision)
Create an extension configuration from the project manifest file element. |
Method Summary | |
---|---|
void |
addResourceChangeState(int state)
|
void |
applyToManagedProject(ManagedProject mProj)
|
boolean |
buildsFileType(java.lang.String srcExt)
|
ITool |
calculateTargetTool()
Calculates the configuration target tool. |
boolean |
canEnableInternalBuilder(boolean enable)
|
void |
changeBuilder(IBuilder newBuilder,
java.lang.String id,
java.lang.String name)
|
void |
changeBuilder(IBuilder newBuilder,
java.lang.String id,
java.lang.String name,
boolean allBuildSettings)
|
void |
clearCachedData()
|
CfgDiscoveredPathManager.PathInfoCache |
clearDiscoveredPathInfo()
|
java.util.Set |
contributeErrorParsers(java.util.Set set,
boolean includeChildren)
|
IFileInfo |
createFileInfo(org.eclipse.core.runtime.IPath path)
|
IFileInfo |
createFileInfo(org.eclipse.core.runtime.IPath path,
IFileInfo base,
java.lang.String id,
java.lang.String name)
|
IFileInfo |
createFileInfo(org.eclipse.core.runtime.IPath path,
IFolderInfo base,
ITool baseTool,
java.lang.String id,
java.lang.String name)
|
IFileInfo |
createFileInfo(org.eclipse.core.runtime.IPath path,
java.lang.String id,
java.lang.String name)
|
IFolderInfo |
createFolderInfo(org.eclipse.core.runtime.IPath path)
|
IFolderInfo |
createFolderInfo(org.eclipse.core.runtime.IPath path,
IFolderInfo base,
java.lang.String id,
java.lang.String name)
|
IFolderInfo |
createFolderInfo(org.eclipse.core.runtime.IPath path,
java.lang.String id,
java.lang.String name)
|
IResourceConfiguration |
createResourceConfiguration(org.eclipse.core.resources.IFile file)
Creates a child resource configuration corresponding to the passed in file. |
IToolChain |
createToolChain(IToolChain superClass,
java.lang.String Id,
java.lang.String name,
boolean isExtensionElement)
Creates the IToolChain child of this configuration. |
void |
enableInternalBuilder(boolean enable)
|
void |
exportArtifactInfo()
|
IManagedCommandLineInfo |
generateToolCommandLineInfo(java.lang.String sourceExtension,
java.lang.String[] flags,
java.lang.String outputFlag,
java.lang.String outputPrefix,
java.lang.String outputName,
java.lang.String[] inputResources,
org.eclipse.core.runtime.IPath inputLocation,
org.eclipse.core.runtime.IPath outputLocation)
|
java.lang.String |
getArtifactExtension()
Returns the extension that should be applied to build artifacts created by this configuration. |
java.lang.String |
getArtifactExtensionAttribute(boolean querySuperClass)
|
java.lang.String |
getArtifactName()
Returns the name of the final build artifact. |
BooleanExpressionApplicabilityCalculator |
getBooleanExpressionCalculator()
|
java.lang.String |
getBuildArguments()
Returns the build arguments from this configuration's builder |
IBuildPropertyValue |
getBuildArtefactType()
|
java.lang.String |
getBuildCommand()
Returns the build command from this configuration's builder |
org.eclipse.cdt.core.settings.model.extension.CBuildData |
getBuildData()
|
IBuilder |
getBuilder()
|
IConfigurationBuildMacroSupplier |
getBuildMacroSupplier()
Returns the tool-integrator provided implementation of the configuration build macro supplier or null if none. |
IBuildObjectProperties |
getBuildProperties()
|
ICfgScannerConfigBuilderInfo2Set |
getCfgScannerConfigInfo()
|
java.lang.String |
getCleanCommand()
Answers the OS-specific command to remove files created by the build of this configuration. |
org.eclipse.cdt.core.settings.model.extension.CConfigurationData |
getConfigurationData()
|
org.eclipse.cdt.core.settings.model.ICConfigurationDescription |
getConfigurationDescription()
|
java.lang.String |
getDescription()
Returns the description of the configuration. |
CfgDiscoveredPathManager.PathInfoCache |
getDiscoveredPathInfo()
|
java.lang.String |
getDiscoveryProfileId()
|
IBuilder |
getEditableBuilder()
|
IConfigurationEnvironmentVariableSupplier |
getEnvironmentVariableSupplier()
Returns the implementation of the IConfigurationEnvironmentVariableSupplier provided by the tool-integrator or null if none. |
java.lang.String |
getErrorParserIds()
Answers the semicolon separated list of unique IDs of the error parsers associated with this configuration. |
java.lang.String |
getErrorParserIdsAttribute()
|
java.lang.String[] |
getErrorParserList()
Answers the ordered list of unique IDs of the error parsers associated with this configuration. |
ITool[] |
getFilteredTools()
Projects have C or CC natures. |
boolean |
getInternalBuilderIgnoreErr()
|
boolean |
getInternalBuilderParallel()
returns the Internal Builder parallel mode if true, internal builder will work in parallel mode otherwise it will use only one thread |
java.lang.String[] |
getLibs(java.lang.String extension)
|
IManagedProject |
getManagedProject()
Returns the managed-project parent of this configuration, if this is a project configuration. |
java.lang.String |
getName()
|
java.lang.String |
getOutputExtension(java.lang.String resourceExtension)
|
java.lang.String |
getOutputFlag(java.lang.String outputExt)
|
java.lang.String |
getOutputPrefix(java.lang.String outputExtension)
|
org.eclipse.core.resources.IResource |
getOwner()
Returns the Eclipse project that owns the configuration. |
boolean |
getParallelDef()
|
int |
getParallelNumber()
returns number of Parallel threads |
IConfiguration |
getParent()
Returns the configuration that this configuration is based on. |
java.lang.String |
getPostannouncebuildStep()
Returns the display string associated with the postbuild step |
java.lang.String |
getPostbuildStep()
Returns the postbuild step command |
java.lang.String |
getPreannouncebuildStep()
Returns the display string associated with the prebuild step |
java.lang.String |
getPrebuildStep()
Returns the prebuild step command |
IProjectType |
getProjectType()
Returns the project-type parent of this configuration, if this is an extension configuration. |
java.lang.String[] |
getRequiredTypeIds()
|
IResourceConfiguration |
getResourceConfiguration(java.lang.String resPath)
Returns the resource configuration child of this configuration that is associated with the project resource, or null if none. |
IResourceConfiguration[] |
getResourceConfigurations()
Returns the resource configuration children of this configuration. |
IResourceInfo |
getResourceInfo(org.eclipse.core.runtime.IPath path,
boolean exactPath)
|
IResourceInfo |
getResourceInfoById(java.lang.String id)
|
IResourceInfo[] |
getResourceInfos()
|
IFolderInfo |
getRootFolderInfo()
|
org.eclipse.cdt.core.settings.model.ICSourceEntry[] |
getSourceEntries()
|
java.lang.String[] |
getSupportedTypeIds()
|
java.lang.String[] |
getSupportedValueIds(java.lang.String typeId)
|
ITool |
getTargetTool()
Returns the tool in this configuration specified with the toolChain#targetTool attribute that creates the build artifact NOTE: This method returns null in case the toolChain definition does not have the targetTool attribute or if the attribute does not refer to the appropriate tool. |
ITool |
getTool(java.lang.String id)
Returns the ITool in this configuration's tool-chain with
the same id as the argument, or null . |
IToolChain |
getToolChain()
Returns the IToolChain child of this configuration. |
java.lang.String |
getToolCommand(ITool tool)
Returns the command-line invocation command for the specified tool. |
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()
Returns the tools that are used in this configuration's tool-chain. |
ITool[] |
getToolsBySuperClassId(java.lang.String id)
Returns the ITool in this configuration's tool-chain with
the specified ID, or the tool(s) with a superclass with this id. |
java.lang.String[] |
getUserObjects(java.lang.String extension)
|
org.eclipse.core.runtime.PluginVersionIdentifier |
getVersion()
|
boolean |
hasOverriddenBuildCommand()
Returns true if this configuration has overridden the default build
build command in this configuration, otherwise false . |
boolean |
isBuilderCompatible(IBuilder builder)
|
boolean |
isDirty()
Returns true if this configuration has changes that need to
be saved in the project file, else false . |
boolean |
isExtensionElement()
Returns true if this configuration was loaded from a manifest file,
and false if it was loaded from a project (.cdtbuild) file. |
boolean |
isHeaderFile(java.lang.String ext)
Returns true if the extension matches one of the special
file extensions the tools for the configuration consider to be a header file. |
boolean |
isInternalBuilderEnabled()
|
boolean |
isManagedBuildOn()
|
boolean |
isPerRcTypeDiscovery()
|
boolean |
isPreference()
|
boolean |
isSupported()
Returns true if the configuration's tool-chain is supported on the system
otherwise returns false |
boolean |
isSystemObject()
|
boolean |
isTemporary()
answers true if the configuration is temporary, otherwise - false |
boolean |
needsFullRebuild()
Returns whether this configuration requires a full rebuild |
boolean |
needsRebuild()
Returns whether this configuration has been changed and requires the project to be rebuilt. |
boolean |
needsRebuild(boolean checkChildren)
|
void |
propertiesChanged()
|
void |
removeResourceConfiguration(IResourceInfo resConfig)
Removes a resource configuration from the configuration's list. |
void |
removeResourceInfo(org.eclipse.core.runtime.IPath path)
|
boolean |
requiresType(java.lang.String typeId)
|
void |
reset()
Reset the configuration's, tools', options |
void |
resetErrorParsers()
|
void |
resolveReferences()
|
void |
serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
Persist this configuration to project file. |
void |
setArtifactExtension(java.lang.String extension)
Set (override) the extension that should be appended to the build artifact for the receiver. |
void |
setArtifactName(java.lang.String name)
Set the name of the artifact that will be produced when the receiver is built. |
void |
setBuildArguments(java.lang.String makeArgs)
Sets the arguments to be passed to the build utility used by the receiver to produce a build goal. |
void |
setBuildArtefactType(java.lang.String id)
|
void |
setBuildCommand(java.lang.String command)
Sets the build command for the receiver to the value in the argument. |
void |
setCfgScannerConfigInfo(ICfgScannerConfigBuilderInfo2Set info)
|
void |
setCleanCommand(java.lang.String command)
Sets the command used to clean the outputs of this configuration. |
void |
setConfigurationDescription(org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfgDes)
|
void |
setDescription(java.lang.String description)
Sets the description of the receiver to the value specified in the argument |
void |
setDirty(boolean isDirty)
Sets the element's "dirty" (have I been modified?) |
CfgDiscoveredPathManager.PathInfoCache |
setDiscoveredPathInfo(CfgDiscoveredPathManager.PathInfoCache info)
|
void |
setErrorParserAttribute(java.lang.String[] ids)
|
void |
setErrorParserIds(java.lang.String ids)
Sets the semicolon separated list of error parser ids |
void |
setErrorParserList(java.lang.String[] ids)
|
void |
setInternalBuilderIgnoreErr(boolean ignore)
|
void |
setInternalBuilderParallel(boolean parallel)
sets the Internal Builder Parallel mode |
void |
setManagedBuildOn(boolean on)
|
IOption |
setOption(IHoldsOptions holder,
IOption option,
boolean value)
Sets the value of a boolean option for this configuration. |
IOption |
setOption(IHoldsOptions holder,
IOption option,
java.lang.String value)
Sets the value of a string option for this configuration. |
IOption |
setOption(IHoldsOptions holder,
IOption option,
java.lang.String[] value)
Sets the value of a list option for this configuration. |
void |
setParallelDef(boolean parallel_def)
|
void |
setParallelNumber(int n)
sets number of Parallel threads |
void |
setParent(IConfiguration parent)
|
void |
setPerRcTypeDiscovery(boolean on)
|
void |
setPostannouncebuildStep(java.lang.String announceStep)
Sets the postbuild step display string for the receiver to the value in the argument. |
void |
setPostbuildStep(java.lang.String step)
Sets the postbuild step for the receiver to the value in the argument. |
void |
setPreannouncebuildStep(java.lang.String announceStep)
Sets the prebuild step display string for the receiver to the value in the argument. |
void |
setPrebuildStep(java.lang.String step)
Sets the prebuild step for the receiver to the value in the argument. |
void |
setRebuildState(boolean rebuild)
Sets the rebuild state in this configuration. |
void |
setSourceEntries(org.eclipse.cdt.core.settings.model.ICSourceEntry[] entries)
|
void |
setSourceEntries(org.eclipse.cdt.core.settings.model.ICSourceEntry[] entries,
boolean setRebuildState)
|
void |
setToolCommand(ITool tool,
java.lang.String command)
Overrides the tool command for a tool defined in this configuration's tool-chain. |
void |
setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
|
boolean |
supportsBuild(boolean managed)
|
boolean |
supportsBuild(boolean managed,
boolean checkBuilder)
|
boolean |
supportsType(IBuildPropertyType type)
|
boolean |
supportsType(java.lang.String typeId)
|
boolean |
supportsValue(IBuildPropertyType type,
IBuildPropertyValue value)
|
boolean |
supportsValue(java.lang.String typeId,
java.lang.String valueId)
|
void |
updateManagedBuildRevision(java.lang.String revision)
|
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.BuildObject |
---|
getBaseId, getId, getManagedBuildRevision, 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.IConfiguration |
---|
setName |
Methods inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
getBaseId, getId, getManagedBuildRevision |
Constructor Detail |
---|
public Configuration(ProjectType projectType, IManagedConfigElement element, java.lang.String managedBuildRevision)
projectType
- The ProjectType
the configuration will be added to.element
- The element from the manifest that contains the configuration information.managedBuildRevision
- public Configuration(ProjectType projectType, IConfiguration parentConfig, java.lang.String id)
projectType
- The ProjectType
the configuration will be added to.parentConfig
- The IConfiguration
that is the parent configuration of this configurationid
- A unique ID for the new configuration.public Configuration(ProjectType projectType, IConfiguration parentConfig, java.lang.String id, java.lang.String name)
projectType
- The ProjectType
the configuration will be added to.parentConfig
- The IConfiguration
that is the parent configuration of this configurationid
- A unique ID for the new configuration.name
- A name for the new configuration.public Configuration(ManagedProject managedProject, org.eclipse.cdt.core.settings.model.ICStorageElement element, java.lang.String managedBuildRevision, boolean isPreference)
Configuration
based on the specification stored in the
project file (.cdtbuild).
managedProject
- The ManagedProject
the configuration will be added to.element
- The XML element that contains the configuration settings.public Configuration(ManagedProject managedProject, ToolChain tCh, java.lang.String id, java.lang.String name)
public Configuration(ManagedProject managedProject, Configuration cloneConfig, java.lang.String id, boolean cloneChildren, boolean temporary)
public Configuration(ManagedProject managedProject, Configuration cloneConfig, java.lang.String id, boolean cloneChildren, boolean temporary, boolean isPreferenceConfig)
managedProject
- The ManagedProject
the configuration will be added to.cloneConfig
- The IConfiguration
to copy the settings from.id
- A unique ID for the new configuration.cloneChildren
- If true
, the configuration's tools are clonedMethod Detail |
---|
public void applyToManagedProject(ManagedProject mProj)
public void serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
doc
- element
- public IConfiguration getParent()
IConfiguration
getParent
in interface IConfiguration
public org.eclipse.core.resources.IResource getOwner()
IConfiguration
getOwner
in interface IConfiguration
public IProjectType getProjectType()
IConfiguration
null
.
getProjectType
in interface IConfiguration
public IManagedProject getManagedProject()
IConfiguration
null
.
getManagedProject
in interface IConfiguration
public IToolChain createToolChain(IToolChain superClass, java.lang.String Id, java.lang.String name, boolean isExtensionElement)
IConfiguration
IToolChain
child of this configuration.
createToolChain
in interface IConfiguration
public IToolChain getToolChain()
IConfiguration
IToolChain
child of this configuration.
getToolChain
in interface IConfiguration
public IResourceConfiguration[] getResourceConfigurations()
IConfiguration
getResourceConfigurations
in interface IConfiguration
public IResourceConfiguration getResourceConfiguration(java.lang.String resPath)
IConfiguration
null
if none.
getResourceConfiguration
in interface IConfiguration
public ITool[] getFilteredTools()
IConfiguration
getFilteredTools
in interface IConfiguration
ITools
that have compatible filters
for this configuration.public ITool[] getTools()
IConfiguration
getTools
in interface IConfiguration
public ITool getTool(java.lang.String id)
IConfiguration
ITool
in this configuration's tool-chain with
the same id as the argument, or null
.
getTool
in interface IConfiguration
id
- unique identifier to search for
public ITool[] getToolsBySuperClassId(java.lang.String id)
IConfiguration
ITool
in this configuration's tool-chain with
the specified ID, or the tool(s) with a superclass with this id.
If the tool-chain does not have a tool with that ID, the method returns an empty array. It is the responsibility of the caller to verify the return value.
getToolsBySuperClassId
in interface IConfiguration
id
- unique identifier of the tool to search for
ITool[]
public ITool getTargetTool()
IConfiguration
getTargetTool
in interface IConfiguration
IConfiguration.calculateTargetTool()
public java.lang.String getToolCommand(ITool tool)
IConfiguration
getToolCommand
in interface IConfiguration
tool
- The tool that will have its command retrieved.
public void setToolCommand(ITool tool, java.lang.String command)
IConfiguration
setToolCommand
in interface IConfiguration
tool
- The tool that will have its command modified.command
- The commandpublic IOption setOption(IHoldsOptions holder, IOption option, boolean value) throws BuildException
IConfiguration
setOption
in interface IConfiguration
holder
- The holder/parent of the option.option
- The option to change.value
- The value to apply to the option.
BuildException
public IOption setOption(IHoldsOptions holder, IOption option, java.lang.String value) throws BuildException
IConfiguration
setOption
in interface IConfiguration
holder
- The holder/parent of the option.option
- The option that will be effected by change.value
- The value to apply to the option.
BuildException
public IOption setOption(IHoldsOptions holder, IOption option, java.lang.String[] value) throws BuildException
IConfiguration
setOption
in interface IConfiguration
holder
- The holder/parent of the option.option
- The option to change.value
- The values to apply to the option.
BuildException
public void removeResourceConfiguration(IResourceInfo resConfig)
IConfiguration
removeResourceConfiguration
in interface IConfiguration
public java.lang.String getName()
getName
in interface IBuildObject
getName
in class BuildObject
public java.lang.String getArtifactExtension()
IConfiguration
getArtifactExtension
in interface IConfiguration
public java.lang.String getArtifactExtensionAttribute(boolean querySuperClass)
public java.lang.String getArtifactName()
IConfiguration
getArtifactName
in interface IConfiguration
public java.lang.String getBuildArguments()
IConfiguration
getBuildArguments
in interface IConfiguration
public java.lang.String getBuildCommand()
IConfiguration
getBuildCommand
in interface IConfiguration
public java.lang.String getPrebuildStep()
IConfiguration
getPrebuildStep
in interface IConfiguration
public java.lang.String getPostbuildStep()
IConfiguration
getPostbuildStep
in interface IConfiguration
public java.lang.String getPreannouncebuildStep()
IConfiguration
getPreannouncebuildStep
in interface IConfiguration
public java.lang.String getPostannouncebuildStep()
IConfiguration
getPostannouncebuildStep
in interface IConfiguration
public java.lang.String getCleanCommand()
IConfiguration
getCleanCommand
in interface IConfiguration
public java.lang.String getDescription()
IConfiguration
getDescription
in interface IConfiguration
public java.lang.String getErrorParserIds()
IConfiguration
getErrorParserIds
in interface IConfiguration
public java.lang.String getErrorParserIdsAttribute()
public java.lang.String[] getErrorParserList()
IConfiguration
getErrorParserList
in interface IConfiguration
public java.util.Set contributeErrorParsers(java.util.Set set, boolean includeChildren)
public void setArtifactExtension(java.lang.String extension)
IConfiguration
setArtifactExtension
in interface IConfiguration
public void setArtifactName(java.lang.String name)
IConfiguration
setArtifactName
in interface IConfiguration
public void setErrorParserIds(java.lang.String ids)
IConfiguration
setErrorParserIds
in interface IConfiguration
public void setCleanCommand(java.lang.String command)
IConfiguration
setCleanCommand
in interface IConfiguration
public void setDescription(java.lang.String description)
IConfiguration
setDescription
in interface IConfiguration
public void setBuildArguments(java.lang.String makeArgs)
IConfiguration
setBuildArguments
in interface IConfiguration
public void setBuildCommand(java.lang.String command)
IConfiguration
setBuildCommand
in interface IConfiguration
public void setPrebuildStep(java.lang.String step)
IConfiguration
setPrebuildStep
in interface IConfiguration
public void setPostbuildStep(java.lang.String step)
IConfiguration
setPostbuildStep
in interface IConfiguration
public void setPreannouncebuildStep(java.lang.String announceStep)
IConfiguration
setPreannouncebuildStep
in interface IConfiguration
public void setPostannouncebuildStep(java.lang.String announceStep)
IConfiguration
setPostannouncebuildStep
in interface IConfiguration
public boolean isSupported()
IConfiguration
true
if the configuration's tool-chain is supported on the system
otherwise returns false
isSupported
in interface IConfiguration
public boolean isHeaderFile(java.lang.String ext)
IConfiguration
true
if the extension matches one of the special
file extensions the tools for the configuration consider to be a header file.
isHeaderFile
in interface IConfiguration
ext
- the file extension of the resource
public boolean isExtensionElement()
IConfiguration
true
if this configuration was loaded from a manifest file,
and false
if it was loaded from a project (.cdtbuild) file.
isExtensionElement
in interface IConfiguration
public boolean isDirty()
IConfiguration
true
if this configuration has changes that need to
be saved in the project file, else false
.
Should not be called for an extension configuration.
isDirty
in interface IConfiguration
public boolean needsRebuild()
IConfiguration
needsRebuild
in interface IConfiguration
true
if the configuration contains a change
that needs the project to be rebuilt.
Should not be called for an extension configuration.public boolean needsFullRebuild()
IConfiguration
needsFullRebuild
in interface IConfiguration
public boolean needsRebuild(boolean checkChildren)
public void setDirty(boolean isDirty)
IConfiguration
setDirty
in interface IConfiguration
public void setRebuildState(boolean rebuild)
IConfiguration
setRebuildState
in interface IConfiguration
rebuild
- true
will force a rebuild the next time the project buildsIManagedBuildInfo.setRebuildState(boolean)
public boolean hasOverriddenBuildCommand()
IConfiguration
true
if this configuration has overridden the default build
build command in this configuration, otherwise false
.
hasOverriddenBuildCommand
in interface IConfiguration
public void resolveReferences()
public void reset()
public IResourceConfiguration createResourceConfiguration(org.eclipse.core.resources.IFile file)
IConfiguration
createResourceConfiguration
in interface IConfiguration
public IFileInfo createFileInfo(org.eclipse.core.runtime.IPath path)
createFileInfo
in interface IConfiguration
public IFileInfo createFileInfo(org.eclipse.core.runtime.IPath path, java.lang.String id, java.lang.String name)
createFileInfo
in interface IConfiguration
public IFileInfo createFileInfo(org.eclipse.core.runtime.IPath path, IFolderInfo base, ITool baseTool, java.lang.String id, java.lang.String name)
createFileInfo
in interface IConfiguration
public IFileInfo createFileInfo(org.eclipse.core.runtime.IPath path, IFileInfo base, java.lang.String id, java.lang.String name)
createFileInfo
in interface IConfiguration
public IConfigurationEnvironmentVariableSupplier getEnvironmentVariableSupplier()
IConfiguration
null
if none.
getEnvironmentVariableSupplier
in interface IConfiguration
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 IConfigurationBuildMacroSupplier getBuildMacroSupplier()
IConfiguration
null
if none.
getBuildMacroSupplier
in interface IConfiguration
public boolean isTemporary()
IConfiguration
isTemporary
in interface IConfiguration
public void updateManagedBuildRevision(java.lang.String revision)
updateManagedBuildRevision
in class BuildObject
public void setParent(IConfiguration parent)
public ITool calculateTargetTool()
IConfiguration
calculateTargetTool
in interface IConfiguration
public ITool getToolFromOutputExtension(java.lang.String extension)
IConfiguration
ITool
for the tool associated with the
output extension.
getToolFromOutputExtension
in interface IConfiguration
extension
- the file extension of the output file
public ITool getToolFromInputExtension(java.lang.String sourceExtension)
IConfiguration
ITool
for the tool associated with the
input extension.
getToolFromInputExtension
in interface IConfiguration
public void addResourceChangeState(int state)
public void enableInternalBuilder(boolean enable)
public boolean canEnableInternalBuilder(boolean enable)
public boolean isInternalBuilderEnabled()
public void setInternalBuilderIgnoreErr(boolean ignore)
public boolean getInternalBuilderIgnoreErr()
public void setInternalBuilderParallel(boolean parallel)
parallel
- if true, internal builder will use parallel modepublic boolean getInternalBuilderParallel()
public void setParallelDef(boolean parallel_def)
parallel
- if true, internal builder will use parallel modepublic boolean getParallelDef()
public void setParallelNumber(int n)
int
- public int getParallelNumber()
public IResourceInfo[] getResourceInfos()
getResourceInfos
in interface IConfiguration
public IResourceInfo getResourceInfo(org.eclipse.core.runtime.IPath path, boolean exactPath)
getResourceInfo
in interface IConfiguration
public IResourceInfo getResourceInfoById(java.lang.String id)
getResourceInfoById
in interface IConfiguration
public IFolderInfo getRootFolderInfo()
getRootFolderInfo
in interface IConfiguration
public org.eclipse.cdt.core.settings.model.extension.CConfigurationData getConfigurationData()
getConfigurationData
in interface IConfiguration
public void removeResourceInfo(org.eclipse.core.runtime.IPath path)
removeResourceInfo
in interface IConfiguration
public IFolderInfo createFolderInfo(org.eclipse.core.runtime.IPath path)
createFolderInfo
in interface IConfiguration
public IFolderInfo createFolderInfo(org.eclipse.core.runtime.IPath path, java.lang.String id, java.lang.String name)
createFolderInfo
in interface IConfiguration
public IFolderInfo createFolderInfo(org.eclipse.core.runtime.IPath path, IFolderInfo base, java.lang.String id, java.lang.String name)
createFolderInfo
in interface IConfiguration
public org.eclipse.cdt.core.settings.model.ICSourceEntry[] getSourceEntries()
getSourceEntries
in interface IConfiguration
public void setSourceEntries(org.eclipse.cdt.core.settings.model.ICSourceEntry[] entries)
setSourceEntries
in interface IConfiguration
public void setSourceEntries(org.eclipse.cdt.core.settings.model.ICSourceEntry[] entries, boolean setRebuildState)
public void setErrorParserAttribute(java.lang.String[] ids)
public void setErrorParserList(java.lang.String[] ids)
setErrorParserList
in interface IConfiguration
public void resetErrorParsers()
public org.eclipse.cdt.core.settings.model.extension.CBuildData getBuildData()
getBuildData
in interface IConfiguration
public IBuilder getEditableBuilder()
getEditableBuilder
in interface IConfiguration
public IBuilder getBuilder()
getBuilder
in interface IConfiguration
public java.lang.String getOutputPrefix(java.lang.String outputExtension)
getOutputPrefix
in interface IConfiguration
public org.eclipse.cdt.core.settings.model.ICConfigurationDescription getConfigurationDescription()
public void setConfigurationDescription(org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfgDes)
public IBuildObjectProperties getBuildProperties()
getBuildProperties
in interface IBuildObjectPropertiesContainer
public boolean supportsType(IBuildPropertyType type)
public boolean supportsValue(IBuildPropertyType type, IBuildPropertyValue value)
public void propertiesChanged()
propertiesChanged
in interface IBuildPropertyChangeListener
public BooleanExpressionApplicabilityCalculator getBooleanExpressionCalculator()
public boolean isSystemObject()
isSystemObject
in interface IConfiguration
public java.lang.String getOutputExtension(java.lang.String resourceExtension)
getOutputExtension
in interface IConfiguration
public java.lang.String getOutputFlag(java.lang.String outputExt)
getOutputFlag
in interface IConfiguration
public IManagedCommandLineInfo generateToolCommandLineInfo(java.lang.String sourceExtension, java.lang.String[] flags, java.lang.String outputFlag, java.lang.String outputPrefix, java.lang.String outputName, java.lang.String[] inputResources, org.eclipse.core.runtime.IPath inputLocation, org.eclipse.core.runtime.IPath outputLocation)
generateToolCommandLineInfo
in interface IConfiguration
public java.lang.String[] getUserObjects(java.lang.String extension)
getUserObjects
in interface IConfiguration
public java.lang.String[] getLibs(java.lang.String extension)
getLibs
in interface IConfiguration
public boolean buildsFileType(java.lang.String srcExt)
buildsFileType
in interface IConfiguration
public void exportArtifactInfo()
public boolean supportsBuild(boolean managed)
supportsBuild
in interface IConfiguration
public boolean supportsBuild(boolean managed, boolean checkBuilder)
public boolean supportsType(java.lang.String typeId)
supportsType
in interface IBuildPropertiesRestriction
public boolean supportsValue(java.lang.String typeId, java.lang.String valueId)
supportsValue
in interface IBuildPropertiesRestriction
public java.lang.String[] getRequiredTypeIds()
getRequiredTypeIds
in interface IBuildPropertiesRestriction
public java.lang.String[] getSupportedTypeIds()
getSupportedTypeIds
in interface IBuildPropertiesRestriction
public java.lang.String[] getSupportedValueIds(java.lang.String typeId)
getSupportedValueIds
in interface IBuildPropertiesRestriction
public boolean requiresType(java.lang.String typeId)
requiresType
in interface IBuildPropertiesRestriction
public boolean isManagedBuildOn()
isManagedBuildOn
in interface IConfiguration
public void setManagedBuildOn(boolean on) throws BuildException
setManagedBuildOn
in interface IConfiguration
BuildException
public void changeBuilder(IBuilder newBuilder, java.lang.String id, java.lang.String name)
changeBuilder
in interface IConfiguration
public void changeBuilder(IBuilder newBuilder, java.lang.String id, java.lang.String name, boolean allBuildSettings)
public boolean isBuilderCompatible(IBuilder builder)
isBuilderCompatible
in interface IConfiguration
public boolean isPerRcTypeDiscovery()
public void setPerRcTypeDiscovery(boolean on)
public CfgDiscoveredPathManager.PathInfoCache setDiscoveredPathInfo(CfgDiscoveredPathManager.PathInfoCache info)
public CfgDiscoveredPathManager.PathInfoCache getDiscoveredPathInfo()
public java.lang.String getDiscoveryProfileId()
public CfgDiscoveredPathManager.PathInfoCache clearDiscoveredPathInfo()
public ICfgScannerConfigBuilderInfo2Set getCfgScannerConfigInfo()
public void setCfgScannerConfigInfo(ICfgScannerConfigBuilderInfo2Set info)
public void clearCachedData()
public boolean isPreference()
public IBuildPropertyValue getBuildArtefactType()
getBuildArtefactType
in interface IConfiguration
public void setBuildArtefactType(java.lang.String id) throws BuildException
setBuildArtefactType
in interface IConfiguration
BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |