Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] Extending the ScriptModel

Have a look at: http://wiki.eclipse.org/Extending_PDT_2.2

2010/3/2 Robert Gründler <doobre@xxxxxxxxx>
Hi everyone,

i'm asking for some advice how to implement the following scenario:

The framework i'm extending PDT for uses Yaml config files, and i would
like to add support for them in the IDE. One example for such a configuration
file would be a routing file, which looks like this:

routing.yml:

home:
 url: /
 param: { module: home, action: index }

dashboard:
 url: /
 param: { module: user, action: dashboard }

I would like to add this information to the ScriptModel as a new Type,
so for example you can expand the .yml file in the Project Explorer and
have 2 more nodes "home" and "dashboard", or add content assist
which suggests those 2 routings in cases like $someController->redirect("@ home | dashboard");

Basically i would need to tell DLTK that there are 2 more Model elements:

1. A Routing (which represents the .yml file)
2. A Route (which has Routing as parent element)

In the above example the model would have one Routing (routing.yml) which
contains 2 Routes (home and dashboard).

Has anyone a hint how i could accomplish this?

thanks again!

-robert


_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev


Back to the top