public class ToBeBuiltComputer
extends java.lang.Object
contributions
.IToBeBuiltComputerContribution
Modifier and Type | Class and Description |
---|---|
static class |
ToBeBuiltComputer.CompositeContribution |
static class |
ToBeBuiltComputer.NullContribution |
Constructor and Description |
---|
ToBeBuiltComputer() |
Modifier and Type | Method and Description |
---|---|
protected ToBeBuilt |
doRemoveProject(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected org.eclipse.emf.common.util.URI |
getUri(org.eclipse.core.resources.IStorage file)
Returns the URI of the given storage if it is buildable.
|
protected boolean |
isHandled(org.eclipse.core.resources.IFolder folder)
Return
true if the folder should be traversed. |
protected boolean |
isHandled(org.eclipse.core.resources.IStorage storage)
Returns
true if the storage should be processed by the builder. |
protected boolean |
isValid(org.eclipse.emf.common.util.URI uri,
org.eclipse.core.resources.IStorage storage)
Ask the
UriValidator whether the storage is buildable. |
ToBeBuilt |
removeProject(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
Announce that the given project was removed / closed or a clean build was triggered.
|
boolean |
removeStorage(org.eclipse.core.runtime.IProgressMonitor monitor,
ToBeBuilt toBeBuilt,
org.eclipse.core.resources.IStorage storage)
Removes the information that is associated with the given storage.
|
ToBeBuilt |
updateProject(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
Full build was triggered.
|
ToBeBuilt |
updateProjectNewResourcesOnly(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
Recovery build was triggered, remove all cached information for resources that are no
longer contained in the project.
|
boolean |
updateStorage(org.eclipse.core.runtime.IProgressMonitor monitor,
ToBeBuilt toBeBuilt,
org.eclipse.core.resources.IStorage storage)
Update the information that is available for the given storage.
|
public ToBeBuilt removeProject(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor)
protected ToBeBuilt doRemoveProject(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor)
public ToBeBuilt updateProjectNewResourcesOnly(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public ToBeBuilt updateProject(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException, org.eclipse.core.runtime.OperationCanceledException
updateStorage(IProgressMonitor, ToBeBuilt, IStorage)
.org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.OperationCanceledException
updateStorage(IProgressMonitor, ToBeBuilt, IStorage)
,
isHandled(IFolder)
,
IToBeBuiltComputerContribution.updateProject(ToBeBuilt, IProject, IProgressMonitor)
public boolean updateStorage(org.eclipse.core.runtime.IProgressMonitor monitor, ToBeBuilt toBeBuilt, org.eclipse.core.resources.IStorage storage)
isHandled(IStorage)
,
getUri(IStorage)
public boolean removeStorage(org.eclipse.core.runtime.IProgressMonitor monitor, ToBeBuilt toBeBuilt, org.eclipse.core.resources.IStorage storage)
protected boolean isHandled(org.eclipse.core.resources.IStorage storage)
true
if the storage should be processed by the builder.
That is, it is known to the UriValidator
and a contribution
can possibly manage it or it is a file.protected boolean isHandled(org.eclipse.core.resources.IFolder folder)
true
if the folder should be traversed. False
otherwise. Defaults to
true
for all folders. If a contribution rejects the folder, false
is returned.true
if the folder should be traversed. false
otherwise.JdtToBeBuiltComputer.isRejected(IFolder)
protected org.eclipse.emf.common.util.URI getUri(org.eclipse.core.resources.IStorage file)
protected boolean isValid(org.eclipse.emf.common.util.URI uri, org.eclipse.core.resources.IStorage storage)
UriValidator
whether the storage is buildable.UriValidator.canBuild(URI, IStorage)