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

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.internal.core.ManagedBuildInfo
All Implemented Interfaces:
org.eclipse.cdt.core.parser.IScannerInfo, IManagedBuildInfo

public class ManagedBuildInfo
extends java.lang.Object
implements IManagedBuildInfo, org.eclipse.cdt.core.parser.IScannerInfo

Since:
1.2

Field Summary
static org.eclipse.cdt.core.model.IContainerEntry containerEntry
           
static java.lang.String MAJOR_SEPERATOR
           
static java.lang.String MINOR_SEPERATOR
           
 
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo
DEFAULT_CONFIGURATION, DEFAULT_TARGET
 
Constructor Summary
ManagedBuildInfo(org.eclipse.core.resources.IResource owner)
          Basic contructor used when the project is brand new.
ManagedBuildInfo(org.eclipse.core.resources.IResource owner, org.eclipse.cdt.core.settings.model.ICStorageElement element, boolean loadConfigs, java.lang.String managedBuildRevision)
          Reads the build information from the project file and creates the internal representation of the build settings for the project.
 
Method Summary
 void addTarget(ITarget target)
          Add a new target to the build information for the receiver
 boolean buildsFileType(java.lang.String srcExt)
          Answers true if the build system knows how to build a file with the extension passed in the argument.
 IManagedCommandLineInfo generateCommandLineInfo(java.lang.String sourceExtension, java.lang.String[] flags, java.lang.String outputFlag, java.lang.String outputPrefix, java.lang.String outputName, java.lang.String[] inputResources)
          Returns IManagedCommandLineInfo for source with extension The command line info contains values with build macros resolved to the makefile format.
 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)
          Returns IManagedCommandLineInfo for source with extension The command line info contains values with build macros resolved to the makefile format.
 java.lang.String getBuildArguments()
          Answers a String containing the arguments to be passed to make.
 java.lang.String getBuildArtifactExtension()
          Answers the file extension for the receivers build goal without a separator.
 java.lang.String getBuildArtifactName()
          Returns the name of the artifact to build for the receiver.
 java.lang.String getBuildCommand()
          Answers a String containing the make command invocation for the default configuration.
 java.lang.String getCleanCommand()
          Answers the command needed to remove files on the build machine
 java.lang.String getConfigurationName()
          Answers the name of the default configuration, for example Debug or Release.
 java.lang.String[] getConfigurationNames()
          Answers a String array containing the names of all the configurations defined for the project.
 org.eclipse.cdt.core.model.ICProject getCProject()
           
 IConfiguration getDefaultConfiguration()
          Get the default configuration associated with the receiver
 java.util.Map getDefinedSymbols()
           
 IManagedDependencyGeneratorType getDependencyGenerator(java.lang.String sourceExtension)
           
 java.lang.String getFlagsForConfiguration(java.lang.String extension)
          Returns a String containing the flags, including those overridden by the user, for the tool in the configuration defined by the argument.
 java.lang.String getFlagsForSource(java.lang.String extension)
          Returns a String containing the flags, including those overridden by the user, for the tool that handles the type of source file defined by the argument.
 java.lang.String[] getIncludePaths()
           
 java.lang.String[] getLibsForConfiguration(java.lang.String extension)
          Answers the libraries the project links in.
 org.eclipse.cdt.core.model.IPathEntry[] getManagedBuildBuiltIns()
          Obtain all possible Managed build built-ins
 org.eclipse.cdt.core.model.IPathEntry[] getManagedBuildBuiltIns(int entryType)
           
 org.eclipse.cdt.core.model.IPathEntry[] getManagedBuildValues()
          Obtain all possible Managed build values
 org.eclipse.cdt.core.model.IPathEntry[] getManagedBuildValues(int entryType)
           
 IManagedProject getManagedProject()
          Returns the ManagedProject associated with this build info
 java.lang.String getOutputExtension(java.lang.String resourceExtension)
          Answers the extension that will be built by the current configuration for the extension passed in the argument or null.
 java.lang.String getOutputFlag(java.lang.String outputExt)
          Answers the flag to be passed to the build tool to produce a specific output or an empty String if there is no special flag.
 java.lang.String getOutputPrefix(java.lang.String outputExtension)
          Answers the prefix that should be prepended to the name of the build artifact.
 org.eclipse.core.resources.IResource getOwner()
           
 java.lang.String getPostannouncebuildStep()
          Answers the display string associated with the postbuild step for the default configuration
 java.lang.String getPostbuildStep()
          Answers the postbuild step for the default configuration
 java.lang.String getPreannouncebuildStep()
          Answers the display string associated with the prebuild step for the default configuration
 java.lang.String getPrebuildStep()
          Answers the prebuild step for the default configuration
 IConfiguration getSelectedConfiguration()
          Returns the currently selected configuration.
 ITarget getTarget(java.lang.String id)
          Get the target specified in the argument.
 java.util.List getTargets()
          Get all of the targets associated with the receiver.
 java.lang.String getToolFlagsForConfiguration(java.lang.String extension, org.eclipse.core.runtime.IPath inputLocation, org.eclipse.core.runtime.IPath outputLocation)
          Returns a String containing the flags, including those overridden by the user, for the tool in the configuration defined by the argument.
 java.lang.String getToolFlagsForSource(java.lang.String extension, org.eclipse.core.runtime.IPath inputLocation, org.eclipse.core.runtime.IPath outputLocation)
          Returns a String containing the flags, including those overridden by the user, for the tool that handles the type of source file defined by the argument.
 java.lang.String getToolForConfiguration(java.lang.String extension)
          Returns a String containing the command-line invocation for the tool associated with the output extension.
 java.lang.String getToolForSource(java.lang.String sourceExtension)
          Returns a String containing the command-line invocation for the tool associated with the source extension.
 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.
 java.lang.String[] getUserObjectsForConfiguration(java.lang.String extension)
          Answers a String array containing the contents of the user objects option, if one is defined for the target.
 java.lang.String getVersion()
          Answers the version of the build information in the format
 void initializePathEntries()
           
 boolean isContainerInited()
           
 boolean isDirty()
          Answers true if the build model has been changed by the user.
 boolean isHeaderFile(java.lang.String ext)
          Answers true if the extension matches one of the special file extensions the tools for the configuration consider to be a header file.
 boolean isReadOnly()
          Gets the read only status of Managed Build Info
 boolean isValid()
          Gets the "valid" status of Managed Build Info.
 boolean needsRebuild()
          Answers whether the receiver has been changed and requires the project to be rebuilt.
 void removeTarget(java.lang.String id)
           
 void serializeLegacy(org.w3c.dom.Document doc, org.w3c.dom.Element element)
          Write the contents of the build model to the persistent store specified in the argument.
 void setContainerInited(boolean bInited)
           
 void setDefaultConfiguration(IConfiguration configuration)
          Set the primary configuration for the receiver.
 boolean setDefaultConfiguration(java.lang.String configName)
           
 void setDirty(boolean isDirty)
          Sets the dirty flag for the build model to the value of the argument.
 void setManagedProject(IManagedProject managedProject)
          Sets the ManagedProject associated with this build info
 void setReadOnly(boolean readOnly)
          sets the read only status of Managed Build Info
 void setRebuildState(boolean rebuild)
          Sets the rebuild state in the receiver to the value of the argument.
 void setSelectedConfiguration(IConfiguration config)
          Sets the currently selected configuration.
 void setValid(boolean isValid)
          Sets the valid flag for the build model to the value of the argument.
 void setVersion(java.lang.String version)
           
 java.lang.String toString()
           
 void updateOwner(org.eclipse.core.resources.IResource resource)
          Sets the owner of the receiver to be the IResource specified in the argument.
 void updateRevision(java.lang.String revision)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

containerEntry

public static final org.eclipse.cdt.core.model.IContainerEntry containerEntry

MAJOR_SEPERATOR

public static final java.lang.String MAJOR_SEPERATOR
See Also:
Constant Field Values

MINOR_SEPERATOR

public static final java.lang.String MINOR_SEPERATOR
See Also:
Constant Field Values
Constructor Detail

ManagedBuildInfo

public ManagedBuildInfo(org.eclipse.core.resources.IResource owner)
Basic contructor used when the project is brand new.

Parameters:
owner -

ManagedBuildInfo

public ManagedBuildInfo(org.eclipse.core.resources.IResource owner,
                        org.eclipse.cdt.core.settings.model.ICStorageElement element,
                        boolean loadConfigs,
                        java.lang.String managedBuildRevision)
Reads the build information from the project file and creates the internal representation of the build settings for the project.

Parameters:
owner -
element -
managedBuildRevision -
Method Detail

setManagedProject

public void setManagedProject(IManagedProject managedProject)
Description copied from interface: IManagedBuildInfo
Sets the ManagedProject associated with this build info

Specified by:
setManagedProject in interface IManagedBuildInfo

getManagedProject

public IManagedProject getManagedProject()
Description copied from interface: IManagedBuildInfo
Returns the ManagedProject associated with this build info

Specified by:
getManagedProject in interface IManagedBuildInfo
Returns:
IManagedProject

buildsFileType

public boolean buildsFileType(java.lang.String srcExt)
Description copied from interface: IManagedBuildInfo
Answers true if the build system knows how to build a file with the extension passed in the argument.

Specified by:
buildsFileType in interface IManagedBuildInfo
Returns:

getBuildArtifactExtension

public java.lang.String getBuildArtifactExtension()
Description copied from interface: IManagedBuildInfo
Answers the file extension for the receivers build goal without a separator.

Specified by:
getBuildArtifactExtension in interface IManagedBuildInfo
Returns:
the extension or an empty string if none is defined

getBuildArtifactName

public java.lang.String getBuildArtifactName()
Description copied from interface: IManagedBuildInfo
Returns the name of the artifact to build for the receiver.

Specified by:
getBuildArtifactName in interface IManagedBuildInfo
Returns:

getCleanCommand

public java.lang.String getCleanCommand()
Description copied from interface: IManagedBuildInfo
Answers the command needed to remove files on the build machine

Specified by:
getCleanCommand in interface IManagedBuildInfo
Returns:

getConfigurationName

public java.lang.String getConfigurationName()
Description copied from interface: IManagedBuildInfo
Answers the name of the default configuration, for example Debug or Release.

Specified by:
getConfigurationName in interface IManagedBuildInfo
Returns:

getConfigurationNames

public java.lang.String[] getConfigurationNames()
Description copied from interface: IManagedBuildInfo
Answers a String array containing the names of all the configurations defined for the project.

Specified by:
getConfigurationNames in interface IManagedBuildInfo
Returns:

getCProject

public org.eclipse.cdt.core.model.ICProject getCProject()

getDefaultConfiguration

public IConfiguration getDefaultConfiguration()
Description copied from interface: IManagedBuildInfo
Get the default configuration associated with the receiver

Specified by:
getDefaultConfiguration in interface IManagedBuildInfo
Returns:

getDefinedSymbols

public java.util.Map getDefinedSymbols()
Specified by:
getDefinedSymbols in interface org.eclipse.cdt.core.parser.IScannerInfo

getDependencyGenerator

public IManagedDependencyGeneratorType getDependencyGenerator(java.lang.String sourceExtension)
Specified by:
getDependencyGenerator in interface IManagedBuildInfo
Returns:

getFlagsForSource

public java.lang.String getFlagsForSource(java.lang.String extension)
Description copied from interface: IManagedBuildInfo
Returns a String containing the flags, including those overridden by the user, for the tool that handles the type of source file defined by the argument. The string contains build macros resolved to the makefile format. That is if a user has chosen to expand all macros in the buildfile, the string contains all macro references resolved, otherwise, if a user has chosen to keep the environment build macros unresolved, the string contains the environment macro references converted to the buildfile variable format, all other macro references are resolved

Specified by:
getFlagsForSource in interface IManagedBuildInfo
Returns:

getToolFlagsForSource

public java.lang.String getToolFlagsForSource(java.lang.String extension,
                                              org.eclipse.core.runtime.IPath inputLocation,
                                              org.eclipse.core.runtime.IPath outputLocation)
Description copied from interface: IManagedBuildInfo
Returns a String containing the flags, including those overridden by the user, for the tool that handles the type of source file defined by the argument. The string contains build macros resolved to the makefile format. That is if a user has chosen to expand all macros in the buildfile, the string contains all macro references resolved, otherwise, if a user has chosen to keep the environment build macros unresolved, the string contains the environment macro references converted to the buildfile variable format, all other macro references are resolved

Specified by:
getToolFlagsForSource in interface IManagedBuildInfo
Returns:

getFlagsForConfiguration

public java.lang.String getFlagsForConfiguration(java.lang.String extension)
Description copied from interface: IManagedBuildInfo
Returns a String containing the flags, including those overridden by the user, for the tool in the configuration defined by the argument. The string contains build macros resolved to the makefile format. That is if a user has chosen to expand all macros in the buildfile, the string contains all macro references resolved, otherwise, if a user has chosen to keep the environment build macros unresolved, the string contains the environment macro references converted to the buildfile variable format, all other macro references are resolved

Specified by:
getFlagsForConfiguration in interface IManagedBuildInfo
Returns:

getToolFlagsForConfiguration

public java.lang.String getToolFlagsForConfiguration(java.lang.String extension,
                                                     org.eclipse.core.runtime.IPath inputLocation,
                                                     org.eclipse.core.runtime.IPath outputLocation)
Description copied from interface: IManagedBuildInfo
Returns a String containing the flags, including those overridden by the user, for the tool in the configuration defined by the argument. The string contains build macros resolved to the makefile format. That is if a user has chosen to expand all macros in the buildfile, the string contains all macro references resolved, otherwise, if a user has chosen to keep the environment build macros unresolved, the string contains the environment macro references converted to the buildfile variable format, all other macro references are resolved

Specified by:
getToolFlagsForConfiguration in interface IManagedBuildInfo
Returns:

getIncludePaths

public java.lang.String[] getIncludePaths()
Specified by:
getIncludePaths in interface org.eclipse.cdt.core.parser.IScannerInfo

getLibsForConfiguration

public java.lang.String[] getLibsForConfiguration(java.lang.String extension)
Description copied from interface: IManagedBuildInfo
Answers the libraries the project links in.

Specified by:
getLibsForConfiguration in interface IManagedBuildInfo
Returns:

getBuildArguments

public java.lang.String getBuildArguments()
Description copied from interface: IManagedBuildInfo
Answers a String containing the arguments to be passed to make. For example, if the user has selected a build that keeps going on error, the answer would contain {"-k"}.

Specified by:
getBuildArguments in interface IManagedBuildInfo
Returns:
String

getBuildCommand

public java.lang.String getBuildCommand()
Description copied from interface: IManagedBuildInfo
Answers a String containing the make command invocation for the default configuration.

Specified by:
getBuildCommand in interface IManagedBuildInfo

getPrebuildStep

public java.lang.String getPrebuildStep()
Description copied from interface: IManagedBuildInfo
Answers the prebuild step for the default configuration

Specified by:
getPrebuildStep in interface IManagedBuildInfo
Returns:
String

getPostbuildStep

public java.lang.String getPostbuildStep()
Description copied from interface: IManagedBuildInfo
Answers the postbuild step for the default configuration

Specified by:
getPostbuildStep in interface IManagedBuildInfo
Returns:
String

getPreannouncebuildStep

public java.lang.String getPreannouncebuildStep()
Description copied from interface: IManagedBuildInfo
Answers the display string associated with the prebuild step for the default configuration

Specified by:
getPreannouncebuildStep in interface IManagedBuildInfo
Returns:
String

getPostannouncebuildStep

public java.lang.String getPostannouncebuildStep()
Description copied from interface: IManagedBuildInfo
Answers the display string associated with the postbuild step for the default configuration

Specified by:
getPostannouncebuildStep in interface IManagedBuildInfo
Returns:
String

getOutputExtension

public java.lang.String getOutputExtension(java.lang.String resourceExtension)
Description copied from interface: IManagedBuildInfo
Answers the extension that will be built by the current configuration for the extension passed in the argument or null.

Specified by:
getOutputExtension in interface IManagedBuildInfo
Returns:

getOutputFlag

public java.lang.String getOutputFlag(java.lang.String outputExt)
Description copied from interface: IManagedBuildInfo
Answers the flag to be passed to the build tool to produce a specific output or an empty String if there is no special flag. For example, the GCC tools use the '-o' flag to produce a named output, for example gcc -c foo.c -o foo.o

Specified by:
getOutputFlag in interface IManagedBuildInfo
Returns:

getOutputPrefix

public java.lang.String getOutputPrefix(java.lang.String outputExtension)
Description copied from interface: IManagedBuildInfo
Answers the prefix that should be prepended to the name of the build artifact. For example, a library foo, should have the prefix 'lib' and the extension '.a', so the final goal would be 'libfoo.a'

Specified by:
getOutputPrefix in interface IManagedBuildInfo
Returns:
the prefix or an empty string

getOwner

public org.eclipse.core.resources.IResource getOwner()
Returns:

getToolForSource

public java.lang.String getToolForSource(java.lang.String sourceExtension)
Description copied from interface: IManagedBuildInfo
Returns a String containing the command-line invocation for the tool associated with the source extension.

Specified by:
getToolForSource in interface IManagedBuildInfo
Parameters:
sourceExtension - the file extension of the file to be built
Returns:
a String containing the command line invocation for the tool

getToolForConfiguration

public java.lang.String getToolForConfiguration(java.lang.String extension)
Description copied from interface: IManagedBuildInfo
Returns a String containing the command-line invocation for the tool associated with the output extension.

Specified by:
getToolForConfiguration in interface IManagedBuildInfo
Parameters:
extension - the file extension of the output file
Returns:
a String containing the command line invocation for the tool

getToolFromInputExtension

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

Specified by:
getToolFromInputExtension in interface IManagedBuildInfo
Parameters:
sourceExtension - the file extension of the input file
Returns:
ITool

getToolFromOutputExtension

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

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

generateCommandLineInfo

public IManagedCommandLineInfo generateCommandLineInfo(java.lang.String sourceExtension,
                                                       java.lang.String[] flags,
                                                       java.lang.String outputFlag,
                                                       java.lang.String outputPrefix,
                                                       java.lang.String outputName,
                                                       java.lang.String[] inputResources)
Description copied from interface: IManagedBuildInfo
Returns IManagedCommandLineInfo for source with extension The command line info contains values with build macros resolved to the makefile format. That is if a user has chosen to expand all macros in the buildfile, command line info contains values contain all macro references resolved, otherwise, if a user has chosen to keep the environment build macros unresolved, the command line info contains values contain the environment macro references converted to the buildfile variable format, all other macro references are resolved

Specified by:
generateCommandLineInfo in interface IManagedBuildInfo
Parameters:
sourceExtension - - source extension
flags - - build flags
outputFlag - - output flag for build tool
Returns:
IManagedCommandLineInfo

generateToolCommandLineInfo

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)
Description copied from interface: IManagedBuildInfo
Returns IManagedCommandLineInfo for source with extension The command line info contains values with build macros resolved to the makefile format. That is if a user has chosen to expand all macros in the buildfile, command line info contains values contain all macro references resolved, otherwise, if a user has chosen to keep the environment build macros unresolved, the command line info contains values contain the environment macro references converted to the buildfile variable format, all other macro references are resolved

Specified by:
generateToolCommandLineInfo in interface IManagedBuildInfo
Returns:

getUserObjectsForConfiguration

public java.lang.String[] getUserObjectsForConfiguration(java.lang.String extension)
Description copied from interface: IManagedBuildInfo
Answers a String array containing the contents of the user objects option, if one is defined for the target.

Specified by:
getUserObjectsForConfiguration in interface IManagedBuildInfo
Parameters:
extension - the file ecxtension of the build target
Returns:

getVersion

public java.lang.String getVersion()
Description copied from interface: IManagedBuildInfo
Answers the version of the build information in the format

Specified by:
getVersion in interface IManagedBuildInfo
Returns:
a String containing the build information version

initializePathEntries

public void initializePathEntries()

isDirty

public boolean isDirty()
Description copied from interface: IManagedBuildInfo
Answers true if the build model has been changed by the user.

Specified by:
isDirty in interface IManagedBuildInfo
Returns:
boolean

isValid

public boolean isValid()
Description copied from interface: IManagedBuildInfo
Gets the "valid" status of Managed Build Info. Managed Build Info is invalid if the loading of, or conversion to, the Managed Build Info failed.

Specified by:
isValid in interface IManagedBuildInfo
Returns:
true if Managed Build Info is valid, otherwise returns false

isReadOnly

public boolean isReadOnly()
Description copied from interface: IManagedBuildInfo
Gets the read only status of Managed Build Info

Specified by:
isReadOnly in interface IManagedBuildInfo
Returns:
true if Managed Build Info is read only otherwise returns false

isHeaderFile

public boolean isHeaderFile(java.lang.String ext)
Description copied from interface: IManagedBuildInfo
Answers true if the extension matches one of the special file extensions the tools for the configuration consider to be a header file.

Specified by:
isHeaderFile in interface IManagedBuildInfo
Parameters:
ext - the file extension of the resource
Returns:
boolean

isContainerInited

public boolean isContainerInited()
Returns:
boolean

needsRebuild

public boolean needsRebuild()
Description copied from interface: IManagedBuildInfo
Answers whether the receiver has been changed and requires the project to be rebuilt. When a project is first created, it is assumed that the user will need it to be fully rebuilt. However only option and tool command changes will trigger the build information for an existing project to require a rebuild.

Clients can reset the state to force or clear the rebuild status using setRebuildState()

Specified by:
needsRebuild in interface IManagedBuildInfo
Returns:
true if the resource managed by the receiver needs to be rebuilt
See Also:
ManagedBuildInfo#setRebuildState(boolean)

serializeLegacy

public void serializeLegacy(org.w3c.dom.Document doc,
                            org.w3c.dom.Element element)
Write the contents of the build model to the persistent store specified in the argument.

Parameters:
doc -
element -

setDefaultConfiguration

public void setDefaultConfiguration(IConfiguration configuration)
Description copied from interface: IManagedBuildInfo
Set the primary configuration for the receiver.

Specified by:
setDefaultConfiguration in interface IManagedBuildInfo
Parameters:
configuration - The IConfiguration that will be used as the default for all building.

setDefaultConfiguration

public boolean setDefaultConfiguration(java.lang.String configName)
Specified by:
setDefaultConfiguration in interface IManagedBuildInfo
Returns:

setDirty

public void setDirty(boolean isDirty)
Description copied from interface: IManagedBuildInfo
Sets the dirty flag for the build model to the value of the argument.

Specified by:
setDirty in interface IManagedBuildInfo

setValid

public void setValid(boolean isValid)
Description copied from interface: IManagedBuildInfo
Sets the valid flag for the build model to the value of the argument.

Specified by:
setValid in interface IManagedBuildInfo

setReadOnly

public void setReadOnly(boolean readOnly)
Description copied from interface: IManagedBuildInfo
sets the read only status of Managed Build Info

Specified by:
setReadOnly in interface IManagedBuildInfo

setRebuildState

public void setRebuildState(boolean rebuild)
Description copied from interface: IManagedBuildInfo
Sets the rebuild state in the receiver to the value of the argument. This is a potentially expensive option, so setting it to true should only be done if a project resource or setting has been modified in a way that would invalidate the previous build.

Specified by:
setRebuildState in interface IManagedBuildInfo

setVersion

public void setVersion(java.lang.String version)
Parameters:
version -

setContainerInited

public void setContainerInited(boolean bInited)
Parameters:
boolean -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

updateOwner

public void updateOwner(org.eclipse.core.resources.IResource resource)
Sets the owner of the receiver to be the IResource specified in the argument.

Parameters:
resource -

getSelectedConfiguration

public IConfiguration getSelectedConfiguration()
Description copied from interface: IManagedBuildInfo
Returns the currently selected configuration. This is used while the project property pages are displayed

Specified by:
getSelectedConfiguration in interface IManagedBuildInfo
Returns:
IConfiguration

setSelectedConfiguration

public void setSelectedConfiguration(IConfiguration config)
Description copied from interface: IManagedBuildInfo
Sets the currently selected configuration. This is used while the project property pages are displayed

Specified by:
setSelectedConfiguration in interface IManagedBuildInfo
Parameters:
config - the user selection

addTarget

public void addTarget(ITarget target)
Description copied from interface: IManagedBuildInfo
Add a new target to the build information for the receiver

Specified by:
addTarget in interface IManagedBuildInfo

removeTarget

public void removeTarget(java.lang.String id)
Specified by:
removeTarget in interface IManagedBuildInfo

getTarget

public ITarget getTarget(java.lang.String id)
Description copied from interface: IManagedBuildInfo
Get the target specified in the argument.

Specified by:
getTarget in interface IManagedBuildInfo
Returns:

getTargets

public java.util.List getTargets()
Description copied from interface: IManagedBuildInfo
Get all of the targets associated with the receiver.

Specified by:
getTargets in interface IManagedBuildInfo
Returns:

getManagedBuildValues

public org.eclipse.cdt.core.model.IPathEntry[] getManagedBuildValues()
Obtain all possible Managed build values

Returns:

getManagedBuildBuiltIns

public org.eclipse.cdt.core.model.IPathEntry[] getManagedBuildBuiltIns()
Obtain all possible Managed build built-ins

Returns:

getManagedBuildValues

public org.eclipse.cdt.core.model.IPathEntry[] getManagedBuildValues(int entryType)
Parameters:
entryType -
Returns:

getManagedBuildBuiltIns

public org.eclipse.cdt.core.model.IPathEntry[] getManagedBuildBuiltIns(int entryType)
Parameters:
entryType -
Returns:

updateRevision

public void updateRevision(java.lang.String revision)