Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Reusing the server explorer in a ContainerCheckedTreeViewer
Reusing the server explorer in a ContainerCheckedTreeViewer [message #592340] Thu, 31 July 2008 23:01
Eclipse User
Originally posted by: philippe.girard.gmail.com

Hi,

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
databases.

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
ContentExtensions...) ?

Any pointer would be much appreciated...

BTW the source code is hosted at sourceforge.net under the dtp-dbproject.
Previous Topic:ODA Plugin Project Structure / References / Deployment
Next Topic:JDBCSchemaLoader, JDBCTableLoader, etc. broken for many drivers.
Goto Forum:
  


Current Time: Tue Jul 29 08:59:18 EDT 2014

Powered by FUDForum. Page generated in 0.01573 seconds