Extending VE - modify the way the root is generated [message #610747] |
Tue, 13 September 2005 11:43 |
Eclipse User |
|
|
|
Originally posted by: Karsten.Meier.gmx.org
Hi,
thats just another try to get an answer.
First what I want to achieve:
(Platform: Ecipse 3.0.*; VE 3.0.*)
I need a way to get the VE to generate/decode code for JFace/SWT in a
special extended Java Version. One key "feature" for that is to
generate a different class header. For Example a dialog to edit
Addresses has to look like that (note the special keywords):
public team class AddressEditTeam {
public class AddressEditDialog played by Address {
/* ... */
}
}
Except the "played by" part, AddressEditDialog will look mostly like
Dialogs generated for SWT (at least for a first approach)
The AST ist also extended to represent such structures. So I think the
main problem is the question in how i can write a plugin that provides
something to translate the AST to the VE Modell.
I already read the tutorial to extend the palette - very helpful, but
its "problems" start after my problem is solved. I also read through
the report about the ULC extension and found some helpful graphs
(chapter 3: "VE Architecture"; chapter 3.6: "Code Generation and
Parsing").
But I miss the "how to" to do that!
First I tried to contribute to the extension point "newStyleComponent"
and got so far, that my "Style" ist listed in the "new Visual Class"
Wizard. Also I wrote a javajet for that and it worked "almost": all
the special keywords are ignored. Debugging shows, that my contributor
does generate the correct code, but some mechanisms seems to post
modfy it. The example from above will result in:
public class AddressEditTeam {
public class AddressEditDialog {
}
}
You see: a lot of questions. Is here someone who can spend some time
to give some (hopefully more than "look at BlaBlub.generateFoo()").
I saw several questions like this one in this group but never a really
good answer.
If I succeed in doing this I offer to produce a tutorial like
extending the palette.
greetings,
Karsten
|
|
|
Powered by
FUDForum. Page generated in 0.03295 seconds