Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » ResourceNavigator doesn't refresh
ResourceNavigator doesn't refresh [message #465520] Sat, 31 March 2007 18:39 Go to next message
Eclipse UserFriend
Originally posted by: unidad.gmx.net

Hi NG!

I work on a RCP-Standalone-app with an editor and a ResourceNavigator-View.

If I create a new File and then save it the ResourceNavigator-View
is updated immediately and shows the new file.

If I create a new File and execute a "save-as"-action, the file
will be saved as a new file, but the ResourceNavigator-View
is not updated automatically. If I perform a "refresh" manually in
the resource-navigator, the new file will be shown...hmmm...

Any idea?

Greets,

Ralf
Re: ResourceNavigator doesn't refresh [message #465527 is a reply to message #465520] Sun, 01 April 2007 08:52 Go to previous messageGo to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
In <b>Preferences->Workspace</b> you can select the option
"Refresh automatically" if it is available in your application.
Re: ResourceNavigator doesn't refresh [message #465529 is a reply to message #465527] Sun, 01 April 2007 09:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: unidad.gmx.net

Marcel schrieb:
> In <b>Preferences->Workspace</b> you can select the option
> "Refresh automatically" if it is available in your application.

Yes! Thank you!

Though it needs about 5 seconds to automatically update the view,
it will do it.

I suppose I can't set the option "Refresh automatically"
programmatically to true?

Greets, Ralf
Re: ResourceNavigator doesn't refresh [message #465530 is a reply to message #465529] Sun, 01 April 2007 15:36 Go to previous messageGo to next message
zakir Hussain is currently offline zakir HussainFriend
Messages: 76
Registered: July 2009
Member
I think you can get the treeviewer of the resource navigator view...

and then call treeviewer.refresh() in order to refresh the treeviewer
which i s consisting of all the files from the projects in the workspace
Re: ResourceNavigator doesn't refresh [message #465531 is a reply to message #465530] Sun, 01 April 2007 16:43 Go to previous message
Eclipse UserFriend
Originally posted by: unidad.gmx.net

zakir schrieb:
> I think you can get the treeviewer of the resource navigator view...
> and then call treeviewer.refresh() in order to refresh the treeviewer
> which i s consisting of all the files from the projects in the workspace

A good idea!

I managed to access the treeviewer and I can change it too,
(e.g. collapse or expand) but I can't force it to update
the content of the tree.

refresh() doesn't work.

I think I have to create a ResourceChangedEvent but dunno how to make it...
Previous Topic:Editing objects in editors
Next Topic:En/Disable global actions?
Goto Forum:
  


Current Time: Thu Apr 25 02:27:50 GMT 2024

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

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

Back to the top