Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:05 Go to next message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 81
Registered: December 2011
Member
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 11:50 Go to previous messageGo to next message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 107
Registered: July 2009
Location: korea
Senior Member

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 12:27 Go to previous messageGo to next message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 81
Registered: December 2011
Member
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 14:39 Go to previous messageGo to next message
Markus Knauer is currently offline Markus KnauerFriend
Messages: 179
Registered: July 2009
Senior Member

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


--

Twitter: @mknauer23 and @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: RAP e4 3.14 and clipboard [message #1833486 is a reply to message #1833451] Wed, 14 October 2020 14:40 Go to previous messageGo to next message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 81
Registered: December 2011
Member
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 14:50 Go to previous messageGo to next message
Markus Knauer is currently offline Markus KnauerFriend
Messages: 179
Registered: July 2009
Senior Member

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 08:06 Go to previous message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 81
Registered: December 2011
Member
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 25 20:12:47 GMT 2024

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

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

Back to the top