public class ToolAdapterActionRegistrar extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ToolAdapterActionRegistrar.StartOp
Startup class that performs menu initialization to be invoked by NetBeans.
|
static class |
ToolAdapterActionRegistrar.StopOp |
Constructor and Description |
---|
ToolAdapterActionRegistrar() |
Modifier and Type | Method and Description |
---|---|
static Map<String,org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor> |
getActionMap()
Returns the map of menu items (actions) and operator descriptors.
|
static String |
getDefaultMenuLocation() |
static void |
registerOperatorMenu(org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operator)
Creates a menu entry in the default menu location (Tools > External Tools) for the given adapter operator.
|
static void |
registerOperatorMenu(org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operator,
boolean hasChanged)
Creates a menu entry in the given menu location for the given adapter operator.
|
static void |
removeOperatorMenu(org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operator) |
public static Map<String,org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor> getActionMap()
public static String getDefaultMenuLocation()
public static void registerOperatorMenu(org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operator)
operator
- The operator descriptorpublic static void registerOperatorMenu(org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operator, boolean hasChanged)
operator
- The operator descriptorhasChanged
- Flag that indicates if the descriptor has changed (true) or is new (false)public static void removeOperatorMenu(org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operator)
Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.