KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > jawe > actions > Paste


1 /*
2  * Authors:
3  * Stefanovic Nenad chupo@iis.ns.ac.yu
4  * Bojanic Sasa sasaboy@neobee.net
5  * Puskas Vladimir vpuskas@eunet.yu
6  * Pilipovic Goran zboniek@uns.ac.yu
7  *
8  */

9
10 package org.enhydra.jawe.actions;
11
12 import org.enhydra.jawe.*;
13 import org.enhydra.jawe.xml.*;
14 import org.enhydra.jawe.xml.elements.*;
15 import org.enhydra.jawe.xml.panels.*;
16
17 import java.awt.event.ActionEvent JavaDoc;
18 import javax.swing.*;
19
20 /**
21 * Class that realizes <B>paste</B> action.
22 * Pastes selected cells to clipboard.
23 */

24 public class Paste extends ActionBase {
25
26    public Paste (ProcessEditor pe) {
27       super(pe);
28    }
29
30    public Paste (ProcessEditor pe,String JavaDoc nm) {
31       super(pe,nm);
32    }
33
34    public void actionPerformed(ActionEvent JavaDoc e) {
35       Action graphPasteAction=editor.getGraph().getTransferHandler().getPasteAction();
36       graphPasteAction.actionPerformed(e);
37    }
38 }
39
40
Popular Tags