public abstract class ScopeProvider extends Object
ScopePanel
.ScopePanel
,
ScopeReference
Modifier and Type | Class and Description |
---|---|
static class |
ScopeProvider.CustomScopeProvider
The CustomScopeProvider extends the normal scope provider to support
scopes which can be customized by the user.
|
static interface |
ScopeProvider.Registration
Declarative registration of a ScopeProvider implementation.
|
Constructor and Description |
---|
ScopeProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getDetail()
Override this method if an explaining string should be displayed behind
the scope's name.
|
Icon |
getIcon()
Override this method if the icon should be different depending on the
context.
|
Problem |
getProblem()
Override this method if a problem can occur when the user selects this
scope.
|
abstract Scope |
getScope()
Get this provider's scope.
|
abstract boolean |
initialize(Lookup context,
AtomicBoolean cancel)
Initialize this scope provider with the supplied context.
|
public abstract boolean initialize(@NonNull Lookup context, @NonNull AtomicBoolean cancel)
context
- a Lookup defining the contextcancel
- set to true if initialization should be canceled@CheckForNull public abstract Scope getScope()
ScopeProvider.initialize(org.openide.util.Lookup,
java.util.concurrent.atomic.AtomicBoolean)
@CheckForNull public Icon getIcon()
ScopeProvider.initialize(org.openide.util.Lookup,
java.util.concurrent.atomic.AtomicBoolean)
@CheckForNull public String getDetail()
@CheckForNull public Problem getProblem()