Class ToolAdapterActionRegistrar
- java.lang.Object
- 
- org.esa.snap.ui.tooladapter.actions.ToolAdapterActionRegistrar
 
- 
 public class ToolAdapterActionRegistrar extends Object 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 SummaryNested Classes Modifier and Type Class Description static classToolAdapterActionRegistrar.StartOpStartup class that performs menu initialization to be invoked by NetBeans.static classToolAdapterActionRegistrar.StopOp
 - 
Constructor SummaryConstructors Constructor Description ToolAdapterActionRegistrar()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,ToolAdapterOperatorDescriptor>getActionMap()Returns the map of menu items (actions) and operator descriptors.static StringgetDefaultMenuLocation()static voidregisterOperatorMenu(ToolAdapterOperatorDescriptor operator)Creates a menu entry in the default menu location (Tools > External Tools) for the given adapter operator.static voidregisterOperatorMenu(ToolAdapterOperatorDescriptor operator, boolean hasChanged)Creates a menu entry in the given menu location for the given adapter operator.static voidremoveOperatorMenu(ToolAdapterOperatorDescriptor operator)
 
- 
- 
- 
Method Detail- 
getActionMappublic static Map<String,ToolAdapterOperatorDescriptor> getActionMap() Returns the map of menu items (actions) and operator descriptors.- Returns:
 
 - 
getDefaultMenuLocationpublic static String getDefaultMenuLocation() 
 - 
registerOperatorMenupublic static void registerOperatorMenu(ToolAdapterOperatorDescriptor operator) Creates a menu entry in the default menu location (Tools > External Tools) for the given adapter operator.- Parameters:
- operator- The operator descriptor
 
 - 
registerOperatorMenupublic static void registerOperatorMenu(ToolAdapterOperatorDescriptor operator, boolean hasChanged) Creates a menu entry in the given menu location for the given adapter operator.- Parameters:
- operator- The operator descriptor
- hasChanged- Flag that indicates if the descriptor has changed (true) or is new (false)
 
 - 
removeOperatorMenupublic static void removeOperatorMenu(ToolAdapterOperatorDescriptor operator) 
 
- 
 
-