Product: Application Framework
Type: new
Title: Direct singleton support in Basic
Posted by: [email protected]
Affected: basic
TaskId: i107070
<http://www.openoffice.org/issues/show_bug.cgi?id=107070>
Effective from: cws ab76
CWS:
<http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/ab76>
CWS status: ready for QA
*Flags*
-------
API/ BASIC [x]
Configuration [ ]
File format change [ ]
Help/ Guide [x]
Performance test [ ]
Translation [ ]
UI relevant [ ]
*Description*
-------------
OOo Basic now supports direct creation of Singleton instances
using a corresponding get method. Instead of
oContext = ....
oA = oContext.getValueByName("/singletons/my.own.special.TestSingleton")
now the following code can be used:
oA = my.own.special.TestSingleton.get()
or
oA = my.own.special.TestSingleton.get(oContext)
This is available only for singletons defined in IDL.
No specification as this is a non UI feature
Send feedback to [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]