This class is based on JavaSourceTaskFactory in Retouche
This file is originally from Retouche, the Java Support
infrastructure in NetBeans. I have modified the file as little
as possible to make merging Retouche fixes back as simple as
possible.
XXX: SPI?
A factory for tasks that will be run in the
Source Java parsing harness.
Please note that there is usually no need to implement this class directly,
as there are support classes for common
SourceTaskFactory implementations.
This factory should be registered in the global lookup by listing its fully qualified
name in file META-INF/services/org.netbeans.modules.gsfpath.api.source.SourceTaskFactory.
See Also:EditorAwareSourceTaskFactory See Also:CaretAwareSourceTaskFactory See Also:LookupBasedSourceTaskFactory author: Jan Lahoda
Create task for a given file. This task will be registered into the
Source parsing harness with a given
SourceTaskFactory.getPriority priority and
SourceTaskFactory.getPhase phase .
Please note that this method should run as quickly as possible.
Parameters: file - for which file the task should be created. created CancellableTask for a given file.
Notify the infrastructure that the collection of fileobjects has been changed.
The infrastructure calls
SourceTaskFactory.getFileObjects() to get a new collection files.
Re-run task created by this factory for given file.
If the task has not yet been run, does nothing.
Parameters: file - task created by this factory for this file is re-run.