List Info

Thread: Java: transient changes really temporary?




Java: transient changes really temporary?
user name
2006-02-27 14:42:35
Hi together,

I have one more questions understanding UNO. I tried to make
transient
changes to the menubar as you might have read on this list.
And it works
(due to your help).

My question now is: if I open a OOo with transient changes
and the user
changes the menu configuration, the changes are no more
transient. They
are saved together with my "transient" changes.
Why is this?

Greetings, Tobias

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

Java: transient changes really temporary?
user name
2006-02-28 08:05:33
Hi Carsten,

your posting in the other thread solved my problem.

> I have one more questions understanding UNO. I tried to
make transient
> changes to the menubar as you might have read on this
list. And it works
> (due to your help).
> 
> My question now is: if I open a OOo with transient
changes and the user
> changes the menu configuration, the changes are no more
transient. They
> are saved together with my "transient"
changes. Why is this?

I have to add the lines:
-----%<-----
// Make changes only transient (temporary).
com.sun.star.beans.XPropertySet xPropSet = (XPropertySet)
        UnoRuntime.queryInterface(XPropertySet.class,
myMenubar);
xPropSet.setPropertyValue("Persistent", new
Boolean(false));
-----%<-----

Here is the thread with the full code:
http://api.openoffice.org/servlets/ReadMsg?li
st=dev&msgNo=14540

Thanks for your help!

Greetings, Tobias

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )