Eclipse GEF
2.1

org.eclipse.gef.ui.actions
Class Clipboard

java.lang.Object
  |
  +--org.eclipse.gef.ui.actions.Clipboard

public class Clipboard
extends Object

A GEF clipboard for cut/copy/paste actions between GEF editors. This will not work between two instances of the workbench (but will work between multiple windows belonging to a single instance of the workbench). Setting the contents of the clipboard will erase the previous contents of the clipboard.


Constructor Summary
Clipboard()
          Constructs a new Clipboard object.
 
Method Summary
 Object getContents()
          Returns the current contents of the clipboard.
static Clipboard getDefault()
          Returns the default clipboard.
 void setContents(Object contents)
          Sets the contents of the clipboard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Clipboard

public Clipboard()
Constructs a new Clipboard object.

Method Detail

getDefault

public static Clipboard getDefault()
Returns the default clipboard.

Returns:
the default clipboard

getContents

public Object getContents()
Returns the current contents of the clipboard.

Returns:
contents of the clipboard

setContents

public void setContents(Object contents)
Sets the contents of the clipboard. This will erase the previous contents of the clipboard.

Parameters:
contents - the new contents

Eclipse GEF
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.