de.cau.cs.kieler.keg.ksbase.copypaste
Class Utils

java.lang.Object
  extended by de.cau.cs.kieler.keg.ksbase.copypaste.Utils

public final class Utils
extends Object

Utility class for cut, copy and paste. The main purpose is to provide funcitionality to work with the clipboard.

Rating red

Method Summary
static EObject copy(Object object)
          Copy the object.
static void cutObject(Object object)
          Copy an object to clipboard and remove it from the model.
static Edge getEdgeFromClipboard()
          Get an edge from the clipboard.
static List<Edge> getEdgesFromClipboard()
          Get an edge from the clipboard.
static Node getNodeFromClipboard()
          Get a node from the clipboard.
static List<Node> getNodesFromClipboard()
          Get a list of nodes from the clipboard.
static void objectToClipboard(Object object)
          Copy an object to clipboard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cutObject

public static void cutObject(Object object)
Copy an object to clipboard and remove it from the model.

Parameters:
object - the object to cut

objectToClipboard

public static void objectToClipboard(Object object)
Copy an object to clipboard.

Parameters:
object - the object

getNodeFromClipboard

public static Node getNodeFromClipboard()
Get a node from the clipboard.

Returns:
the node

getNodesFromClipboard

public static List<Node> getNodesFromClipboard()
Get a list of nodes from the clipboard.

Returns:
the nodes

getEdgeFromClipboard

public static Edge getEdgeFromClipboard()
Get an edge from the clipboard.

Returns:
the edge

getEdgesFromClipboard

public static List<Edge> getEdgesFromClipboard()
Get an edge from the clipboard.

Returns:
the edge

copy

public static EObject copy(Object object)
Copy the object.

Parameters:
object - the object
Returns:
the copy