https://issues.apache.org/ooo/show_bug.cgi?id=125691

Carl Marcum <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
                 CC|                            |[email protected]
     Ever confirmed|0                           |1

--- Comment #1 from Carl Marcum <[email protected]> ---
I can confirm the described behavior.
I started a new AddOn project AddOnTest2 and created menu items Command0, 1,
and 2
I assigned:
0 to writer and spreadsheet context
1 to writer
2 to spreadsheet

I added this to the AddOnTest2 constructor:
System.out.println("Contructor Context " + context.toString());
and this to each of the commands in the dispatch method
System.out.println("CommandX");
I deployed to AOO and opened a new writer there was no output yet.
When I clicked the the Menu I received:
Contructor Context com.sun.star.bridges.jni_uno.JNI_proxy@5b74bd37
[oid=7f2bf924e6d0;gcc3[0];f644c4deeb694c8d96e296f02b7a8e88,
type=com.sun.star.uno.XComponentContext]
Contructor Context com.sun.star.bridges.jni_uno.JNI_proxy@5b74bd37
[oid=7f2bf924e6d0;gcc3[0];f644c4deeb694c8d96e296f02b7a8e88,
type=com.sun.star.uno.XComponentContext]
then when selecting the commands 0 and 1 I received the expected:
Command0
Command1
I closed Writer and opened Calc and received no further output.
When I clicked the the Menu I received:
Contructor Context com.sun.star.bridges.jni_uno.JNI_proxy@5b74bd37
[oid=7f2bf924e6d0;gcc3[0];f644c4deeb694c8d96e296f02b7a8e88,
type=com.sun.star.uno.XComponentContext]
Contructor Context com.sun.star.bridges.jni_uno.JNI_proxy@5b74bd37
[oid=7f2bf924e6d0;gcc3[0];f644c4deeb694c8d96e296f02b7a8e88,
type=com.sun.star.uno.XComponentContext]
then when selecting the commands 0 and 2 I received the expected:
Command0
Command2

I'm not sure Netbeans is causing this issue. I will ask on the dev mailing list
on how the extension constructor is called by AOO and if this is expected
behavior.

Carl

-- 
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.

Reply via email to