Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [ve-dev] SWT code patterns

Title: Message
 
Actually, the code pattern described above is probably a good default.  But it might be nice to have a right-click option on a control: "Refactor -> Extract Factory Method" that makes *any* control into a factory method and puts it in the palette.
What I meant to say here is that the idea of making separate methods for each top-level control in the container seems like a good default choice.  But it would also be nice to allow the developer to selectively refactor out any control (and its contents) into a factory method.
 
Does this make sense in general?
 
I also understand if the answer is, "Sounds like a pretty good idea, but we need to defer it for now."  Like Gili said, the goal is currently to make as few changes as possible to CodeGen in order to support SWT.
 
 
Dave

Back to the top