org.argouml.ui
Class ContextActionFactoryManager

java.lang.Object
  extended by 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


Constructor Summary
ContextActionFactoryManager()
           
 
Method Summary
static void addContextPopupFactory(ContextActionFactory factory)
           
static java.util.List<javax.swing.Action> getContextPopupActions()
          Adds to the default actions the new menus for the registered factories
static void removeContextPopupFactory(ContextActionFactory factory)
          For modules, it would be useful to be able to remove their factories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextActionFactoryManager

public ContextActionFactoryManager()
Method Detail

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:


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook