Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.ide
Class IdeClipboard

java.lang.Object
  extended by oracle.ide.IdeClipboard


public class IdeClipboard
extends java.lang.Object

Provides means to install and access IDE clipboard. The IDE clipboard is a workaround for problems described in JDK bug 4818143. It caches the contents of system clipboard and accesses the system clipboard in a separate thread. The cache is synchronized with the system clipboard when any of our Windows gets WINDOW_ACTIVATED event. It means that if some other application modifies the contents of the system clipboard in the background then the change won't be propagated to us immediately. The other drawback is that if an extension code bypasses IDE clipboard and accesses the system clipboard directly then we don't see these changes.

Since:
11.1.2.0.0

Method Summary
static java.awt.datatransfer.Clipboard getClipboard()
          Returns IDE clipboard.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getClipboard

public static java.awt.datatransfer.Clipboard getClipboard()
                                                    throws java.awt.HeadlessException
Returns IDE clipboard. Extensions should always use this method to access clipboard. They should not access system clipboard (i.e., Toolkit.getDefaultToolkit().getSystemClipboard()) directly.
Returns:
IDE clipboard.
Throws:
java.awt.HeadlessException - when invoked in headless mode (i.e., when GraphicsEnvironment.isHeadless() returns true).

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.