"FocusTraversalOnArray" code customization

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

"FocusTraversalOnArray" code customization

Postby murat_ar » Tue Jun 01, 2010 4:36 am

Window Builder 7.4 (Eclipse 3.4) is generating "FocusTraversalOnArray" inside a newly generated package "com.swtdesigner".
Sorry, but I do not want such a package in my project.

Q 1) I have a custom focus array implementation in my library, and I want the Window Builder to generate code like the following. Is it possible to do that?
Code: Select all
frame.setFocusTraversalPolicy(new MyFocusTravelOnArray(...));


Q 2) If item 1 is not possible, Can I change the "FocusTraversalOnArray" template code like the following?
Code: Select all
public class FocusTraversalOnArray extends MyFocusTravelOnArray {
        .........
    }


Q 3} If I include "com.swtdesigner" package in my library, can I prevent WindowBuilder from generating the package?

Any other suggestions??

Thanks in advance..
murat_ar
 
Posts: 5
Joined: Tue Jun 01, 2010 4:16 am

Re: "FocusTraversalOnArray" code customization

Postby Eric Clayberg » Tue Jun 01, 2010 6:19 am

murat_ar wrote:Q 1) I have a custom focus array implementation in my library, and I want the Window Builder to generate code like the following. Is it possible to do that?

No.

murat_ar wrote:Q 2) If item 1 is not possible, Can I change the "FocusTraversalOnArray" template code like the following?
.
No. It would be overwritten the next time you made a focus traversal change.

murat_ar wrote:Q 3} If I include "com.swtdesigner" package in my library, can I prevent WindowBuilder from generating the package?

Yes. If the class already exists in a jar on the classpath, it won't be generated.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: Google [Bot] and 1 guest