Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » When refreshLocal has finished
When refreshLocal has finished [message #667689] Sun, 01 May 2011 07:59 Go to next message
JeTBLaCK  is currently offline JeTBLaCK
Messages: 41
Registered: March 2011
Member
I need know when a refreshLocal command has finished.

How Can I know it?
Re: When refreshLocal has finished [message #667692 is a reply to message #667689] Sun, 01 May 2011 09:49 Go to previous messageGo to next message
Francis Upton IV is currently offline Francis Upton IV
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
JeTBLaCK wrote on Sun, 01 May 2011 04:59
I need know when a refreshLocal command has finished.

How Can I know it?


Maybe consider a progress monitor?


Re: When refreshLocal has finished [message #667695 is a reply to message #667692] Sun, 01 May 2011 09:56 Go to previous messageGo to next message
JeTBLaCK  is currently offline JeTBLaCK
Messages: 41
Registered: March 2011
Member
My problem is when the refreshLocal() has finished, the Package Explorer is not refreshed simultaneously (sometimes it is neccesary to wait) and I need to know when the Package Explorer has been refreshed.

Should I use a progress monitor?

[Updated on: Sun, 01 May 2011 09:58]

Report message to a moderator

Re: When refreshLocal has finished [message #667697 is a reply to message #667695] Sun, 01 May 2011 10:01 Go to previous message
Francis Upton IV is currently offline Francis Upton IV
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
JeTBLaCK wrote on Sun, 01 May 2011 06:56
My problem is when the refreshLocal() has finished, the Package Explorer is not refreshed simultaneously (sometimes it is neccesary to wait) and I need to know when the Package Explorer has been refreshed.

Should I use a progress monitor?


Ahh, that's a different issue. It's refreshed I think asynchronously based on resource notifications. I'm not sure how you would find out short of looking at the viewer state, but then you would have to poll it. There might be someting in Jface that could notify you if the viewer changed.


Previous Topic:Listener to Auto-Refresh
Next Topic:Manipulating Working Sets - beginner's questions
Goto Forum:
  


Current Time: Wed Jul 30 07:07:11 EDT 2014

Powered by FUDForum. Page generated in 0.02590 seconds