Hello giancarlo,

On Wednesday 11 March 2009, 08:12, giancarlo wrote:
> >> My extension has:
> >> - a toolbar button
> >> - a menu item
> >>
> >> These do the same thing, and I need the extension can run no more than
> >> once.
> >> For example: I click the toolbar button, the extension starts. Now, if
> >> and I click on the menu command, I do not want another session of the
> >> extension!
> >>
> >> Is there any way to do that?
> >
> > in what language are you programming?
> I'm programming in java

then this can be rather simple, and does not depend on OOo API, but in how you 
design your implementation.
Another point is: do you want your extension to "run" only once per frame, or 
once per OOo main process?
As you've been told, you can solve this with a flag; but this depends on your 
design.

Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


"Aus der Kriegsschule des Lebens
                - Was mich nicht umbringt,
        macht mich härter."
                Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to