public abstract class CommandDescriptionProvider extends Object implements SciJavaPlugin
@Plugin, are
discovered for automatically adding actions/behaviours to a
CommandDescriptions map.
(This allows to discover Plugin shortcuts which cannot be hardwired into the default keymap.)
| Modifier and Type | Class and Description |
|---|---|
static class |
CommandDescriptionProvider.Scope |
| Modifier | Constructor and Description |
|---|---|
protected |
CommandDescriptionProvider(CommandDescriptionProvider.Scope scope,
String... expectedContexts) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
getCommandDescriptions(CommandDescriptions descriptions) |
String[] |
getExpectedContexts()
The contexts in which the described actions/behaviours are expected to be
used.
|
CommandDescriptionProvider.Scope |
getScope()
The scope describes the application / Fiji plugin that the actions are
defined in.
|
protected CommandDescriptionProvider(CommandDescriptionProvider.Scope scope, String... expectedContexts)
public CommandDescriptionProvider.Scope getScope()
Note that CommandDescriptionProvider is only used for harvesting
actions/behaviours for the config dialog. So basically it has nothing to
do with reality, necessarily. Whether these actions are ever actualized
depends on other code! The scope is for which scope
the config dialog will make the actions configurable. For example, if you
put {"mastodon"} there, then the InputTriggerConfig will be picked
up by a config dialog requesting these scopes.
public String[] getExpectedContexts()
Note that CommandDescriptionProvider is only used for harvesting
actions/behaviours for the config dialog. So basically it has nothing to
do with reality, necessarily. Whether these actions are ever actualized
depends on other code! The expectedContexts is for which context
the config dialog will make the actions configurable. For example, if you
put {"bdv", "ts"} there, then the InputTriggerConfig made by the
config dialog will put InputTriggers with these contexts.
public abstract void getCommandDescriptions(CommandDescriptions descriptions)
Copyright © 2015–2023 SciJava. All rights reserved.