Replacing JavaSourceTranslator?? [message #610817] |
Tue, 20 September 2005 07:06 |
Eclipse User |
|
|
|
Originally posted by: Karsten.Meier.removethis.gmx.org
Hello experts,
as i wrote earlier i was able to modify the generation of the base
class through specialize the wizard. But now I cant believe what I
see:
Because I generate something different than Java I want to override
the way the source is translated. To do this I found the
"JavaSourceTranslator" and thought: "Bingo!" But: This thing is such
encapsulated that it is impossible through specialization to modify
parts of it beaviour. Ok, I though, copy and modify is the way.
No its not! Doing this there are some other classes who have
bidirectional dependency - all not through nice interfaces, no,
directly. The whole chain ends in an interface IBeanDeclModel which
has a method "setSourceSynchronizer" with an "JavaSourceSynchronizer"
as a parameter. This class more or less directly references the
JavaSourceTranslator and provides NO way to replace the translator!
No interfaces, no template methods - nothing!
The only way to get your own code generated you have to copy the whole
VE and modify it? That cant be true - VE calls himself a framework!
Sorry - I'm quite frustrated.
If there is a way to do this without copy everything: please tell me
how!!
Karsten
|
|
|
Powered by
FUDForum. Page generated in 0.02231 seconds