Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to monitor changes to the Clipboard.
How to monitor changes to the Clipboard. [message #443756] Thu, 30 September 2004 02:01 Go to next message
Sandip Chitale is currently offline Sandip ChitaleFriend
Messages: 27
Registered: July 2009
Location: California, USA
Junior Member
Is there any way to monitor changes to Clipboard?
Re: How to monitor changes to the Clipboard. [message #443769 is a reply to message #443756] Thu, 30 September 2004 15:01 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
There is no event to notify the application when the data on the clipboard
has changed.

If you have a menu, you can query the data types available before showing
the menu (Menu.addMenuListener) using Clipboard.getAvailableTypes(). If you
have a toolitem, you will need to poll the data available using
Clipboard.getAvailableTypes().

I am investigating adding notification in 3.1. but have not yet verified
that it is available on all platforms.

"Sandip Chitale" <sandipchitale@fairisaac.com> wrote in message
news:cjfp4n$fgh$1@eclipse.org...
> Is there any way to monitor changes to Clipboard?
>
>
Re: How to monitor changes to the Clipboard. [message #443790 is a reply to message #443769] Thu, 30 September 2004 15:48 Go to previous message
Sandip Chitale is currently offline Sandip ChitaleFriend
Messages: 27
Registered: July 2009
Location: California, USA
Junior Member
Thanks for the info.

I was thinking of implementing a clipbook - something like kill-ring of emacs. This will allow the user to clipbook several last
contents of the clipboard. Make any sense?

Is there any way in SWT to intercept when the data is being put on the clipboard from within SWT (in same JVM) at least?

"Veronika Irvine" <veronika_irvine@oti.com> wrote in message news:cjh6rv$6om$1@eclipse.org...
> There is no event to notify the application when the data on the clipboard
> has changed.
>
> If you have a menu, you can query the data types available before showing
> the menu (Menu.addMenuListener) using Clipboard.getAvailableTypes(). If you
> have a toolitem, you will need to poll the data available using
> Clipboard.getAvailableTypes().
>
> I am investigating adding notification in 3.1. but have not yet verified
> that it is available on all platforms.
>
> "Sandip Chitale" <sandipchitale@fairisaac.com> wrote in message
> news:cjfp4n$fgh$1@eclipse.org...
> > Is there any way to monitor changes to Clipboard?
> >
> >
>
>
Previous Topic:SWT & .NET - why don't they look the same?
Next Topic:Multi line label
Goto Forum:
  


Current Time: Fri Apr 19 07:12:08 GMT 2024

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

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

Back to the top