[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: How can I refresh the navigator
|
Nobody knows this?
I hate to answer my own questions!
Ok, I found out what to do - just in case that somebody is interested in the
solution:
First of all if you create a file or you just know the filename (like in my
case) of the file that will be created you need to retrieve an IResource and
then refresh it.
// get resource
IResource myresource =
ResourcesPlugin.getWorkspace().getRoot().findMember(myFilenameString);
// then just refresh it
myresource.refreshLocal(IResource.DEPTH_INFINITE, null /*or progress
monitor*/);
// the DEPTH_INFINITE constant is important to update the whole resourcetree
in deep
That's it!
Urs
"Urs" <krafzig@xxxxxxxxxx> wrote in message
news:b9ognr$2d5$1@xxxxxxxxxxxxxxxx
> Dear eclipse,
>
> after creating a file (e.g. 'foo.xml' via a JAXB Marshaller) in a specific
> project folder I can not see the file in your navigator. Only after
pressing
> F5 you display the filename in the tree of the navigator. What have I to
do
> in the sourcecode in order to have an automatic refresh.
>
> Thank you for your help.
>
> Regards
>
> Urs
>
>
>