IFolder.resfreshLocal() doesn't show new files [message #467067] |
Mon, 23 January 2006 21:59 |
Eclipse User |
|
|
|
Originally posted by: ngocdannytn.sbcglobal.net
Hi.
After my code generated several new files under an IFolder, I used
myFolder.refreshLocal(IFolder.DEPTH_ONE,monitor);
to refresh the folder. However, the new files didn't show up in the Package
Explorer view. I had to manually refresh (F5) the folder. I'm using Eclipse
3.0.2.
Regards,
Dan
|
|
|
Re: IFolder.resfreshLocal() doesn't show new files [message #467069 is a reply to message #467067] |
Mon, 23 January 2006 23:18 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Try using DEPTH_INFINITE instead.
Danny Nguyen wrote:
> Hi.
> After my code generated several new files under an IFolder, I used
> myFolder.refreshLocal(IFolder.DEPTH_ONE,monitor);
> to refresh the folder. However, the new files didn't show up in the Package
> Explorer view. I had to manually refresh (F5) the folder. I'm using Eclipse
> 3.0.2.
> Regards,
> Dan
>
>
--
Thanks,
Rich Kulp
|
|
|
Re: IFolder.resfreshLocal() doesn't show new files [message #467071 is a reply to message #467069] |
Tue, 24 January 2006 06:10 |
Eclipse User |
|
|
|
Originally posted by: ngocdannytn.sbcglobal.net
Hi Rich.
I tried DEPTH_ZERO, DEPTH_ONE and DEPTH_INFINITE but none of them seemed to
work.
Regards,
Dan
"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:dr3o85$5sk$1@utils.eclipse.org...
> Try using DEPTH_INFINITE instead.
>
> Danny Nguyen wrote:
> > Hi.
> > After my code generated several new files under an IFolder, I used
> > myFolder.refreshLocal(IFolder.DEPTH_ONE,monitor);
> > to refresh the folder. However, the new files didn't show up in the
Package
> > Explorer view. I had to manually refresh (F5) the folder. I'm using
Eclipse
> > 3.0.2.
> > Regards,
> > Dan
> >
> >
>
> --
> Thanks,
> Rich Kulp
|
|
|
Re: IFolder.resfreshLocal() doesn't show new files [message #467083 is a reply to message #467071] |
Tue, 24 January 2006 15:45 |
Alex Blewitt Messages: 946 Registered: July 2009 |
Senior Member |
|
|
Can you check other views (navigator, Java Browsing etc.) to see if they turn up in there? My guess is that Eclipse has found them, and will show them in the Navigator view.
Have you got auto-build disabled? If you have, then Eclipse won't auto-build them, and a bunch of the views may not get refreshed. (Probably not, but it's a long shot.)
Of course, it could be a bug in 3.0.2 that the package explorer doesn't get refreshed when a resource change occurs, but only after a build or manual refresh. However, given that 3.1 has been out for a while and 3.2 is well under way, unless the problem is repeatable on newer builds it's unlikely (but not impossible) that reporting a bug will get it fixed...
Alex.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03379 seconds