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.
|
Constructor and Description |
---|
ToolAdapterActionRegistrar() |
Modifier and Type | Method and Description |
---|---|
static Map<String,ToolAdapterOperatorDescriptor> |
getActionMap()
Returns the map of menu items (actions) and operator descriptors.
|
static String |
getDefaultMenuLocation() |
static void |
registerOperatorMenu(ToolAdapterOperatorDescriptor operator)
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 |
removeOperatorMenu(ToolAdapterOperatorDescriptor operator) |
public static Map<String,ToolAdapterOperatorDescriptor> getActionMap()
public static String getDefaultMenuLocation()
public static void registerOperatorMenu(ToolAdapterOperatorDescriptor operator)
operator
- The operator descriptorpublic static void registerOperatorMenu(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(ToolAdapterOperatorDescriptor operator)
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.