org.argouml.uml.ui
Class ActionPaste
java.lang.Object
javax.swing.AbstractAction
org.argouml.uml.ui.ActionPaste
- All Implemented Interfaces:
- Action, ActionListener, CaretListener, Cloneable, EventListener, FocusListener, Serializable
- public class ActionPaste
- extends AbstractAction
- implements CaretListener, FocusListener
Action to paste the content of either the GEF clipboard or the
system clipboard. The action is enabled if there is content on
either clipboard AND either the mouse hovers over the JGraph (the
diagram) or the caret in a UMLTextField2 or UMLTextArea2 is
enabled.
- See Also:
- Serialized Form
|
Constructor Summary |
ActionPaste()
Default constructor for action. |
ActionPaste
public ActionPaste()
- Default constructor for action. We cannot use UMLChangeAction
as a parent for this class since it works with shouldBeEnabled
etc. which doesn't give enough control about enabling/disabling
this action.
getInstance
public static ActionPaste getInstance()
- Singleton implementation.
- Returns:
- The singleton
actionPerformed
public void actionPerformed(ActionEvent ae)
- Copies some text or a fig.
- Specified by:
actionPerformed in interface ActionListener
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
focusLost
public void focusLost(FocusEvent e)
- Specified by:
focusLost in interface FocusListener
- See Also:
FocusListener.focusLost(java.awt.event.FocusEvent)
caretUpdate
public void caretUpdate(CaretEvent e)
- Specified by:
caretUpdate in interface CaretListener
- See Also:
CaretListener.caretUpdate(javax.swing.event.CaretEvent)
focusGained
public void focusGained(FocusEvent e)
- Specified by:
focusGained in interface FocusListener
- See Also:
FocusListener.focusGained(java.awt.event.FocusEvent)