use of org.apache.cayenne.modeler.util.CayenneTransferable in project cayenne by apache.
the class CopyAction method performAction.
/**
* Performs copying of items into system buffer
*/
@Override
public void performAction(ActionEvent e) {
ProjectController mediator = getProjectController();
Object content = copy(mediator);
if (content != null) {
Clipboard sysClip = Toolkit.getDefaultToolkit().getSystemClipboard();
sysClip.setContents(new CayenneTransferable(content), null);
}
// update paste button
getApplication().getActionManager().getAction(PasteAction.class).updateState();
}
Aggregations