org.argouml.ui
Class ContextActionFactoryManager
java.lang.Object
org.argouml.ui.ContextActionFactoryManager
public class ContextActionFactoryManager
- extends java.lang.Object
Manager of context meny factories registered in ArgoUML.
You can add and remove a ContextPopupFactory instance to this central
registry. The registered factories are then used when a new Context menu has
to be build.
The factory creates an additional popup on the context menu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextActionFactoryManager
public ContextActionFactoryManager()
addContextPopupFactory
public static void addContextPopupFactory(ContextActionFactory factory)
- Parameters:
factory - add the given factory
removeContextPopupFactory
public static void removeContextPopupFactory(ContextActionFactory factory)
- For modules, it would be useful to be able to remove their factories.
TODO: The effect of this method is not yet tested!
- Parameters:
factory - the factory to remove
getContextPopupActions
public static java.util.List<javax.swing.Action> getContextPopupActions()
- Adds to the default actions the new menus for the registered factories
- Returns: