Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360790 - Add Clipboard Support to RAP
Summary: Add Clipboard Support to RAP
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement with 2 votes (vote)
Target Milestone: 3.14 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL: https://git.eclipse.org/r/c/rap/org.e...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-13 06:40 EDT by Tobias Liefke CLA
Modified: 2020-07-06 06:38 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Liefke CLA 2011-10-13 06:40:59 EDT
It should be clear that a web application has only limited access to the system clipboard of the web client and must have no access to the system clipboard of the web server.

But it should be very easy to implement a clipboard in RAP that is connected to the user session and provides CnP support inside the borders of the application. That way I don't have to turn of copy/paste actions in existing plugins to make them available for RAP. And I would support a main use case of copy and paste - the duplication of entered user data inside of the application.

It would be nice to have access to the web client's system clipboard transparently, too (either only the text content or using browser plugins) - but I understand that such an implementation has to deal with the RAP request lifecycle which is, as far as I can see, not that easy and I don't think we should deal with that in this issue.
Comment 1 Ralf Sternberg CLA 2011-10-14 06:05:18 EDT
For me it sounds reasonable to start with a clipboard implementation that only stores contents in the session store but is not connected to the client's clipboard. For those clients that support clipboard access (native mobile clients?), an add-on could be created that synchronizes this clipboard implementation with the client's clipboard.

What do others think?
Comment 2 Chris Fairhall CLA 2011-12-13 16:47:24 EST
As long as there will continue to be native clipboard access for the Text widgets.
Comment 4 Ivan Furnadjiev CLA 2020-07-06 06:38:30 EDT
Only read/write plain text to the user clipboard is supported in "blink"-based browsers - Chrome, Opera, Edge Chrome. Firefox only supports setting the text to clipboard.