Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » IFolder.resfreshLocal() doesn't show new files
IFolder.resfreshLocal() doesn't show new files [message #467067] Mon, 23 January 2006 21:59 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
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.
Re: IFolder.resfreshLocal() doesn't show new files [message #467084 is a reply to message #467071] Tue, 24 January 2006 15:51 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
You will geta better response to this question on the eclipse.platform
newsgroup:

news://news.eclipse.org/eclipse.platform

"Danny Nguyen" <ngocdannytn@sbcglobal.net> wrote in message
news:dr4ge3$3jm$1@utils.eclipse.org...
> 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
>
>
Previous Topic:Masked text
Next Topic:re-using a composite
Goto Forum:
  


Current Time: Mon Aug 26 00:07:33 GMT 2019

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

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

Back to the top