|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.cdt.internal.core.InternalCExtension
org.eclipse.cdt.core.AbstractCExtension
org.eclipse.cdt.managedbuilder.core.ManagedBuildManager
public class ManagedBuildManager
This is the main entry point for getting at the build information for the managed build system.
Field Summary | |
---|---|
static java.lang.String |
BUILD_ARTEFACT_TYPE_PROPERTY_EXE
|
static java.lang.String |
BUILD_ARTEFACT_TYPE_PROPERTY_ID
|
static java.lang.String |
BUILD_ARTEFACT_TYPE_PROPERTY_SHAREDLIB
|
static java.lang.String |
BUILD_ARTEFACT_TYPE_PROPERTY_STATICLIB
|
static java.lang.String |
BUILD_TYPE_PROPERTY_DEBUG
|
static java.lang.String |
BUILD_TYPE_PROPERTY_ID
|
static java.lang.String |
BUILD_TYPE_PROPERTY_RELEASE
|
static java.lang.String |
CFG_DATA_PROVIDER_ID
|
static int |
ERROR_CATEGORY
|
static int |
ERROR_FILTER
|
static java.lang.String |
EXTENSION_POINT_ID
|
static java.lang.String |
EXTENSION_POINT_ID_V2
|
static java.lang.String |
INTERFACE_IDENTITY
|
static java.lang.String |
INTERNAL_BUILDER_ID
|
static java.lang.String |
MANIFEST_ERROR_DUPLICATE
|
static java.lang.String |
MANIFEST_ERROR_ICON
|
static java.lang.String |
MANIFEST_ERROR_RESOLVING
|
static java.util.SortedMap |
projectTypeMap
|
static java.lang.String |
SETTINGS_FILE_NAME
|
Constructor Summary | |
---|---|
ManagedBuildManager()
|
Method Summary | |
---|---|
static void |
addExtensionBuilder(Builder builder)
Adds a Builder that is is specified in the manifest to the build system. |
static void |
addExtensionConfiguration(Configuration configuration)
Adds a Configuration that is is specified in the manifest to the build system. |
static void |
addExtensionInputType(InputType inputType)
Adds an InputType that is is specified in the manifest to the build system. |
static void |
addExtensionOption(Option option)
Adds a Option that is is specified in the manifest to the build system. |
static void |
addExtensionOptionCategory(OptionCategory optionCategory)
Adds a OptionCategory that is is specified in the manifest to the build system. |
static void |
addExtensionOutputType(OutputType outputType)
Adds an OutputType that is is specified in the manifest to the build system. |
static void |
addExtensionProjectType(ProjectType projectType)
Adds a ProjectType that is is specified in the manifest to the build system. |
static void |
addExtensionResourceConfiguration(ResourceConfiguration resourceConfiguration)
Adds a Resource Configuration that is is specified in the manifest to the build system. |
static void |
addExtensionTarget(Target target)
Adds a Target that is is specified in the manifest to the build system. |
static void |
addExtensionTargetPlatform(TargetPlatform targetPlatform)
Adds a TargetPlatform that is is specified in the manifest to the build system. |
static void |
addExtensionTool(Tool tool)
Adds a tool that is is specified in the manifest to the build system. |
static void |
addExtensionToolChain(ToolChain toolChain)
Adds a ToolChain that is is specified in the manifest to the build system. |
static void |
buildConfigurations(IConfiguration[] configs,
IBuilder builder,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
static void |
buildConfigurations(IConfiguration[] configs,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
static java.lang.String |
calculateChildId(java.lang.String superId,
java.lang.String suffix)
|
static org.eclipse.core.runtime.IPath |
calculateRelativePath(org.eclipse.core.runtime.IPath container,
org.eclipse.core.runtime.IPath contents)
Calculate a relative path given the full path to a folder and a file |
static boolean |
canGetBuildInfo(org.eclipse.core.resources.IResource resource)
Determines if the managed build information for the argument can be found. |
static IBuildObject |
convert(IBuildObject buildObj,
java.lang.String toId,
boolean userhasConfirmed)
|
static IBuilder |
createBuilderForEclipseBuilder(IConfiguration cfg,
java.lang.String eclipseBuilderID)
|
static IBuilder[] |
createBuilders(org.eclipse.core.resources.IProject project,
java.util.Map args)
|
static ManagedBuildInfo |
createBuildInfo(org.eclipse.core.resources.IResource resource)
|
static IBuilder |
createCustomBuilder(IConfiguration cfg,
IBuilder base)
|
static IBuilder |
createCustomBuilder(IConfiguration cfg,
java.lang.String builderId)
|
static IManagedProject |
createManagedProject(org.eclipse.core.resources.IResource resource,
IProjectType parent)
Creates a new project instance for the resource based on the parent project type. |
static ITarget |
createTarget(org.eclipse.core.resources.IResource resource,
ITarget parentTarget)
Creates a new target for the resource based on the parentTarget. |
static int |
entryKindToOptionType(int kind)
|
static int |
entryKindToUndefOptionType(int kind)
|
static IBuilder[] |
findIdenticalBuilders(IBuilder b)
|
static IToolChain[] |
findIdenticalToolChains(IToolChain tc)
|
static ITool[] |
findIdenticalTools(ITool tool)
|
static java.lang.String |
fullPathToLocation(java.lang.String path)
|
static IManagedBuilderMakefileGenerator |
getBuildfileGenerator(IConfiguration config)
|
static org.eclipse.core.runtime.IPath |
getBuildFullPath(IConfiguration cfg,
IBuilder builder)
|
static IManagedBuildInfo |
getBuildInfo(org.eclipse.core.resources.IResource resource)
Finds, but does not create, the managed build information for the argument. |
static IManagedBuildInfo |
getBuildInfo(org.eclipse.core.resources.IResource resource,
boolean forceLoad)
Finds, but does not create, the managed build information for the argument. |
static IManagedBuildInfo |
getBuildInfoLegacy(org.eclipse.core.resources.IProject project)
|
static org.eclipse.core.runtime.PluginVersionIdentifier |
getBuildInfoVersion()
Answers the current version of the managed builder plugin. |
static org.eclipse.core.runtime.IPath |
getBuildLocation(IConfiguration cfg,
IBuilder builder)
|
static IBuildMacroProvider |
getBuildMacroProvider()
Returns the instance of the Build Macro Provider |
static IBuildPropertyManager |
getBuildPropertyManager()
|
static IManagedCommandLineGenerator |
getCommandLineGenerator(IConfiguration config,
java.lang.String toolId)
load tool provider defined or default (if not found) command line generator special for selected tool |
static IManagedConfigElement |
getConfigElement(IBuildObject buildObj)
This method public for implementation reasons. |
static IConfiguration |
getConfigurationForDescription(org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfgDes)
|
static java.util.Map |
getConversionElements(IBuildObject buildObj)
|
static IProjectType[] |
getDefinedProjectTypes()
Returns the list of project types that are defined by this project, projects referenced by this project, and by the extensions. |
static org.eclipse.cdt.core.settings.model.ICConfigurationDescription |
getDescriptionForConfiguration(IConfiguration cfg)
|
static IEnvironmentVariableProvider |
getEnvironmentVariableProvider()
Returns the instance of the Environment Variable Provider |
static IBuilder |
getExtensionBuilder(IBuilder builder)
|
static IBuilder |
getExtensionBuilder(java.lang.String id)
Returns the builder from the manifest with the ID specified in the argument or null . |
static java.util.SortedMap |
getExtensionBuilderMap()
|
static IConfiguration |
getExtensionConfiguration(java.lang.String id)
Returns the configuration from the manifest with the ID specified in the argument or null . |
static IConfiguration[] |
getExtensionConfigurations(IToolChain tChain,
IProjectType type)
|
static IConfiguration[] |
getExtensionConfigurations(IToolChain tChain,
java.lang.String propertyType,
java.lang.String propertyValue)
|
static IInputType |
getExtensionInputType(IInputType inType)
|
static IInputType |
getExtensionInputType(java.lang.String id)
Returns the InputType from the manifest with the ID specified in the argument or null . |
static IOption |
getExtensionOption(java.lang.String id)
Returns the option from the manifest with the ID specified in the argument or null . |
static IOutputType |
getExtensionOutputType(java.lang.String id)
Returns the OutputType from the manifest with the ID specified in the argument or null . |
static IProjectType |
getExtensionProjectType(java.lang.String id)
Returns the project type from the manifest with the ID specified in the argument or null . |
static java.util.SortedMap |
getExtensionProjectTypeMap()
|
static IResourceConfiguration |
getExtensionResourceConfiguration(java.lang.String id)
Returns the resource configuration from the manifest with the ID specified in the argument or null . |
static IToolChain[] |
getExtensionsToolChains(java.lang.String propertyType,
java.lang.String propertyValue)
|
static IToolChain[] |
getExtensionsToolChains(java.lang.String propertyType,
java.lang.String propertyValue,
boolean supportedPropsOnly)
|
static ITarget |
getExtensionTarget(java.lang.String id)
Returns the target from the manifest with the ID specified in the argument or null - CDT V2.0 object model. |
static ITargetPlatform |
getExtensionTargetPlatform(java.lang.String id)
Returns the target platform from the manifest with the ID specified in the argument or null . |
static ITool |
getExtensionTool(ITool tool)
|
static ITool |
getExtensionTool(java.lang.String id)
Returns the tool from the manifest with the ID specified in the argument or null . |
static IToolChain |
getExtensionToolChain(IToolChain tc)
|
static IToolChain |
getExtensionToolChain(java.lang.String id)
Returns the tool-chain from the manifest with the ID specified in the argument or null . |
static java.util.SortedMap |
getExtensionToolChainMap()
|
static IToolChain[] |
getExtensionToolChains(IProjectType type)
|
static java.util.SortedMap |
getExtensionToolMap()
|
static IConfiguration |
getFirstExtensionConfiguration(IToolChain tChain)
|
static java.lang.String |
getIdFromIdAndVersion(java.lang.String idAndVersion)
If the input to this function contains 'id & a valid version', it returns only the 'id' part Otherwise it returns the received input back. |
static IBuilder |
getInternalBuilder()
|
static IManagedBuildInfo |
getOldStyleBuildInfo(org.eclipse.core.resources.IProject project)
|
static IConfiguration |
getPreferenceConfiguration(boolean write)
|
static IProjectType |
getProjectType(java.lang.String id)
Returns the project type with the passed in ID |
static int |
getRandomNumber()
Returns the next random number. |
static IBuilder |
getRealBuilder(IBuilder builder)
|
static IBuilder[] |
getRealBuilders()
|
static ITool |
getRealTool(ITool tool)
|
static IToolChain |
getRealToolChain(IToolChain tc)
|
static IToolChain[] |
getRealToolChains()
|
static ITool[] |
getRealTools()
|
static IConfiguration[] |
getReferencedConfigurations(IConfiguration config)
Returns the configurations referenced by this configuration. |
static java.lang.String |
getScannerInfoProfileId(IConfiguration config)
Targets may have a scanner config discovery profile defined that knows how to discover built-in compiler defines and includes search paths. |
org.eclipse.cdt.core.parser.IScannerInfo |
getScannerInformation(org.eclipse.core.resources.IResource resource)
The receiver will answer the current state of the build information for the resource specified in the argument. |
static IConfiguration |
getSelectedConfiguration(org.eclipse.core.resources.IProject project)
Gets the currently selected target. |
static ITarget |
getTarget(org.eclipse.core.resources.IResource resource,
java.lang.String id)
Answers the result of a best-effort search to find a target with the specified ID, or null if one is not found. |
static ITarget[] |
getTargets(org.eclipse.core.resources.IResource resource)
Returns the targets owned by this project. |
static java.net.URL |
getURLInBuildDefinitions(DefaultManagedConfigElement element,
org.eclipse.core.runtime.IPath path)
Get the full URL for a path that is relative to the plug-in in which .buildDefinitions are defined |
static org.osgi.framework.Version |
getVersion()
|
static java.lang.String |
getVersionFromIdAndVersion(java.lang.String idAndVersion)
Returns the version, if 'id' contains a valid version Returns null if 'id' does not contain a valid version Returns null if 'id' does not contain a version |
static boolean |
hasTargetConversionElements(IBuildObject buildObj)
|
static org.eclipse.core.runtime.IStatus |
initBuildInfoContainer(org.eclipse.core.resources.IResource resource)
|
static void |
initializePathEntries(IConfiguration config,
IOption option)
|
static void |
initializePathEntries(IResourceConfiguration resConfig,
IOption option)
|
static java.lang.String |
locationToFullPath(java.lang.String path)
|
static boolean |
manages(org.eclipse.core.resources.IResource resource)
|
static int |
optionTypeToEntryKind(int type)
|
static int |
optionUndefTypeToEntryKind(int type)
|
static void |
OptionValidError(int errorId,
java.lang.String id)
|
static void |
OptionValueHandlerError(java.lang.String attribute,
java.lang.String id)
|
static void |
OutputDuplicateIdError(java.lang.String type,
java.lang.String id)
|
static void |
OutputIconError(java.lang.String iconLocation)
|
static void |
OutputManifestError(java.lang.String message)
|
static void |
OutputResolveError(java.lang.String attribute,
java.lang.String lookupId,
java.lang.String type,
java.lang.String id)
|
static void |
performValueHandlerEvent(IConfiguration config,
int event)
Send event to value handlers of relevant configuration including all its child resource configurations, if they exist. |
static void |
performValueHandlerEvent(IConfiguration config,
int event,
boolean doChildren)
Send event to value handlers of relevant configuration. |
static void |
performValueHandlerEvent(IResourceInfo config,
int event)
Send event to value handlers of relevant configuration. |
static void |
putConfigElement(IBuildObject buildObj,
IManagedConfigElement configElement)
This method public for implementation reasons. |
static void |
removeBuildInfo(org.eclipse.core.resources.IResource resource)
|
static void |
resetConfiguration(org.eclipse.core.resources.IProject project,
IConfiguration configuration)
Resets the build information for the project and configuration specified in the arguments. |
static void |
resetOptionSettings(IResourceInfo rcInfo)
|
static void |
resetResourceConfiguration(org.eclipse.core.resources.IProject project,
IResourceConfiguration resConfig)
|
static void |
resortBuilders()
|
static void |
resortToolChains()
|
static void |
resortTools()
|
static boolean |
saveBuildInfo(org.eclipse.core.resources.IProject project,
boolean force)
|
static boolean |
saveBuildInfoLegacy(org.eclipse.core.resources.IProject project,
boolean force)
|
static void |
setDefaultConfiguration(org.eclipse.core.resources.IProject project,
IConfiguration newDefault)
Sets the default configuration for the project. |
static void |
setLoaddedBuildInfo(org.eclipse.core.resources.IProject project,
IManagedBuildInfo info)
|
static void |
setNewProjectVersion(org.eclipse.core.resources.IProject newProject)
Adds the version of the managed build system to the project specified in the argument. |
static IOption |
setOption(IConfiguration config,
IHoldsOptions holder,
IOption option,
boolean value)
Set the boolean value for an option for a given config. |
static IOption |
setOption(IConfiguration config,
IHoldsOptions holder,
IOption option,
java.lang.String value)
Set the string value for an option for a given config. |
static IOption |
setOption(IConfiguration config,
IHoldsOptions holder,
IOption option,
java.lang.String[] value)
Set the string array value for an option for a given config. |
static IOption |
setOption(IResourceInfo resConfig,
IHoldsOptions holder,
IOption option,
boolean value)
Set the boolean value for an option for a given config. |
static IOption |
setOption(IResourceInfo resConfig,
IHoldsOptions holder,
IOption option,
OptionStringValue[] value)
|
static IOption |
setOption(IResourceInfo resConfig,
IHoldsOptions holder,
IOption option,
java.lang.String value)
Set the string value for an option for a given resource config. |
static IOption |
setOption(IResourceInfo resConfig,
IHoldsOptions holder,
IOption option,
java.lang.String[] value)
Set the string array value for an option for a given resource config. |
static void |
setPreferenceConfiguration(IConfiguration cfg)
|
static void |
setSelectedConfiguration(org.eclipse.core.resources.IProject project,
IConfiguration config)
Sets the currently selected configuration. |
static void |
setToolCommand(IConfiguration config,
ITool tool,
java.lang.String command)
|
static void |
setToolCommand(IResourceConfiguration resConfig,
ITool tool,
java.lang.String command)
|
void |
subscribe(org.eclipse.core.resources.IResource resource,
IScannerInfoChangeListener listener)
The receiver will register the listener specified in the argument to receive change notifications when the information for the IResource it is responsible for changes. |
void |
unsubscribe(org.eclipse.core.resources.IResource resource,
IScannerInfoChangeListener listener)
The receiver will no longer notify the listener specified in the argument when information about the reource it is responsible for changes. |
static void |
updateCoreSettings(IConfiguration cfg)
|
static void |
updateCoreSettings(org.eclipse.core.resources.IProject project)
|
static void |
updateCoreSettings(org.eclipse.core.resources.IProject project,
IConfiguration[] cfgs)
|
static void |
updateCoreSettings(org.eclipse.core.resources.IProject project,
IConfiguration[] cfgs,
boolean avoidSerialization)
|
Methods inherited from class org.eclipse.cdt.core.AbstractCExtension |
---|
getExtensionReference, getProject |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
---|
getAdapter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SETTINGS_FILE_NAME
public static final java.lang.String INTERFACE_IDENTITY
public static final java.lang.String EXTENSION_POINT_ID
public static final java.lang.String EXTENSION_POINT_ID_V2
public static final java.lang.String MANIFEST_ERROR_RESOLVING
public static final java.lang.String MANIFEST_ERROR_DUPLICATE
public static final java.lang.String MANIFEST_ERROR_ICON
public static final int ERROR_CATEGORY
public static final int ERROR_FILTER
public static final java.lang.String BUILD_TYPE_PROPERTY_ID
public static final java.lang.String BUILD_ARTEFACT_TYPE_PROPERTY_ID
public static final java.lang.String BUILD_TYPE_PROPERTY_DEBUG
public static final java.lang.String BUILD_TYPE_PROPERTY_RELEASE
public static final java.lang.String BUILD_ARTEFACT_TYPE_PROPERTY_EXE
public static final java.lang.String BUILD_ARTEFACT_TYPE_PROPERTY_STATICLIB
public static final java.lang.String BUILD_ARTEFACT_TYPE_PROPERTY_SHAREDLIB
public static final java.lang.String CFG_DATA_PROVIDER_ID
public static final java.lang.String INTERNAL_BUILDER_ID
public static java.util.SortedMap projectTypeMap
Constructor Detail |
---|
public ManagedBuildManager()
Method Detail |
---|
public static int getRandomNumber()
public static IProjectType[] getDefinedProjectTypes()
public static IProjectType getProjectType(java.lang.String id)
String
-
public static org.osgi.framework.Version getVersion()
public static java.util.SortedMap getExtensionProjectTypeMap()
public static java.util.SortedMap getExtensionToolChainMap()
public static java.util.SortedMap getExtensionToolMap()
public static java.util.SortedMap getExtensionBuilderMap()
public static ITarget[] getTargets(org.eclipse.core.resources.IResource resource)
project
-
public static IProjectType getExtensionProjectType(java.lang.String id)
null
.
id
-
public static IConfiguration getExtensionConfiguration(java.lang.String id)
null
.
id
-
public static IResourceConfiguration getExtensionResourceConfiguration(java.lang.String id)
null
.
id
-
public static IToolChain getExtensionToolChain(java.lang.String id)
null
.
id
-
public static ITool getExtensionTool(java.lang.String id)
null
.
id
-
public static ITargetPlatform getExtensionTargetPlatform(java.lang.String id)
null
.
id
-
public static IBuilder getExtensionBuilder(java.lang.String id)
null
.
id
-
public static IBuilder getExtensionBuilder(IBuilder builder)
public static IOption getExtensionOption(java.lang.String id)
null
.
id
-
public static IInputType getExtensionInputType(java.lang.String id)
null
.
id
-
public static IOutputType getExtensionOutputType(java.lang.String id)
null
.
id
-
public static ITarget getExtensionTarget(java.lang.String id)
null
- CDT V2.0 object model.
id
-
public static ITarget getTarget(org.eclipse.core.resources.IResource resource, java.lang.String id)
null
if one is not found.
resource
- id
-
public static void setDefaultConfiguration(org.eclipse.core.resources.IProject project, IConfiguration newDefault)
project
- newDefault
- public static void setSelectedConfiguration(org.eclipse.core.resources.IProject project, IConfiguration config)
project
- target
- public static IManagedBuilderMakefileGenerator getBuildfileGenerator(IConfiguration config)
targetId
-
public static IManagedCommandLineGenerator getCommandLineGenerator(IConfiguration config, java.lang.String toolId)
toolId
- - id selected id
public static java.lang.String getScannerInfoProfileId(IConfiguration config)
string
- the unique id of the target to search for
public static IConfiguration getSelectedConfiguration(org.eclipse.core.resources.IProject project)
project
-
public static void initializePathEntries(IConfiguration config, IOption option)
public static void initializePathEntries(IResourceConfiguration resConfig, IOption option)
public static void setNewProjectVersion(org.eclipse.core.resources.IProject newProject)
newProject
- the project to versionpublic static IOption setOption(IConfiguration config, IHoldsOptions holder, IOption option, boolean value)
config
- The configuration the option belongs to.holder
- The holder/parent of the option.option
- The option to set the value for.value
- The boolean that the option should contain after the change.
ITool tool
parameter
has changed to IHoldsOptions holder
. Client code
assuming ITool
as type, will continue to work unchanged.public static IOption setOption(IResourceInfo resConfig, IHoldsOptions holder, IOption option, boolean value)
resConfig
- The resource configuration the option belongs to.holder
- The holder/parent of the option.option
- The option to set the value for.value
- The boolean that the option should contain after the change.
ITool tool
parameter
has changed to IHoldsOptions holder
. Client code
assuming ITool
as type, will continue to work unchanged.public static IOption setOption(IConfiguration config, IHoldsOptions holder, IOption option, java.lang.String value)
config
- The configuration the option belongs to.holder
- The holder/parent of the option.option
- The option to set the value for.value
- The value that the option should contain after the change.
ITool tool
parameter
has changed to IHoldsOptions holder
. Client code
assuming ITool
as type, will continue to work unchanged.public static IOption setOption(IResourceInfo resConfig, IHoldsOptions holder, IOption option, java.lang.String value)
resConfig
- The resource configuration the option belongs to.holder
- The holder/parent of the option.option
- The option to set the value for.value
- The value that the option should contain after the change.
ITool tool
parameter
has changed to IHoldsOptions holder
. Client code
assuming ITool
as type, will continue to work unchanged.public static IOption setOption(IConfiguration config, IHoldsOptions holder, IOption option, java.lang.String[] value)
config
- The configuration the option belongs to.holder
- The holder/parent of the option.option
- The option to set the value for.value
- The values the option should contain after the change.
ITool tool
parameter
has changed to IHoldsOptions holder
. Client code
assuming ITool
as type, will continue to work unchanged.public static IOption setOption(IResourceInfo resConfig, IHoldsOptions holder, IOption option, java.lang.String[] value)
resConfig
- The resource configuration the option belongs to.holder
- The holder/parent of the option.option
- The option to set the value for.value
- The values the option should contain after the change.
ITool tool
parameter
has changed to IHoldsOptions holder
. Client code
assuming ITool
as type, will continue to work unchanged.public static IOption setOption(IResourceInfo resConfig, IHoldsOptions holder, IOption option, OptionStringValue[] value)
public static void setToolCommand(IConfiguration config, ITool tool, java.lang.String command)
config
- tool
- command
- public static void setToolCommand(IResourceConfiguration resConfig, ITool tool, java.lang.String command)
public static boolean saveBuildInfoLegacy(org.eclipse.core.resources.IProject project, boolean force)
public static boolean saveBuildInfo(org.eclipse.core.resources.IProject project, boolean force)
public static void updateCoreSettings(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void updateCoreSettings(IConfiguration cfg) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void updateCoreSettings(org.eclipse.core.resources.IProject project, IConfiguration[] cfgs) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void updateCoreSettings(org.eclipse.core.resources.IProject project, IConfiguration[] cfgs, boolean avoidSerialization) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void removeBuildInfo(org.eclipse.core.resources.IResource resource)
resource
- public static void resetConfiguration(org.eclipse.core.resources.IProject project, IConfiguration configuration)
project
- configuration
- public static void resetResourceConfiguration(org.eclipse.core.resources.IProject project, IResourceConfiguration resConfig)
public static void resetOptionSettings(IResourceInfo rcInfo)
public static void addExtensionProjectType(ProjectType projectType)
projectType
- public static void addExtensionConfiguration(Configuration configuration)
configuration
- public static void addExtensionResourceConfiguration(ResourceConfiguration resourceConfiguration)
resourceConfiguration
- public static void addExtensionToolChain(ToolChain toolChain)
toolChain
- public static void addExtensionTool(Tool tool)
tool
- public static void addExtensionTargetPlatform(TargetPlatform targetPlatform)
targetPlatform
- public static void addExtensionBuilder(Builder builder)
Builder
- public static void addExtensionOption(Option option)
option
- public static void addExtensionOptionCategory(OptionCategory optionCategory)
optionCategory
- public static void addExtensionInputType(InputType inputType)
inputType
- public static void addExtensionOutputType(OutputType outputType)
outputType
- public static void addExtensionTarget(Target target)
target
- public static IManagedProject createManagedProject(org.eclipse.core.resources.IResource resource, IProjectType parent) throws BuildException
resource
- parentTarget
-
ITarget
with settings based on the parent passed in the arguments
BuildException
public static ITarget createTarget(org.eclipse.core.resources.IResource resource, ITarget parentTarget) throws BuildException
resource
- parentTarget
-
ITarget
with settings based on the parent passed in the arguments
BuildException
public static org.eclipse.core.runtime.IStatus initBuildInfoContainer(org.eclipse.core.resources.IResource resource)
resource
-
public static ManagedBuildInfo createBuildInfo(org.eclipse.core.resources.IResource resource)
public static void setLoaddedBuildInfo(org.eclipse.core.resources.IProject project, IManagedBuildInfo info) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static boolean manages(org.eclipse.core.resources.IResource resource)
project
-
public static IManagedBuildInfo getBuildInfo(org.eclipse.core.resources.IResource resource)
resource
- The resource to search for managed build information on.
ManagedBuildManager#initBuildInfo(IResource)
public static IManagedBuildInfo getOldStyleBuildInfo(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static IManagedBuildInfo getBuildInfoLegacy(org.eclipse.core.resources.IProject project)
public static IManagedBuildInfo getBuildInfo(org.eclipse.core.resources.IResource resource, boolean forceLoad)
resource
- The resource to search for managed build information on.forceLoad
- specifies whether the build info should be loadded in case it is not loadded currently.
ManagedBuildManager#initBuildInfo(IResource)
public static boolean canGetBuildInfo(org.eclipse.core.resources.IResource resource)
resource
- The resource to search for managed build information on.
ManagedBuildManager#initBuildInfo(IResource)
public static org.eclipse.core.runtime.PluginVersionIdentifier getBuildInfoVersion()
public static java.net.URL getURLInBuildDefinitions(DefaultManagedConfigElement element, org.eclipse.core.runtime.IPath path)
public org.eclipse.cdt.core.parser.IScannerInfo getScannerInformation(org.eclipse.core.resources.IResource resource)
IScannerInfoProvider
getScannerInformation
in interface IScannerInfoProvider
public void subscribe(org.eclipse.core.resources.IResource resource, IScannerInfoChangeListener listener)
IScannerInfoProvider
IResource
it is responsible for changes.
subscribe
in interface IScannerInfoProvider
public void unsubscribe(org.eclipse.core.resources.IResource resource, IScannerInfoChangeListener listener)
IScannerInfoProvider
unsubscribe
in interface IScannerInfoProvider
public static void putConfigElement(IBuildObject buildObj, IManagedConfigElement configElement)
public static IManagedConfigElement getConfigElement(IBuildObject buildObj)
public static void OptionValidError(int errorId, java.lang.String id)
public static void OptionValueHandlerError(java.lang.String attribute, java.lang.String id)
public static void OutputResolveError(java.lang.String attribute, java.lang.String lookupId, java.lang.String type, java.lang.String id)
public static void OutputDuplicateIdError(java.lang.String type, java.lang.String id)
public static void OutputManifestError(java.lang.String message)
public static void OutputIconError(java.lang.String iconLocation)
public static IEnvironmentVariableProvider getEnvironmentVariableProvider()
public static java.lang.String getVersionFromIdAndVersion(java.lang.String idAndVersion)
idAndVersion
-
public static java.lang.String getIdFromIdAndVersion(java.lang.String idAndVersion)
idAndVersion
-
public static IBuildMacroProvider getBuildMacroProvider()
public static void performValueHandlerEvent(IConfiguration config, int event)
IConfiguration
- configuration for which to send the eventevent
- to be sentpublic static void performValueHandlerEvent(IConfiguration config, int event, boolean doChildren)
IConfiguration
- configuration for which to send the eventevent
- to be sentdoChildren
- - if true, also perform the event for all
resource configurations that are children if this configuration.public static void performValueHandlerEvent(IResourceInfo config, int event)
IResourceConfiguration
- configuration for which to send the eventevent
- to be sentpublic static IBuildObject convert(IBuildObject buildObj, java.lang.String toId, boolean userhasConfirmed)
public static boolean hasTargetConversionElements(IBuildObject buildObj)
public static java.util.Map getConversionElements(IBuildObject buildObj)
public static java.lang.String calculateChildId(java.lang.String superId, java.lang.String suffix)
public static org.eclipse.core.runtime.IPath calculateRelativePath(org.eclipse.core.runtime.IPath container, org.eclipse.core.runtime.IPath contents)
public static IConfiguration getConfigurationForDescription(org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfgDes)
public static int optionTypeToEntryKind(int type)
public static int optionUndefTypeToEntryKind(int type)
public static int entryKindToOptionType(int kind)
public static int entryKindToUndefOptionType(int kind)
public static org.eclipse.cdt.core.settings.model.ICConfigurationDescription getDescriptionForConfiguration(IConfiguration cfg)
public static org.eclipse.core.runtime.IPath getBuildFullPath(IConfiguration cfg, IBuilder builder)
public static java.lang.String locationToFullPath(java.lang.String path)
public static java.lang.String fullPathToLocation(java.lang.String path)
public static org.eclipse.core.runtime.IPath getBuildLocation(IConfiguration cfg, IBuilder builder)
public static IBuilder[] createBuilders(org.eclipse.core.resources.IProject project, java.util.Map args)
public static IBuilder createCustomBuilder(IConfiguration cfg, java.lang.String builderId) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static IBuilder createCustomBuilder(IConfiguration cfg, IBuilder base)
public static IBuilder createBuilderForEclipseBuilder(IConfiguration cfg, java.lang.String eclipseBuilderID) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static IToolChain[] getExtensionToolChains(IProjectType type)
public static IConfiguration[] getExtensionConfigurations(IToolChain tChain, IProjectType type)
public static IConfiguration getFirstExtensionConfiguration(IToolChain tChain)
public static IConfiguration[] getExtensionConfigurations(IToolChain tChain, java.lang.String propertyType, java.lang.String propertyValue)
public static IToolChain[] getRealToolChains()
public static ITool[] getRealTools()
public static IBuilder[] getRealBuilders()
public static IBuilder getRealBuilder(IBuilder builder)
public static ITool getRealTool(ITool tool)
public static IToolChain getExtensionToolChain(IToolChain tc)
public static IToolChain getRealToolChain(IToolChain tc)
public static IToolChain[] findIdenticalToolChains(IToolChain tc)
public static ITool[] findIdenticalTools(ITool tool)
public static IBuilder[] findIdenticalBuilders(IBuilder b)
public static IToolChain[] getExtensionsToolChains(java.lang.String propertyType, java.lang.String propertyValue)
public static IToolChain[] getExtensionsToolChains(java.lang.String propertyType, java.lang.String propertyValue, boolean supportedPropsOnly)
public static void resortToolChains()
public static void resortTools()
public static void resortBuilders()
public static IBuildPropertyManager getBuildPropertyManager()
public static IConfiguration[] getReferencedConfigurations(IConfiguration config)
CoreModelUtil.getReferencedConfigurations()
public static void buildConfigurations(IConfiguration[] configs, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void buildConfigurations(IConfiguration[] configs, IBuilder builder, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static IBuilder getInternalBuilder()
public static ITool getExtensionTool(ITool tool)
public static IInputType getExtensionInputType(IInputType inType)
public static IConfiguration getPreferenceConfiguration(boolean write)
public static void setPreferenceConfiguration(IConfiguration cfg) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |