public class ValidationBuilder
extends org.eclipse.core.resources.IncrementalProjectBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
BUILDER_ID
identifier of the builder, similar to plugin.xml value.
|
static String |
MARKER_ID
identifier of the marker, similar to plugin.xml value.
|
| Constructor and Description |
|---|
ValidationBuilder()
Initializes me.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.core.resources.IProject[] |
build(int kind,
Map<String,String> args,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected void |
clean(org.eclipse.core.runtime.IProgressMonitor monitor) |
protected Bazaar.Builder<org.eclipse.emf.common.ui.MarkerHelper> |
configureMarkers(Bazaar.Builder<org.eclipse.emf.common.ui.MarkerHelper> bazaarBuilder)
Configure the marker helper bazaar builder.
|
protected Bazaar.Builder<ValidationDelegate> |
configureValidation(Bazaar.Builder<ValidationDelegate> bazaarBuilder)
Configure the validation delegate bazaar builder.
|
protected <T> Bazaar.Builder<T> |
createBazaarBuilder(Vendor<? extends T> defaultVendor)
Create the core bazaar builder for a bazaar that has a default vendor.
|
protected BazaarContext |
createContext(org.eclipse.core.resources.IFile file)
Create the bazaar vendor injection context for a
file. |
protected void |
fullBuild(org.eclipse.core.runtime.IProgressMonitor monitor)
Runs a full build on the project.
|
protected org.eclipse.core.runtime.content.IContentType |
getContentType(org.eclipse.core.resources.IFile file)
Get the content-type of a
file. |
protected void |
incrementalBuild(org.eclipse.core.resources.IResourceDelta delta,
org.eclipse.core.runtime.IProgressMonitor monitor)
Runs an incremental build on the project.
|
public static final String BUILDER_ID
public static final String MARKER_ID
protected org.eclipse.core.resources.IProject[] build(int kind,
Map<String,String> args,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
build in class org.eclipse.core.resources.IncrementalProjectBuilderorg.eclipse.core.runtime.CoreExceptionprotected <T> Bazaar.Builder<T> createBazaarBuilder(Vendor<? extends T> defaultVendor)
T - the product type of the bazaardefaultVendor - the default vendor of the bazaar's product typeprotected Bazaar.Builder<ValidationDelegate> configureValidation(Bazaar.Builder<ValidationDelegate> bazaarBuilder)
bazaarBuilder - the validation delegate bazaar builderbazaarBuilderprotected Bazaar.Builder<org.eclipse.emf.common.ui.MarkerHelper> configureMarkers(Bazaar.Builder<org.eclipse.emf.common.ui.MarkerHelper> bazaarBuilder)
bazaarBuilder - the marker helper bazaar builderbazaarBuilderprotected void clean(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
clean in class org.eclipse.core.resources.IncrementalProjectBuilderorg.eclipse.core.runtime.CoreExceptionprotected void fullBuild(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
monitor - the progress monitor to track the buildorg.eclipse.core.runtime.CoreException - exception in case of issuesprotected void incrementalBuild(org.eclipse.core.resources.IResourceDelta delta,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
delta - the delta on the resource that triggers this incremental buildmonitor - the progress monitor to track the buildorg.eclipse.core.runtime.CoreException - exception in case of issuesprotected BazaarContext createContext(org.eclipse.core.resources.IFile file)
file.file - a file to be validatedprotected org.eclipse.core.runtime.content.IContentType getContentType(org.eclipse.core.resources.IFile file)
file.file - a filenull if it cannot be determined for some reasonCopyright © 2019. All rights reserved.