Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to see if PASTE is actiove
How to see if PASTE is actiove [message #466397] Tue, 10 January 2006 08:29 Go to next message
Eclipse UserFriend
Originally posted by: davidyoung_2001.yahoo.co.uk

I'm developing an application that could "paste" from a different
"copy/cut" application. I want to determine whether to enable the "paste"
option on the menu if there is something in the clipboard - how do I do
this?
Re: How to see if PASTE is actiove [message #466506 is a reply to message #466397] Tue, 10 January 2006 18:45 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See Clipboard.getAvailableTypes():

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

"david young" <davidyoung_2001@yahoo.co.uk> wrote in message
news:b55b5c5c95dddbfac24cdd504ff17a21$1@www.eclipse.org...
> I'm developing an application that could "paste" from a different
> "copy/cut" application. I want to determine whether to enable the "paste"
> option on the menu if there is something in the clipboard - how do I do
> this?
>
Previous Topic:SWT.EMBEDDED style
Next Topic:tooltips with html code?
Goto Forum:
  


Current Time: Thu Mar 28 09:25:07 GMT 2024

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

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

Back to the top