[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.ve] Re: VE Code Generation: Who generates global variable declarations?

Ok, so I found this:

http://www.eclipsezone.com/eclipse/forums/t43277.html

which tells me how to generate my own getter method (with correct return type).

But I still don't know how I can influence the generation of the instance variable. Looking at the code in BeanPartFactory.generateInstanceDecl(..) did not reveal any (obvious) hooks that Icould use. I guess that it would be needed to provide an own InstanceVariableTemplate there, but since this is not created through a factory, chances seem slim to do so.

So the question remains, how I can generate:

 private @SpecialAnnotation AbstractPanel myPanel = null;

instead of:

 private SomeSpecialPanel myPanel = null;

If a SomeSpecialPanel is dropped in the editor.

Thanks,
Kaspar

PS: Patching BeanPartFactory would be a solution, I guess, but obviously not a nice one...