Class ToolAdapterActionRegistrar
java.lang.Object
org.esa.snap.ui.tooladapter.actions.ToolAdapterActionRegistrar
Helper class for creating menu entries for tool adapter operators.
The inner runnable class should be invoked when the IDE starts, and will
register the available adapters as menu actions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Startup class that performs menu initialization to be invoked by NetBeans.static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map
<String, ToolAdapterOperatorDescriptor> Returns the map of menu items (actions) and operator descriptors.static String
static void
Creates a menu entry in the default menu location (Tools > External Tools) for the given adapter operator.static void
registerOperatorMenu
(ToolAdapterOperatorDescriptor operator, boolean hasChanged) Creates a menu entry in the given menu location for the given adapter operator.static void
-
Constructor Details
-
ToolAdapterActionRegistrar
public ToolAdapterActionRegistrar()
-
-
Method Details
-
getActionMap
Returns the map of menu items (actions) and operator descriptors.- Returns:
-
getDefaultMenuLocation
-
registerOperatorMenu
Creates a menu entry in the default menu location (Tools > External Tools) for the given adapter operator.- Parameters:
operator
- The operator descriptor
-
registerOperatorMenu
Creates a menu entry in the given menu location for the given adapter operator.- Parameters:
operator
- The operator descriptorhasChanged
- Flag that indicates if the descriptor has changed (true) or is new (false)
-
removeOperatorMenu
-