|Reusing the server explorer in a ContainerCheckedTreeViewer [message #592340]
||Thu, 31 July 2008 23:01
Originally posted by: philippe.girard.gmail.com|
I am interested in becoming a contributor to the Datatools project. I'm a
DBA and I am very much impressed with what has been done so far and I want
to add features to the project.
One of these feature is a project nature for database. Instead of having
to create a generic project this would be a dedicated project nature for
I am currently developping the New Project wizard and on one of the wizard
page I would like to display the SQL Model from the selected connection
profile (I reused the ProfileSelectionComposite for selecting the
connection) in a ContainerCheckedTreeViewer so that the user could select
the database objects to export as DDL statement.
Of course to fill the ContainerCheckedTreeViewer I need a ContentProvider
and a LabelProvider and I have been trying to reuse the existing
SQLModelContentProviderExtension and SQLModelLabelProviderExtension. But I
have not met much success so far. I get the first level built and then
thrown an exception.
It looks like the existing classes are too tied to a CommonViewer class to
be reused in a ContainerCheckedTreeViewer, but I might be mistaken and
simply overlooking something.
Anybody know if reusing any of the existing Content and Label provider
could be reused in such a fashion ?
Should I develop my own Content and Label provider to fill a
ContainerCheckedTreeViewer (and then worry about having to support varying
Any pointer would be much appreciated...
BTW the source code is hosted at sourceforge.net under the dtp-dbproject.
Powered by FUDForum
. Page generated in 0.01483 seconds