public abstract class FileTaskScanner extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileTaskScanner.Callback
Callback into Task List's framework.
|
| Constructor and Description |
|---|
FileTaskScanner(String displayName,
String description,
String optionsPath)
Creates a new instance of FileTaskScanner
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
attach(FileTaskScanner.Callback callback)
Called by the framework when this Task type is enabled/disabled in Task List's filter window.
|
void |
notifyFinish()
Notification from the Task List framework that the scanning phase ended.
|
void |
notifyPrepare()
Notification from the Task List framework that the scanning phase is about to begin.
|
abstract List<? extends Task> |
scan(FileObject resource)
Scan the given resource (file or folder?) for tasks.
|
public FileTaskScanner(String displayName, String description, String optionsPath)
displayName - Scanner's display name, will appear in Task List's filter window.description - Scanner's description, will be used for tooltips.optionsPath - Path that identifies panel in the global Options dialog window,
or null if the scanner has no user settings. When scanner's settings changed the
scanner must notify - FileTaskScanner.Callback.refreshAll() - the Task List framework that a re-scan is needed.public void notifyPrepare()
public void notifyFinish()
public abstract List<? extends Task> scan(FileObject resource)
notifyPrepare() and notifyFinish() calls. Depending on Task
List's current scope this method may be called repeatedly for different resources.resource - Resource to be scanned.public abstract void attach(FileTaskScanner.Callback callback)
callback - Callback into Task List's framework, null value indicates that user has disabled
this type of Tasks.Built on June 18 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.