Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Listeners
Listeners [message #329060] Wed, 11 June 2008 11:00 Go to next message
Eclipse UserFriend
Hi,

Is it possible to register a listener like the ResourceChangeListener that
notifies me whenevener a change in a model occurs? The
ResourceChangeListener only notifies me when I save my resource.

Also, is it possible to listen for editor opened events?

Thank you so much!
Re: Listeners [message #329061 is a reply to message #329060] Wed, 11 June 2008 11:23 Go to previous message
Eclipse UserFriend
Iris wrote:
> Hi,
>
> Is it possible to register a listener like the ResourceChangeListener
> that notifies me whenevener a change in a model occurs? The
> ResourceChangeListener only notifies me when I save my resource.
There's no generic listener for that. If you have a textual editor
(ITextEditor) at hand you can get its document and add an
org.eclipse.jface.text.IDocumentListener.
>
> Also, is it possible to listen for editor opened events?
See org.eclipse.ui.IPartListener2.

Dani
>
> Thank you so much!
>
>
Previous Topic:Issue with selectionListener and doubleClickListener both together
Next Topic:open external editor on a file NOT in the workspace ...
Goto Forum:
  


Current Time: Thu May 01 15:07:07 EDT 2025

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

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

Back to the top