[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Creating tool options programatically
|
Hi, Doug,
Exactly! DSLs are the coolest new dimension of the EMF sphere. It
would be fanstatic if the tools, themselves, could provide a standard
description of their capabilities in the form of some DSL that could be
loaded straight into CDT's MBS model. And I don't doubt that it would
be easier to ensure adequately flexible (and, conversely, constrained)
dynamics using a model-driven approach.
cW
On Mon, 2009-04-27 at 14:15 -0400, Doug Schaefer wrote:
> You want to go there do you ;). That's something that Dan Leroux (of
> IBM) proposed to me when we started this thing. But that was 6 years
> ago and probably wasn't the right choice. Having played in the XML
> lately, I don't think that's the best choice either. You could use a
> DSL to do it and I wouldn't be too opposed to that. I'm mainly
> interested in having better dynamics on the model to make project
> build defs more flexible. E.g. the cross compiler toolchain I did for
> my tutorial using a Template is pretty kludgy. It should be easier to
> inspect the environment and build up your options.
>
> Doug.
>
>
>
> On Mon, Apr 27, 2009 at 1:55 PM, Christian W. Damus <cdamus@xxxxxxx>
> wrote:
>
> Hi, Doug,
>
> Why build a tool chain with Java code? It should be described
> as an instance of an EMF model.
>
> cW
>
>
>
>
>
> On Mon, 2009-04-27 at 13:44 -0400, Doug Schaefer wrote:
>
> > This is definitely one area I want to enhance with a new rev
> > of the build model. There are limits to what you can do with
> > the dynamicElementProvider, for whatever reason. I'd like to
> > be able to express my entire tool chain using Java. That
> > needs to be made easier.
> >
> > Doug.
> >
> > On Mon, Apr 27, 2009 at 1:09 PM, Chris Recoskie
> > <recoskie@xxxxxxxxxx> wrote:
> >
> > The buildDefinitions extension point has a provision
> > for this... the dynamicElementProvider. However, I
> > don't think anyone has used this in quite some time
> > and so I'm not sure it's fully functional any more.
> >
> > This is from the extention point description:
> >
> > <!ELEMENT dynamicElementProvider EMPTY>
> >
> > <!ATTLIST dynamicElementProvider
> >
> > class CDATA #REQUIRED
> >
> > name CDATA #REQUIRED>
> >
> > An optional element that allows a tool implementor
> > to supply a class that creates one or more dynamic
> > toolchain elements. For example, the class might
> > create a new tool reference based on the contents of
> > a special file, and a new target that uses that
> > reference.
> >
> > * class - The class that implements
> > the IManagedConfigElementProvider
> > interface. The logic of determining
> > the elements is left to the
> > implementer, but they must be
> > correctly formed or the build model
> > will have trouble loading.
> > * name - A meaningful name for the
> > type of element being provided.
> >
> > ===========================
> > Chris Recoskie
> > Team Lead, IBM CDT and RDT
> > IBM Toronto
> > Inactive hide details for Mike Wrighton
> > <mike.wrighton@xxxxxxxxxxxxxx>Mike Wrighton
> > <mike.wrighton@xxxxxxxxxxxxxx>
> >
> >
> > Mike Wrighton <mike.wrighton@xxxxxxxxxxxxxx>
> > Sent by: cdt-dev-bounces@xxxxxxxxxxx
> >
> > 04/27/2009 12:30 PM
> >
> > Please respond to
> >
> > "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
> >
> > To
> >
> > "CDT General
> > developers
> > list."
> > <cdt-dev@xxxxxxxxxxx>
> >
> > cc
> >
> >
> >
> >
> > Subject
> >
> > [cdt-dev]
> > Creating tool
> > options
> > programatically
> >
> >
> >
> >
> > Hi,
> >
> > Does anyone know if there's a way to create (or
> > populate) tool options
> > at runtime? I need to query the toolchain for a list
> > of supported
> > targets and display them in a combo.
> >
> > Cheers,
> > Mike
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >
> >
> >
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >
> >
> >
> >
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>
> ______________________________________________________________
>
>
> Christian W. Damus
> Software Developer, IDE Team
> QNX Software Systems
>
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>
>
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
________________________________________________________________________
Christian W. Damus
Software Developer, IDE Team
QNX Software Systems