Database Project - ILanguageSupport

Miguel Tadeu mtadeunet at
Mon Feb 6 09:40:42 UTC 2012

Hi  Niko,
In deed I'll need a connection. Here's what I have at the moment. I created
a new project template and I'm starting a SQL language support.

I'm still a little green on the kdevelop architecture so bare with me for a
while and please guide a bit(saying where I'm wrong or point me to

For now, I need to add some options, specific for database management...but
I think these options should only be available to the template I created.
Is there a way to do this?

Another question is, I'll need to create some environment vars. How can I
access them from my language support class?

As for c++ project(and other project types or templates), of course they
need databases :) but not inside the c++ project itself, I guess. That
would probably mess up kdevelop a bit. What I'm proposing is a separate
database project to manage a database only. I think it will make it cleaner
then giving database support for already existing templates.

Thanx for all your help

On Fri, Feb 3, 2012 at 8:28 PM, Miguel Tadeu <mtadeunet at> wrote:

> Hi,
> during the development, I felt the need to implement a ILanguageSupport
> class. I'm now overriding the contextMenuExtension method.
> One problem arises, here. I want to add new functionality for a project
> template that contains the specific structure for a database schema. But
> when I right click on some other project( like a c++ or php project ) I
> can't decide wether to add the items(specific database operations) or not.
> I'm figuring I should need to know which project type is selected, but I
> don't know how.
> Can anyone guide me a bit on this subject?
> Thanx to all,
> Miguel Tadeu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list