|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
de.uni_paderborn.fujaba.coobra.actions.PasteAction
Paste some ASGElements via CoObRA
Nested Class Summary |
Nested classes inherited from class javax.swing.AbstractAction |
|
Field Summary | |
private CopyAction.CopyData |
copyData
data for copying |
private de.tu_bs.coobra.CopyManager |
copyManager
No comment provided by developer, please add a comment to improve documentation. |
private java.util.Map |
newNames
map for new object name (ASGElement, "newName") |
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
PasteAction()
Defines an Action object with a default description string and default icon. |
|
PasteAction(CopyAction.CopyData copyData)
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when the action occurs. |
private boolean |
askForAttrNames(FElement pasteTarget)
display a dialog to enter a new name for all copied methods |
private boolean |
askForClassNames()
display a dialog to enter a new name for all methods when pasting into a not copied class |
private boolean |
askForMethodNames(FElement pasteTarget)
display a dialog to enter a new name for all copied methods |
CopyAction.CopyData |
getCopyData()
|
private boolean |
isNameOk(java.lang.String newName,
FAttr attr,
FElement pasteTarget)
checks wether the name for an attribute is unique and not empty |
private boolean |
isNameOk(java.lang.String newName,
FMethod method,
FElement pasteTarget)
checks wether the name for a method is unique and not empty |
java.util.List |
paste(FElement pasteTarget)
No comment provided by developer, please add a comment to improve documentation. |
java.util.List |
paste(FElement pasteTarget,
boolean doUpdateDisplay)
No comment provided by developer, please add a comment to improve documentation. |
void |
reviewCopiedChange(de.tu_bs.coobra.MutableObjectChange change)
called upon copy of each ObjectChange to provide an ability to alter the copied data |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Map newNames
private CopyAction.CopyData copyData
private de.tu_bs.coobra.CopyManager copyManager
Constructor Detail |
public PasteAction()
Action
object with a default description string and default icon.
public PasteAction(CopyAction.CopyData copyData)
copyData
- what data to use for pastingMethod Detail |
public CopyAction.CopyData getCopyData()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- event that caused the actionpublic java.util.List paste(FElement pasteTarget)
pasteTarget
- No description provided
public java.util.List paste(FElement pasteTarget, boolean doUpdateDisplay)
pasteTarget
- No description provideddoUpdateDisplay
- No description provided
private boolean askForAttrNames(FElement pasteTarget)
pasteTarget
- No description provided
private boolean isNameOk(java.lang.String newName, FAttr attr, FElement pasteTarget)
newName
- name to be checkedattr
- attr that will get the namepasteTarget
- No description provided
private boolean askForMethodNames(FElement pasteTarget)
pasteTarget
- No description provided
private boolean isNameOk(java.lang.String newName, FMethod method, FElement pasteTarget)
newName
- name to be checkedmethod
- method that will get the namepasteTarget
- No description provided
private boolean askForClassNames()
public void reviewCopiedChange(de.tu_bs.coobra.MutableObjectChange change)
reviewCopiedChange
in interface de.tu_bs.coobra.CopyManager.CopyChangeCallbackInterface
change
- values of the copied ObjectChange
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |