Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » How to generate event handlers in separate class? is this even possible?
How to generate event handlers in separate class? is this even possible? [message #1035207] Sat, 06 April 2013 13:55 Go to next message
Pradeep Simha is currently offline Pradeep SimhaFriend
Messages: 6
Registered: February 2013
Junior Member
After hand writing lot of complex UI for our SWT application (basically a eclipse plugin), I found out this excellent tool (Window Builder Pro) and it reduces our lot of hand writing UI effort. So I am evaluating it to use for all of our future development, so my question is it possible to generate event handlers (eg SelectionListener) in separate class in custom package?

I tried in preferences dialolg (Window -> Preferences -> WindowBuilder -> SWT -> Code Generation -> Event Handlers) and found 3 options:

Create anonymous class
Create inner class
Implement listener interface in parent class
So there is no option to create in separate class. My idea is to have a separate package like (com.test.app.newprojectwizard.handlers) and in that package I will have class like NewProjectWizardHandlers.java which implements corresponding interface and will have event methods which take care of handling events. Similarly I will have handlers for various UI pages so that UI creating will be separated from event handler.

So is there anyway to implement same in WindowBuilder Pro ? or should I stick with above 3 options provided by WindowBuilder?
Re: How to generate event handlers in separate class? is this even possible? [message #1035493 is a reply to message #1035207] Sun, 07 April 2013 00:37 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
No. There is no option to do that in WindowBuilder.
Previous Topic:EMF DataBinding Converter
Next Topic:Data Binding Tab
Goto Forum:
  


Current Time: Thu Mar 28 22:56:26 GMT 2024

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

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

Back to the top