[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [Dltk-dev] Extending the ScriptModel
|
Sorry I did not notice the following content:
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?
On Tue, Mar 2, 2010 at 4:04 PM, 赵忠伟
<zhaozhongwei@xxxxxxxxxxxxxxxx> wrote:
I think you have to parse the *.yml files(because you must transtate the text to model).
In Michael's link,I think it only works for php or php compatible files.
But I am not sure.
On Tue, Mar 2, 2010 at 3:51 PM, Michael Spector
<spektom@xxxxxxxxx> wrote:
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
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev
--
Thanks!
Best Regards!
Zhao
--
Thanks!
Best Regards!
Zhao