ResourceNavigator doesn't refresh [message #465520] |
Sat, 31 March 2007 18:39 |
Eclipse User |
|
|
|
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 #465529 is a reply to message #465527] |
Sun, 01 April 2007 09:36 |
Eclipse User |
|
|
|
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 #465531 is a reply to message #465530] |
Sun, 01 April 2007 16:43 |
Eclipse User |
|
|
|
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...
|
|
|
Powered by
FUDForum. Page generated in 0.02969 seconds