org.drools.eclipse.builder
Class DroolsBuilder
java.lang.Object
org.eclipse.core.internal.events.InternalBuilder
org.eclipse.core.resources.IncrementalProjectBuilder
org.drools.eclipse.builder.DroolsBuilder
- All Implemented Interfaces:
- org.eclipse.core.runtime.IExecutableExtension
public class DroolsBuilder
- extends org.eclipse.core.resources.IncrementalProjectBuilder
Automatically syntax checks .drl files and adds possible errors or warnings
to the problem list. Nominally is triggerd on save.
| Fields inherited from class org.eclipse.core.resources.IncrementalProjectBuilder |
AUTO_BUILD, CLEAN_BUILD, FULL_BUILD, INCREMENTAL_BUILD |
| Methods inherited from class org.eclipse.core.resources.IncrementalProjectBuilder |
clean, forgetLastBuiltState, getCommand, getDelta, getProject, getRule, getRule, hasBeenBuilt, isInterrupted, needRebuild, setInitializationData, startupOnInitialize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUILDER_ID
public static final String BUILDER_ID
- See Also:
- Constant Field Values
DroolsBuilder
public DroolsBuilder()
build
protected org.eclipse.core.resources.IProject[] build(int kind,
Map args,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
- Specified by:
build in class org.eclipse.core.resources.IncrementalProjectBuilder
- Throws:
org.eclipse.core.runtime.CoreException
fullBuild
protected void fullBuild(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
incrementalBuild
protected void incrementalBuild(org.eclipse.core.resources.IResourceDelta delta,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
parseResource
protected boolean parseResource(org.eclipse.core.resources.IResource res,
boolean clean)
parseRuleFlowFile
protected List<DroolsBuildMarker> parseRuleFlowFile(org.eclipse.core.resources.IFile file)
convertToString
protected static String convertToString(InputStream inputStream)
throws IOException
- Throws:
IOException
markParseErrors
protected void markParseErrors(List<DroolsBuildMarker> markers,
List<org.drools.compiler.DroolsError> parserErrors)
- This will create markers for parse errors. Parse errors mean that antlr
has picked up some major typos in the input source.
createMarker
protected void createMarker(org.eclipse.core.resources.IResource res,
String message,
int lineNumber)
removeProblemsFor
protected void removeProblemsFor(org.eclipse.core.resources.IResource resource)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.