public abstract class TaskScanningScope extends Object implements Iterable<FileObject>, Lookup.Provider
Modifier and Type | Class and Description |
---|---|
static class |
TaskScanningScope.Callback
Callback to Task List's framework.
|
Constructor and Description |
---|
TaskScanningScope(String displayName,
String description,
Image icon)
Create a new instance
|
TaskScanningScope(String displayName,
String description,
Image icon,
boolean isDefault)
Create a new instance
|
Modifier and Type | Method and Description |
---|---|
abstract void |
attach(TaskScanningScope.Callback callback)
Called by the framework when the user switches to this scanning scope.
|
abstract Lookup |
getLookup()
Lookup with scope's contents.
|
abstract boolean |
isInScope(FileObject resource)
Check whether the given resource is in this scanning scope.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, iterator, spliterator
public TaskScanningScope(String displayName, String description, Image icon)
displayName
- Label for Task List's popup menudescription
- Description for tooltips Task List's toolbaricon
- Icon to be displayed in Task List's toolbarpublic TaskScanningScope(String displayName, String description, Image icon, boolean isDefault)
displayName
- Label for Task List's popup menudescription
- Description for tooltips Task List's toolbaricon
- Icon to be displayed in Task List's toolbarisDefault
- True if this scope should be selected by default when the Task List is opened for the first time.public abstract boolean isInScope(FileObject resource)
resource
- Resource to be checked.public abstract void attach(TaskScanningScope.Callback callback)
callback
- public abstract Lookup getLookup()
getLookup
in interface Lookup.Provider
FileObject
s to be scanned (for example when
the scope is 'currently edited file') or Projects that are in this scope.