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.
Paul Webster Messages: 6813 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?
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?