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, waitforEach, iterator, spliteratorpublic 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.ProviderFileObjects to be scanned (for example when
the scope is 'currently edited file') or org.netbeans.api.project.Projects that are in this scope.Built on September 30 2016. | Portions Copyright 1997-2016 Oracle. All rights reserved.