UMLAction
Anytime that you would need a new action to perform a specific task, such as a menu item or a toolbar item, you would want to subclass UMLAction as seen above. Everytime that this class is extended, two methods need to over-ridden: actionPerformed(), which does the work that the action is supposed to do, and shouldBeEnabled(), which indicates whether or not this action should be available to the user.
Back to Argo/UML Home