Skip to main content


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] Fri, 01 August 2008 03:01
Eclipse UserFriend
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: Fri Apr 19 09:41:07 GMT 2024

Powered by FUDForum. Page generated in 0.01994 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top