Juergen Schmidt wrote:
Hi Robert,
it's up to you to implement a small protocol handler and do the "real"
stuff on demand. I would decouple the protocol handler from the real
functionality and would create a new service for it. Later on you can
instantiate a new object supporting this service on demand ...
You can provide both implementations (ensure different jars) in the same
oxt file.
Hope this helps
Juergen
Robert Vojta wrote:
Hi all,
I have a Java extension with 7 MB of .jar libraries inside. It takes
ages to load on several old computers (more than one minute). One icon
is associated with this extension (via protocol handler).
The problem is, that everything is loaded when you browse through the
items on the menu bar. From the user point of view, everything should
be loaded after first click on the associated menu item. Is there a
way how to do it? User can wait one minute when he clicks on the menu
item, but not when he is browsing menu.
Hi Robert,
Juergen described a good solution for your problem. Currently I don't
see another way to circumvent your problem with the menu. Java
developers should be aware that their extensions are loaded at runtime
and can create performance problems! If it would be possible for you to
use a toolbar instead of the menu you can use the "Button" complex
toolbar controller to trigger your code. This button doesn't register
itself for status updates, therefore your code is not accessed until the
user presses the button. We invented this kind of toolbar item exactly
for your current use case. Please be aware that you cannot influence the
state of the button (e.g. enable/disable it, change the tooltip at
runtime). For more information please look at the wiki documentation for
complex toolbar controllers:
http://wiki.services.openoffice.org/wiki/Framework/Article/Generic_UNO_Interfaces_for_complex_toolbar_controls
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]