wheelsdong wrote:
Hi Carsten,

Thank you very much for your advice. I followed the links you provided and
tried to run the example, but I failed. My steps are below.

I read the chapters on Jobs of the developer guide. Then I tried the example
JobsAddon provided by SDK. The path is
OpenOffice.org_2.4_SDK\examples\DevelopersGuide\Components\Addons\JobsAddon
There are three files in this example: Addons.xcu, AsyncJob.java, Jobs.xcu.

I created a simple OpenOffice.org Add-on using the OpenOffice plugin for
NetBeans, we call it NewAddon. Then I did the following: 1, copied the configuration code in Addons.xcu of JobsAddon to Addons.xcu of
NewAddon.
2, copied the file Jobs.xcu to the project NewAddon
3, extended XAsyncJob interface in NewAddon and copy the code in
executeAsync() to the same method in NewAddon.

After building successfully, I made a breakpoint in executeAsync() and tried
to debug the NewAddon. But executeAsync() was never called.
I am afraid I am not using Jobs correctly. Would you please share me some
examples or give me more advice? Thank you very much.


Did you changed the Jobs.xcu so it uses the right event ?
Example Jobs.xcu file uses e.g. "onFirstVisibleTask" where you should use "OnViewCreated" for your special purpose.

Regards
Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to