Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP e4 3.14 and clipboard
RAP e4 3.14 and clipboard [message #1832762] Thu, 24 September 2020 11:05 Go to next message
Eclipse UserFriend
Hello,

In the web site, it is written :
Clipboard support
Clipboard (read/write) support is now available for browsers based on Chromium - Chrome, Opera, Edge. There is limited support for Firefox (write only). Currently it is only possible to transfer plain text data. The implementation is using the same synchronous SWT org.eclipse.swt.dnd.Clipboard API, which is not supported when you run the application in JEE_COMPATIBILITY mode.


But org.eclipse.swt.dnd is not included the RAP e4 3.14 targert plugins.

How can I add clipboard supprot ?

Thanks
Re: RAP e4 3.14 and clipboard [message #1832804 is a reply to message #1832762] Fri, 25 September 2020 07:50 Go to previous messageGo to next message
Eclipse UserFriend
Clipboard clipboard = new Clipboard(Display.getDefault());
clipboard.setContents(new Object[] { "clipboard text" }, new Transfer[] { TextTransfer.getInstance() });
clipboard.dispose();
Re: RAP e4 3.14 and clipboard [message #1832839 is a reply to message #1832804] Sat, 26 September 2020 08:27 Go to previous messageGo to next message
Eclipse UserFriend
The problem is that Clipboard class is not receognized in RAP e4 3.14.

The plugins is missing. May be, it is only for RAP ?
Re: RAP e4 3.14 and clipboard [message #1833451 is a reply to message #1832839] Tue, 13 October 2020 10:39 Go to previous messageGo to next message
Eclipse UserFriend
I just stumbled across this entry just now...

The RAP/RWT implementation of the org.eclipse.swt.dnd.Clipboard class is part of the RWT bundle, i.e. https://git.eclipse.org/c/rap/org.eclipse.rap.git/tree/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/dnd/Clipboard.java, and therefore available in RAP out of the box. As soon as you require the RWT bundle, or import the above Java package in your MANIFEST:MF you should be fine.

Regards
Markus
Re: RAP e4 3.14 and clipboard [message #1833486 is a reply to message #1833451] Wed, 14 October 2020 10:40 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

The link is not working...
RWT bundle is already added to my RAP e4 application and the package does not exist.

Re: RAP e4 3.14 and clipboard [message #1833487 is a reply to message #1833486] Wed, 14 October 2020 10:50 Go to previous messageGo to next message
Eclipse UserFriend
The forum software added an additional comma , at the end of the URL. If you remove ir, the URL is working. Here is the same URL, this time hopefully without , at the end:

https://git.eclipse.org/c/rap/org.eclipse.rap.git/tree/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/dnd/Clipboard.java

How did you "add" the bundle, i.e. how does the MANIFEST.MF look like in the bundle where you want to instantiate/use the Clipboard class?
Re: RAP e4 3.14 and clipboard [message #1833533 is a reply to message #1833487] Fri, 16 October 2020 04:06 Go to previous message
Eclipse UserFriend
Hello,

I have the package included.
I have tried again and it works.

The last problem is that support of clipboard is not included in the widget SWT Text

Thanks
Previous Topic:How to chnage the width of a ScrolledComposite
Next Topic:Loading PDF with PDFBox
Goto Forum:
  


Current Time: Thu Apr 17 15:33:14 EDT 2025

Powered by FUDForum. Page generated in 0.04062 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top