|
org.netbeans.spi.tasklist/1 1.15.1 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.spi.tasklist.TaskScanningScope
public abstract class TaskScanningScope
A class that defines the set of resources (files and/or folders) that will be scanned for Tasks.
Nested Class Summary | |
---|---|
static class |
TaskScanningScope.Callback
Callback to Task List's framework. |
Constructor Summary | |
---|---|
TaskScanningScope(String displayName,
String description,
Image icon)
Create a new instance |
|
TaskScanningScope(String displayName,
String description,
Image icon,
boolean isDefault)
Create a new instance |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Constructor Detail |
---|
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.Method Detail |
---|
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 org.netbeans.api.project.Project
s that are in this scope.
|
org.netbeans.spi.tasklist/1 1.15.1 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |