Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Change code generation
Change code generation [message #661959] Mon, 28 March 2011 11:49 Go to next message
George  is currently offline George
Messages: 34
Registered: March 2011
Member
Hello,

My goal is to change the code generation in window builder.Can you help me?

thinks for all,
Re: Change code generation [message #662047 is a reply to message #661959] Mon, 28 March 2011 23:52 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric Clayberg
Messages: 857
Registered: July 2009
Location: Boston, MA
Senior Member
See the Code Generation settings...

http://code.google.com/javadevtools/wbpro/preferences/swt/pr eferences_code_generation.html

http://code.google.com/javadevtools/wbpro/preferences/swing/ preferences_code_generation.html
Re: Change code generation [message #662089 is a reply to message #662047] Tue, 29 March 2011 05:02 Go to previous messageGo to next message
George  is currently offline George
Messages: 34
Registered: March 2011
Member
thinks for your help.
I saw these articles before but I want to change the code generated for each component placed in a window.
for example I want when I did a "drag and drop" a button, a method that I specify are implemented in classes that I specify either generate.
Re: Change code generation [message #662584 is a reply to message #662089] Thu, 31 March 2011 04:42 Go to previous messageGo to next message
George  is currently offline George
Messages: 34
Registered: March 2011
Member
Hello,
It is not a solution for my previous proposal?
I need your help.
thinks
Re: Change code generation [message #662604 is a reply to message #662584] Thu, 31 March 2011 05:34 Go to previous messageGo to next message
Wojtek Surowka is currently offline Wojtek Surowka
Messages: 10
Registered: March 2011
Junior Member
If you want e.g. to automatically add a method invocation when a component is placed, you should read http://code.google.com/javadevtools/wbpro/NewComponentsTutor ial.pdf and http://code.google.com/javadevtools/wbpro/DesignerCustomizat ionAPI.pdf.

Regards,
Wojtek

[Updated on: Thu, 31 March 2011 05:37]

Report message to a moderator

Re: Change code generation [message #662631 is a reply to message #662604] Thu, 31 March 2011 07:13 Go to previous messageGo to next message
George  is currently offline George
Messages: 34
Registered: March 2011
Member
that's exactly what I want.Is it work with GWT Designer?
Re: Change code generation [message #662673 is a reply to message #662631] Thu, 31 March 2011 10:03 Go to previous messageGo to next message
Wojtek Surowka is currently offline Wojtek Surowka
Messages: 10
Registered: March 2011
Junior Member
Yes it should work with GWT Designer.

Regards,
Wojtek
Re: Change code generation [message #699285 is a reply to message #662673] Thu, 21 July 2011 05:19 Go to previous messageGo to next message
Rayleigh Missing name is currently offline Rayleigh Missing name
Messages: 20
Registered: July 2011
Junior Member
How can I change the component resize behaviour?
I have a custom layout and a set of custom components. When I change the size of a component, this components constraint should change rather than its bounds. The constraint contains the bounds.
Re: Change code generation [message #699556 is a reply to message #699285] Thu, 21 July 2011 15:03 Go to previous message
Eric Clayberg is currently offline Eric Clayberg
Messages: 857
Registered: July 2009
Location: Boston, MA
Senior Member
I would look at the implementation of things like SWT FormLayout, Swing SpringLayout, and others in the WB code base (whatever layout is closest to what you are doing would be a good choice). What you want to do is complex, but there are lots of existing examples you can learn from.
Previous Topic:missing Bindings
Next Topic:i18n problem: Key of externalized string fails to sync when changing name of widget.
Goto Forum:
  


Current Time: Thu Aug 28 21:35:04 EDT 2014

Powered by FUDForum. Page generated in 0.03654 seconds