public class CommandPicker extends Object
Modifier and Type | Field and Description |
---|---|
private org.scijava.ui.swing.commands.CommandFinderPanel |
commandFinderPanel |
private org.scijava.command.CommandService |
commandService |
private org.scijava.Context |
context |
private int |
dialogReturnValue |
Constructor and Description |
---|
CommandPicker(org.scijava.Context c) |
Modifier and Type | Method and Description |
---|---|
org.scijava.command.CommandInfo |
getSelectedCommand() |
int |
show()
Show the command picker dialog.
|
boolean |
wasOKd() |
private final org.scijava.Context context
private final org.scijava.command.CommandService commandService
private org.scijava.ui.swing.commands.CommandFinderPanel commandFinderPanel
private int dialogReturnValue
public int show()
JOptionPane
constantspublic boolean wasOKd()
true
iff the OK button was pressedpublic org.scijava.command.CommandInfo getSelectedCommand()
CommandInfo
for the selected ImageJ command.IllegalStateException
- if the dialog has not been
initialized or the selected item is not a valid
ImageJ command.Copyright © 2023. All rights reserved.