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: 424
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 Nov 27 09:54:16 GMT 2014

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

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