站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

EditorAwareJavaSourceTaskFactory (Java Source) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.java.source 0.13.0 1

org.netbeans.api.java.source.support
Class EditorAwareJavaSourceTaskFactory

java.lang.Object
  extended by org.netbeans.api.java.source.JavaSourceTaskFactory
      extended by org.netbeans.api.java.source.support.EditorAwareJavaSourceTaskFactory

public abstract class EditorAwareJavaSourceTaskFactory
extends JavaSourceTaskFactory

A JavaSourceTaskFactorySupport that registers tasks to all files that are opened in the editor and are visible.


Constructor Summary
protected EditorAwareJavaSourceTaskFactory(JavaSource.Phase phase, JavaSource.Priority priority)
          Construct the EditorAwareJavaSourceTaskFactory with given JavaSource.Phase and JavaSource.Priority.
 
Method Summary
 List<FileObject> getFileObjects()
          Specifies on which files should be registered tasks created by this factory.
 
Methods inherited from class org.netbeans.api.java.source.JavaSourceTaskFactory
createTask, fileObjectsChanged, reschedule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorAwareJavaSourceTaskFactory

protected EditorAwareJavaSourceTaskFactory(JavaSource.Phase phase,
                                           JavaSource.Priority priority)
Construct the EditorAwareJavaSourceTaskFactory with given JavaSource.Phase and JavaSource.Priority.

Parameters:
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)
Method Detail

getFileObjects

public List<FileObject> getFileObjects()
Description copied from class: JavaSourceTaskFactory
Specifies on which files should be registered tasks created by this factory. On JavaSource's corresponding to FileObjects 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 ChangeListeners.

Specified by:
getFileObjects in class JavaSourceTaskFactory
Returns:
list of FileObject on which tasks from this factory should be registered.
See Also:
JavaSourceTaskFactory.createTask(org.openide.filesystems.FileObject), #addChangeListener, EditorAwareJavaSourceTaskFactory, CaretAwareJavaSourceTaskFactory

org.netbeans.modules.java.source 0.13.0 1

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.