Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Model Change Event for Common Navigator
Model Change Event for Common Navigator [message #309220] Wed, 18 October 2006 16:52 Go to next message
Eclipse UserFriend
Originally posted by: kgilmer.gmail.com

Hello,

I'm using the Common Navigator as the view into my custom "project"
model. I'm able to extend the relevant extension points to get my model
in, with actions, etc. thanks to Michael Elder's excellent HOWTO here:
http://scribbledideas.blogspot.com/2006/06/building-common-n avigator-based-viewer_18.html
So far so good. Now I want to notify Common Navigator that one of my
model objects has changed (empty virtual folder now has something in
it), but can't seem to find any info on how to do this... Any tips?

Thanks!
Ken Gilmer
Re: Model Change Event for Common Navigator [message #309232 is a reply to message #309220] Thu, 19 October 2006 09:11 Go to previous message
Eclipse UserFriend
Ken,

On your content provider, you have an inputChanged method that is
provided a Viewer. This is the viewer that contains your elements. You
must issue adds/removes/refreshes directly against the viewer to update
the content.

Michael

Ken Gilmer wrote:
>
> Hello,
>
> I'm using the Common Navigator as the view into my custom "project"
> model. I'm able to extend the relevant extension points to get my model
> in, with actions, etc. thanks to Michael Elder's excellent HOWTO here:
> http://scribbledideas.blogspot.com/2006/06/building-common-n avigator-based-viewer_18.html
> So far so good. Now I want to notify Common Navigator that one of my
> model objects has changed (empty virtual folder now has something in
> it), but can't seem to find any info on how to do this... Any tips?
>
> Thanks!
> Ken Gilmer
>
Previous Topic:Problem with saving editor
Next Topic:Call code formatter programmatically?
Goto Forum:
  


Current Time: Thu Jul 17 09:05:34 EDT 2025

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

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

Back to the top