Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRun a job after Workbench is up
https://www.eclipse.org/forums/index.php/mv/msg/153053/482002/#msg_482002
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]]>Chetan Kumar2009-08-25T05:23:28-00:00Re: Run a job after Workbench is up
https://www.eclipse.org/forums/index.php/mv/msg/153053/482196/#msg_482196
Are you in an RCP app (where you could use the WorkbenchAdvisor) or are you a plugin in the eclipse IDE?
PW
]]>Paul Webster2009-08-25T16:42:39-00:00Re: Run a job after Workbench is up
https://www.eclipse.org/forums/index.php/mv/msg/153053/482348/#msg_482348
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?