[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.dtp] Reusing the server explorer in a ContainerCheckedTreeViewer
|
- From: philippe.girard@xxxxxxxxx (Philippe Girard)
- Date: Fri, 1 Aug 2008 03:01:26 +0000 (UTC)
- Newsgroups: eclipse.dtp
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
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.