Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Supporting Multiple Data type entries in Clipboard
Supporting Multiple Data type entries in Clipboard [message #1072375] Mon, 22 July 2013 16:23
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi All,

Following is my requirement.

I want to transfer two different strings to be later retrieved for some specific purpose in two different occasions.

For e.g.

String str="a" ;
String str1="b";

Now i want to pass both them through the same clipboard action

in that case i have to do clipboard.setContents( new String[] {str,str1},new Transfer[] {TextTransfer.getInstance(),TextTransfer.getInstance()};

When retrieving through getContents() with type as TextTransfer always the first String is returned. I want to retrieve both of them separately at different occasions.

Is it possible to achieve this through Clipboard ?

I might be missing something

cheers,
Saurav


Previous Topic:what are some clean, easy ways to filter XML-based input to a TableViewer object?
Next Topic:Freeze instead of Exception on Mac
Goto Forum:
  


Current Time: Thu Apr 25 12:54:57 GMT 2024

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

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

Back to the top