Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Remove the ODA DataSource properties dialog from the wizard
Remove the ODA DataSource properties dialog from the wizard [message #45660] Wed, 18 June 2008 12:28 Go to next message
Eclipse User
Originally posted by: vs.sreeharsha.gmail.com

Hello,

I am developing a custom BIRT ODA Driver for an RCP application. I have
created the Runtime and Designer Plugins for ODA and have named my
datasource as "Test DataSource". Now, when I run the RCP application and
try creating a new report selecting "Test DataSource" as the data
source, the next screen is properties dialog with entries for
"property1" and "property2" for that DataSource. My datasource doesn't
need user to enter any properties for the datasource, as the data is got
from the internal API calls. Does anyone have idea of how can I *not*
show the datasource properties dialog.

I tried deleting the properties from
"org.eclipse.datatools.connectivity.oda.dataSource" extension point of
the runtime plugin and also tried deleting the
"org.eclipse.datatools.connectivity.oda.dataSource" extension point
itself. But that did not work out. Can anyone help me take out that(data
source properties) dialog window from my application?

Thank you
-Sree
Re: Remove the ODA DataSource properties dialog from the wizard [message #45720 is a reply to message #45660] Thu, 19 June 2008 17:24 Go to previous messageGo to next message
Linda Chan
Messages: 844
Registered: July 2009
Senior Member
Sree,

It may be possible to not have any custom data source page, but I'm afraid
that it will involve quite a bit of coding. A custom data source UI can
extend the ODA data source wizard class (NewDataSourceWizard) to control its
wizard pages. And specify your wizard in the newWizard.class attribute of
the org.eclipse.datatools.connectivity.connectionProfile extension point. If
you also want to not have a property page node show up in BIRT Data Source
Editor, this will probably require overriding the Data Source Editor (in
org.eclipse.birt.report.designer.ui) itself.

Alternatively, consider using a read-only page instead for your custom data
source wizard/property page. The BIRT Classic Models Sample Database data
source (org.eclipse.birt.report.data.oda.sampledb) is a good example. Its
data source page displays a read-only summary of the built-in properties
that it uses, which provides a nice context info for the users. To do this,
do not specify any property definition in your
"org.eclipse.datatools.connectivity.oda.dataSource" extension. Then specify
your own custom wizard page class (that extends from
org.eclipse.datatools.connectivity.oda.design.ui.wizards.Dat aSourceWizardPage)
in your "org.eclipse.datatools.connectivity.oda.design.ui.dataSource "
extension. And specify your custom property page class (that extends from
DataSourceEditorPage) in your "org.eclipse.ui.propertyPages" extension.

Linda
Re: Remove the ODA DataSource properties dialog from the wizard [message #45750 is a reply to message #45720] Thu, 19 June 2008 18:25 Go to previous message
Eclipse User
Originally posted by: vs.sreeharsha.gmail.com

Thanks a lot for the detailed response Linda. I appreciate it. I will
probably try the read-only page method for my Data Source now as we need
it done quick. I will probably write a new page that extends
NewDataSourceWizard and override the methods later as an enhancement.
Thanks for the suggestions.

-Sree


Linda Chan wrote:
> Sree,
>
> It may be possible to not have any custom data source page, but I'm afraid
> that it will involve quite a bit of coding. A custom data source UI can
> extend the ODA data source wizard class (NewDataSourceWizard) to control its
> wizard pages. And specify your wizard in the newWizard.class attribute of
> the org.eclipse.datatools.connectivity.connectionProfile extension point. If
> you also want to not have a property page node show up in BIRT Data Source
> Editor, this will probably require overriding the Data Source Editor (in
> org.eclipse.birt.report.designer.ui) itself.
>
> Alternatively, consider using a read-only page instead for your custom data
> source wizard/property page. The BIRT Classic Models Sample Database data
> source (org.eclipse.birt.report.data.oda.sampledb) is a good example. Its
> data source page displays a read-only summary of the built-in properties
> that it uses, which provides a nice context info for the users. To do this,
> do not specify any property definition in your
> "org.eclipse.datatools.connectivity.oda.dataSource" extension. Then specify
> your own custom wizard page class (that extends from
> org.eclipse.datatools.connectivity.oda.design.ui.wizards.Dat aSourceWizardPage)
> in your "org.eclipse.datatools.connectivity.oda.design.ui.dataSource "
> extension. And specify your custom property page class (that extends from
> DataSourceEditorPage) in your "org.eclipse.ui.propertyPages" extension.
>
> Linda
>
>
Re: Remove the ODA DataSource properties dialog from the wizard [message #591556 is a reply to message #45660] Thu, 19 June 2008 17:24 Go to previous message
Linda Chan
Messages: 844
Registered: July 2009
Senior Member
Sree,

It may be possible to not have any custom data source page, but I'm afraid
that it will involve quite a bit of coding. A custom data source UI can
extend the ODA data source wizard class (NewDataSourceWizard) to control its
wizard pages. And specify your wizard in the newWizard.class attribute of
the org.eclipse.datatools.connectivity.connectionProfile extension point. If
you also want to not have a property page node show up in BIRT Data Source
Editor, this will probably require overriding the Data Source Editor (in
org.eclipse.birt.report.designer.ui) itself.

Alternatively, consider using a read-only page instead for your custom data
source wizard/property page. The BIRT Classic Models Sample Database data
source (org.eclipse.birt.report.data.oda.sampledb) is a good example. Its
data source page displays a read-only summary of the built-in properties
that it uses, which provides a nice context info for the users. To do this,
do not specify any property definition in your
"org.eclipse.datatools.connectivity.oda.dataSource" extension. Then specify
your own custom wizard page class (that extends from
org.eclipse.datatools.connectivity.oda.design.ui.wizards.Dat aSourceWizardPage)
in your "org.eclipse.datatools.connectivity.oda.design.ui.dataSource "
extension. And specify your custom property page class (that extends from
DataSourceEditorPage) in your "org.eclipse.ui.propertyPages" extension.

Linda
Re: Remove the ODA DataSource properties dialog from the wizard [message #591569 is a reply to message #45720] Thu, 19 June 2008 18:25 Go to previous message
Eclipse User
Originally posted by: vs.sreeharsha.gmail.com

Thanks a lot for the detailed response Linda. I appreciate it. I will
probably try the read-only page method for my Data Source now as we need
it done quick. I will probably write a new page that extends
NewDataSourceWizard and override the methods later as an enhancement.
Thanks for the suggestions.

-Sree


Linda Chan wrote:
> Sree,
>
> It may be possible to not have any custom data source page, but I'm afraid
> that it will involve quite a bit of coding. A custom data source UI can
> extend the ODA data source wizard class (NewDataSourceWizard) to control its
> wizard pages. And specify your wizard in the newWizard.class attribute of
> the org.eclipse.datatools.connectivity.connectionProfile extension point. If
> you also want to not have a property page node show up in BIRT Data Source
> Editor, this will probably require overriding the Data Source Editor (in
> org.eclipse.birt.report.designer.ui) itself.
>
> Alternatively, consider using a read-only page instead for your custom data
> source wizard/property page. The BIRT Classic Models Sample Database data
> source (org.eclipse.birt.report.data.oda.sampledb) is a good example. Its
> data source page displays a read-only summary of the built-in properties
> that it uses, which provides a nice context info for the users. To do this,
> do not specify any property definition in your
> "org.eclipse.datatools.connectivity.oda.dataSource" extension. Then specify
> your own custom wizard page class (that extends from
> org.eclipse.datatools.connectivity.oda.design.ui.wizards.Dat aSourceWizardPage)
> in your "org.eclipse.datatools.connectivity.oda.design.ui.dataSource "
> extension. And specify your custom property page class (that extends from
> DataSourceEditorPage) in your "org.eclipse.ui.propertyPages" extension.
>
> Linda
>
>
Previous Topic:Derby territory based databases
Next Topic:Ping Failed on the Data Source Properties page
Goto Forum:
  


Current Time: Tue Jul 22 19:40:58 EDT 2014

Powered by FUDForum. Page generated in 0.02868 seconds