Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GEF
3.3

org.eclipse.gef.ui.actions
Class Clipboard

java.lang.Object
  extended by
org.eclipse.gef.ui.actions.Clipboard

public class Clipboard
extends java.lang.Object

A GEF clipboard for cut/copy/paste actions between GEF editors. It exists mainly for convenience and allows clients to add graphical objects to the system clipboard. It 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 ()
          Deprecated. As of 3.1, the GEF Clipboard synchronizes with the system clipboard. Multiple instances of this class should not be created. Use getDefault(). This method will be removed in future releases.
 
Method Summary
 java.lang.Object getContents ()
          Returns the current contents of the clipboard.
static  Clipboard getDefault ()
          Returns the default clipboard.
 void setContents (java.lang.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()
Deprecated. As of 3.1, the GEF Clipboard synchronizes with the system clipboard. Multiple instances of this class should not be created. Use getDefault(). This method will be removed in future releases.

Constructs a new Clipboard object.

Method Detail

getDefault

public static 
Clipboard getDefault()
Returns the default clipboard.

Returns:
the default clipboard

getContents

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

Returns:
contents of the clipboard

setContents

public void setContents(java.lang.Object contents)
Sets the contents of the clipboard. This will erase the previous contents of this as well as the system clipboard. The provided contents will not be garbage-collected until some other contents are set using this method.

Parameters:
contents - the new contents

Eclipse GEF
3.3

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire