Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Run Action after New Wizard or Import Wizard finishes
Run Action after New Wizard or Import Wizard finishes [message #526662] Mon, 12 April 2010 14:27 Go to next message
JavaJ Missing name is currently offline JavaJ Missing nameFriend
Messages: 45
Registered: July 2009
Member
I'm trying to refresh a view after the new wizard or import wizard runs. I'm using a 3rd party plugin that writes to the workspace but as of now, i have no way know when it runs and finishes. Once it completes, the 3rd party plugin creates a new project or imports data into an existing project, i need to force a refresh on my view.

After researching a little, i see I could somehow use the IResourceChangeListner and the ResourcePlugin.getWorkspace().addResourceChangeListener(this , PostChange) but the 3rd party doesn't wrap the events in the batch notifications, so every change to the workspace gets its own event.

If I had some way to know when the new project wizard was complete or import project was complete, I could force my refresh. Any ideas?

Thanks,
J
Re: Run Action after New Wizard or Import Wizard finishes [message #527214 is a reply to message #526662] Wed, 14 April 2010 13:47 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 418
Registered: July 2009
Senior Member
Hi J,

I can understand your use case. I suggest you file a bug for a Wizard
listener of some kind.

--

Best Regards,
Wim Jongman
-- Computers are not intelligent. They only think they are.
(Eclipse Old Skool Quote Service)

> I'm trying to refresh a view after the new wizard or import wizard runs.
I'm using a 3rd party plugin that writes to the workspace but as of now, i
have no way know when it runs and finishes. Once it completes, the 3rd party
plugin creates a new project or imports data into an existing project, i need
to force a refresh on my view.
>
> After researching a little, i see I could somehow use the
IResourceChangeListner and the
ResourcePlugin.getWorkspace().addResourceChangeListener(this , PostChange)
but the 3rd party doesn't wrap the events in the batch notifications, so
every change to the workspace gets its own event.
>
> If I had some way to know when the new project wizard was complete or
import project was complete, I could force my refresh. Any ideas?
>
> Thanks,
> J
Previous Topic:[jface] Programmatic cell iteration in ColumnViewers
Next Topic:how to implement Zoom Bar in ScalableFreeformRootEditPart
Goto Forum:
  


Current Time: Mon Dec 22 15:08:42 GMT 2014

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

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