|
I've been hitting the DSL trail hard over the last couple weeks and have some designers and code generaters that would be of tremendous value to me if I could figure out how to get my model to interace with DEVENV and interact with project files, references, Types, or other language elements already in the solution.
For instance, I would like to be able to define a property "type" that has to provide a UITypeEditor capable of browsing the the project in a similar way that the Class View operates to enable the user to reference and datatype a property without having to manually type it in.
In another case, I would like to be able to add or remove files to the project in response to user actions within the DSL such as automatically (or through a command) add partial classes to the solution to add custom code to the generated code.
I know that the model can't really respond to events that occur within the ide, but I would like to be able to command the ide to do things in response to the model.
I hope that makes sense.
Aaron |