Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Run a job after Workbench is up
Run a job after Workbench is up [message #482002] Tue, 25 August 2009 05:23 Go to next message
Chetan Kumar is currently offline Chetan KumarFriend
Messages: 44
Registered: July 2009
Member
Hi folks!

I have a job (say load a couple of xml resources placed inside the
project in the workspace) to be executed after the workbench is up ... and
it should be executed only once ...

the code to actually perform my job exists but i want a way to invoke my
job. I found the IResourceChangeListener can trigger my job ... but i
don't want to listen to changes and stuff ... just running the job once is
fine.

thanks!
Chetan Kumar
Re: Run a job after Workbench is up [message #482196 is a reply to message #482002] Tue, 25 August 2009 16:42 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

We used to try org.eclipse.ui.progress.WorkbenchJob but that doesn't handle this scenario well ... there is an open bug although I can't find it at the moment.

Are you in an RCP app (where you could use the WorkbenchAdvisor) or are you a plugin in the eclipse IDE?

PW


Re: Run a job after Workbench is up [message #482348 is a reply to message #482196] Wed, 26 August 2009 10:34 Go to previous message
Chetan Kumar is currently offline Chetan KumarFriend
Messages: 44
Registered: July 2009
Member
Thanks for the reponse!

I don't run an RCP app ... but the application:
org.eclipse.ui.ide.workbench.
Anyway, i was able to solve my problem. I moved the "load resources" job
into an existing adapter on IProject instance. There i can load resources
contained under the project on a need basis.

Chetan Kumar

Paul Webster wrote:

> We used to try org.eclipse.ui.progress.WorkbenchJob but that doesn't handle
this scenario well ... there is an open bug although I can't find it at the
moment.

> Are you in an RCP app (where you could use the WorkbenchAdvisor) or are you
a plugin in the eclipse IDE?

> PW
Previous Topic:UML2 Class Diagram q
Next Topic:how to get all the types avaiable in my eclipse Workspace
Goto Forum:
  


Current Time: Sat Dec 20 14:29:23 GMT 2014

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

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