org.argouml.uml.ui
Class ActionCut
java.lang.Object
javax.swing.AbstractAction
org.argouml.uml.ui.ActionCut
- All Implemented Interfaces:
- Action, ActionListener, CaretListener, Cloneable, EventListener, Serializable
- public class ActionCut
- extends AbstractAction
- implements CaretListener
The Cut Action.
- See Also:
- Serialized Form
instance
private static ActionCut instance
LOCALIZE_KEY
private static final String LOCALIZE_KEY
- See Also:
- Constant Field Values
textSource
private JTextComponent textSource
ActionCut
public ActionCut()
- Constructor.
getInstance
public static ActionCut getInstance()
- Returns:
- the singleton
actionPerformed
public void actionPerformed(ActionEvent ae)
- Cuts some text or a fig.
- Specified by:
actionPerformed in interface ActionListener
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
removeFromDiagramAllowed
private boolean removeFromDiagramAllowed()
- Disable cutting figs from a diagram to prevent issue 3480.
See also ActionPaste, which is also disabled for similar reasons.
- Returns:
- true if cut is allowed for the selected items
caretUpdate
public void caretUpdate(CaretEvent e)
- Specified by:
caretUpdate in interface CaretListener
- See Also:
CaretListener.caretUpdate(javax.swing.event.CaretEvent)
isSystemClipBoardEmpty
private boolean isSystemClipBoardEmpty()