org.netbeans.api.java.source.support
public abstract class EditorAwareJavaSourceTaskFactory extends JavaSourceTaskFactory
JavaSourceTaskFactorySupport
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 . |
Modifier and Type | Method and Description |
---|---|
List<FileObject> |
getFileObjects()
Specifies on which files should be registered tasks created by this factory.
|
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 runpublic List<FileObject> getFileObjects()
JavaSourceTaskFactory
JavaSource
's corresponding to FileObject
s returned from
this method will be registered tasks created by the JavaSourceTaskFactory.createTask(org.openide.filesystems.FileObject)
method
of this factory.
If this list changes, a change event should be fired to all registered
ChangeListener
s.getFileObjects
in class JavaSourceTaskFactory
FileObject
on which tasks from this factory should be
registered.JavaSourceTaskFactory.createTask(org.openide.filesystems.FileObject)
,
#addChangeListener
,
EditorAwareJavaSourceTaskFactory
,
CaretAwareJavaSourceTaskFactory
Built on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.