ODA Extension - how to access Data Source properties? [message #580568] |
Wed, 05 July 2006 12:14 |
Eclipse User |
|
|
|
Originally posted by: polesen.nordija.com
Hi,
I'm trying to build my own ODA, by extending the
"org.eclipse.datatools.connectivity.oda.dataSource" extension point. I seem
to be unable to get access to the properties defined in the plugin.xml. I
have something like this in plugin.xml:
....
<properties>
<propertyGroup
defaultDisplayName="Connection Properties"
name="connectionProperties">
<property
canInherit="true"
defaultDisplayName="mondrian.catalog"
name="MONDRIAN_CATALOG_FILE"
type="string"/>
....
Now, when I define a new DataSource of my type, right-click it and chose
"Edit", I get a nice dialog with the above defined property. BUT: The value
I enter is *not* in the java.util.Properties instance i get in the call to
my implementation of "IConnection.open", which I thought they would be.
defaultValue="AutoStat.xml"
I think I've misunderstood something. I've used flatfile and jdbc ODAs for
examples and I can see the JDBC plugin defines a UI, with specific dialogs
for entering its properties.
I can also see that the value of the properties in my plugin are saved in
the report xml file under the element "<list-property
name="propertyBindings">".
And last: If I define the "defaultValue" property on my property elements in
my plugin.xml, these values *do* appear in the java.util.Properties
instance in open.
What am I missing?
Regards, Per
|
|
|
Powered by
FUDForum. Page generated in 0.02939 seconds