Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Replacing JavaSourceTranslator??
Replacing JavaSourceTranslator?? [message #610817] Tue, 20 September 2005 07:06
Eclipse UserFriend
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
Previous Topic:Replacing JavaSourceTranslator??
Next Topic:How to load a classpath container library programmatically
Goto Forum:
  


Current Time: Fri Mar 29 02:39:03 GMT 2024

Powered by FUDForum. Page generated in 0.02231 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top