Package org.eclipse.cdt.core.resources
Class ACBuilder
java.lang.Object
org.eclipse.core.internal.events.InternalBuilder
org.eclipse.core.resources.IncrementalProjectBuilder
org.eclipse.cdt.core.resources.ACBuilder
- All Implemented Interfaces:
IMarkerGenerator
,org.eclipse.core.runtime.IExecutableExtension
public abstract class ACBuilder
extends org.eclipse.core.resources.IncrementalProjectBuilder
implements IMarkerGenerator
-
Field Summary
Fields inherited from class org.eclipse.core.resources.IncrementalProjectBuilder
AUTO_BUILD, CLEAN_BUILD, FULL_BUILD, INCREMENTAL_BUILD
Fields inherited from interface org.eclipse.cdt.core.IMarkerGenerator
SEVERITY_ERROR_BUILD, SEVERITY_ERROR_RESOURCE, SEVERITY_INFO, SEVERITY_WARNING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMarker
(ProblemMarkerInfo problemMarkerInfo) Callback from Output Parservoid
addMarker
(org.eclipse.core.resources.IResource file, int lineNumber, String errorDesc, int severity, String errorVar) static boolean
Preference for building configurations only when there are resource changes within Eclipse or when there are changes in its references.protected void
clean
(org.eclipse.core.runtime.IProgressMonitor monitor) void
Remove duplicate error markers that may have been created byaddMarker(ProblemMarkerInfo)
with theProblemMarkerInfo.isDeferDeDuplication()
flag set.protected org.eclipse.core.resources.IProject
Returns the current project that this builder is running.org.eclipse.core.runtime.jobs.ISchedulingRule
Default ACBuilder shouldn't require locking the workspace during a CDT Project build.static boolean
protected void
printEvent
(int kind, Map<String, String> args) For debugging purpose only.static void
setAllConfigBuild
(boolean enable) static void
setBuildConfigResourceChanges
(boolean enable) Preference for building configurations only when there are resource changes within Eclipse or when there are changes in its references.protected void
setCurrentProject
(org.eclipse.core.resources.IProject project) Set the current project that this builder is running.Methods inherited from class org.eclipse.core.resources.IncrementalProjectBuilder
build, forgetLastBuiltState, getBuildConfig, getCommand, getContext, getDelta, getProject, hasBeenBuilt, isInterrupted, needRebuild, rememberLastBuiltState, requestProjectRebuild, requestProjectsRebuild, setInitializationData, startupOnInitialize
-
Field Details
-
DEBUG_EVENTS
protected static final boolean DEBUG_EVENTS- Since:
- 5.2
- See Also:
-
-
Constructor Details
-
ACBuilder
public ACBuilder()Constructor for ACBuilder
-
-
Method Details
-
setCurrentProject
protected void setCurrentProject(org.eclipse.core.resources.IProject project) Set the current project that this builder is running.- Since:
- 5.11
-
getCurrentProject
protected org.eclipse.core.resources.IProject getCurrentProject()Returns the current project that this builder is running.- Returns:
- the project
- Since:
- 5.11
-
addMarker
public void addMarker(org.eclipse.core.resources.IResource file, int lineNumber, String errorDesc, int severity, String errorVar) - Specified by:
addMarker
in interfaceIMarkerGenerator
-
deDuplicate
public void deDuplicate()Remove duplicate error markers that may have been created byaddMarker(ProblemMarkerInfo)
with theProblemMarkerInfo.isDeferDeDuplication()
flag set. This method will also remove other duplicate ICModelMarker.C_MODEL_PROBLEM_MARKER markers on the resources referred to by ProblemMarkerInfo.- Since:
- 6.3
-
addMarker
Callback from Output Parser- Specified by:
addMarker
in interfaceIMarkerGenerator
-
needAllConfigBuild
public static boolean needAllConfigBuild() -
setAllConfigBuild
public static void setAllConfigBuild(boolean enable) -
buildConfigResourceChanges
public static boolean buildConfigResourceChanges()Preference for building configurations only when there are resource changes within Eclipse or when there are changes in its references.- Returns:
- true if configurations will be build when project resource changes within Eclipse false otherwise
- Since:
- 5.1
-
setBuildConfigResourceChanges
public static void setBuildConfigResourceChanges(boolean enable) Preference for building configurations only when there are resource changes within Eclipse or when there are changes in its references.- Parameters:
enable
-- Since:
- 5.1
-
printEvent
For debugging purpose only. Prints events on the debug console.- Since:
- 5.2
-
clean
protected void clean(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException - Overrides:
clean
in classorg.eclipse.core.resources.IncrementalProjectBuilder
- Throws:
org.eclipse.core.runtime.CoreException
-
getRule
Default ACBuilder shouldn't require locking the workspace during a CDT Project build. Note this may have a detrimental effect on #getDelta(). Derived builders which rely on #getDelta(...) being accurate should return a WorkspaceRoot scheduling rule.- Overrides:
getRule
in classorg.eclipse.core.resources.IncrementalProjectBuilder
- Since:
- 5.2
-