public abstract class EditorAwareJavaSourceTaskFactory extends JavaSourceTaskFactory
JavaSourceTaskFactory
that registers tasks to all files that are
opened in the editor and are visible.Modifier | Constructor and Description |
---|---|
protected |
EditorAwareJavaSourceTaskFactory(JavaSource.Phase phase,
JavaSource.Priority priority)
Construct the EditorAwareJavaSourceTaskFactory with given
JavaSource.Phase and JavaSource.Priority . |
protected |
EditorAwareJavaSourceTaskFactory(JavaSource.Phase phase,
JavaSource.Priority priority,
String... supportedMimeTypes)
Construct the EditorAwareJavaSourceTaskFactory with given
JavaSource.Phase and JavaSource.Priority . |
protected |
EditorAwareJavaSourceTaskFactory(JavaSource.Phase phase,
JavaSource.Priority priority,
TaskIndexingMode taskIndexingMode,
String... supportedMimeTypes)
Construct the EditorAwareJavaSourceTaskFactory.
|
Modifier and Type | Method and Description |
---|---|
List<FileObject> |
getFileObjects()
[@inheritDoc}
|
createTask, fileObjectsChanged, reschedule
protected EditorAwareJavaSourceTaskFactory(JavaSource.Phase phase, JavaSource.Priority priority)
JavaSource.Phase
and JavaSource.Priority
.phase
- phase to use for tasks created by JavaSourceTaskFactory.createTask(org.openide.filesystems.FileObject)
priority
- priority to use for tasks created by JavaSourceTaskFactory.createTask(org.openide.filesystems.FileObject)
protected EditorAwareJavaSourceTaskFactory(JavaSource.Phase phase, JavaSource.Priority priority, String... supportedMimeTypes)
JavaSource.Phase
and JavaSource.Priority
.phase
- phase to use for tasks created by JavaSourceTaskFactory.createTask(org.openide.filesystems.FileObject)
priority
- priority to use for tasks created by JavaSourceTaskFactory.createTask(org.openide.filesystems.FileObject)
supportedMimeTypes
- a list of mime types on which the tasks created by this factory should be runprotected EditorAwareJavaSourceTaskFactory(@NonNull JavaSource.Phase phase, @NonNull JavaSource.Priority priority, @NonNull TaskIndexingMode taskIndexingMode, @NonNull String... supportedMimeTypes)
phase
- phase to use for tasks created by JavaSourceTaskFactory.createTask(org.openide.filesystems.FileObject)
priority
- priority to use for tasks created by JavaSourceTaskFactory.createTask(org.openide.filesystems.FileObject)
taskIndexingMode
- the awareness of indexing. For tasks which can run
during indexing use TaskIndexingMode.ALLOWED_DURING_SCAN
for tasks
which cannot run during indexing use TaskIndexingMode.DISALLOWED_DURING_SCAN
.supportedMimeTypes
- a list of mime types on which the tasks created by this factory should be run,
empty array falls back to default text/x-java.public List<FileObject> getFileObjects()
getFileObjects
in class JavaSourceTaskFactory