Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to check System Clipboard
How to check System Clipboard [message #454103] Sun, 17 April 2005 21:05 Go to next message
No real name is currently offline No real nameFriend
Messages: 97
Registered: July 2009
Member
Is there any API that I can check system clipboard
about availabilty for clipped data? Note that clipboard
is empty when starts.

--
Aghhhhhhh!
Re: How to check System Clipboard [message #454106 is a reply to message #454103] Sun, 17 April 2005 23:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: doug-list.threepenny.net

Try:

org.eclipse.swt.dnd.Clipboard

Doug

John Smith wrote:

> Is there any API that I can check system clipboard
> about availabilty for clipped data? Note that clipboard
> is empty when starts.
>
Re: How to check System Clipboard [message #454110 is a reply to message #454103] Mon, 18 April 2005 02:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aaa.domain.invalid

Try this...
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet94.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup

-chhil
Re: How to check System Clipboard [message #454691 is a reply to message #454103] Wed, 27 April 2005 14:06 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Clipboard.getAvailableTypes() will tell you what types of data are on the
clipboard:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet122.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

If you are looking for notification when the content on the clipboard
changes, it is not supported yet. See:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=39369

"John Smith" <ohcho@tpg.com.au> wrote in message
news:d3ujhg$clv$1@news.eclipse.org...
> Is there any API that I can check system clipboard
> about availabilty for clipped data? Note that clipboard
> is empty when starts.
>
> --
> Aghhhhhhh!
>
>
Previous Topic:Unable to set background color of an SWT Button
Next Topic:Packaging SWT app in jar
Goto Forum:
  


Current Time: Thu Apr 25 21:39:23 GMT 2024

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

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

Back to the top