|How to generate event handlers in separate class? is this even possible? [message #1035207]
||Sat, 06 April 2013 09:55
| Pradeep Simha
Registered: February 2013
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?
Powered by FUDForum
. Page generated in 0.01925 seconds