the parsing capability of Swing Designer

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

the parsing capability of Swing Designer

Postby chatbaby » Tue Apr 26, 2011 8:48 pm

I am looking for the information which discuss about the parsing
capability of Swing Designer, here is what I found from the Web site,

Here are some examples of constructs that WindowBuilder Pro does not
yet handle:
-Re-use of GridBagConstraint objects across multiple widgets (we
support reusing the same variable but not the same objects)
-UI construction through the use of local parameterized helper methods
-Multiple aliases (fields or local variables) referring to the same component
-Multiple references to the same widget definition through multiple
invocations of the same helper method
-Dynamic GUI code based on runtime calculations

I am wondering if this is all the code which swing designer cannot
parse and render? Do you have a more detailed document to explain what
is the "Dynamic GUI code based on runtime calculations"? I know loop
and if-else would be considered as in this category, but I am
wondering if there are any other cases which also fall into this
dynamic GUI code category?

Thank you very much for your help and time.

Cheers
Lawrence
chatbaby
 
Posts: 3
Joined: Fri May 02, 2008 1:57 pm

Re: the parsing capability of Swing Designer

Postby Eric Clayberg » Wed Apr 27, 2011 5:03 am

"Dynamic code" would be anything that is not static in nature. Imagine a form that is constructed based on a series of database calls or some other external state. Any widgets defined within a loop or within an if statement would be good examples of this.
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

Re: the parsing capability of Swing Designer

Postby chatbaby » Mon May 02, 2011 8:39 pm

HI Eric,
Thank you very much for your reply. I am wondering if you have more detailed documents to explain the parser which is used by WindowBuilder? Or would you please simply explain the parsing mechanism which is used by WindowBuilder?

I am a PhD student and I am doing some of my research based on WindowBuilder. So I need to understand the parsing mechanism which has been used by WindowBuilder, but it is really difficult to find a complete documentation to explain how the GUI parser works. :cry:

Cheers
Lawrence
chatbaby
 
Posts: 3
Joined: Fri May 02, 2008 1:57 pm

Re: the parsing capability of Swing Designer

Postby Eric Clayberg » Tue May 03, 2011 5:05 am

I am not aware of any such documents.

As a PhD student, you know that nothing beats looking at the actual code. WindowBuilder is now an Eclipse open source project, so you can check out the WB source here...

You should start by looking at the org.eclipse.wb.core.parseFactories extension point and its various implementors like org.eclipse.wb.internal.swing.parser.ParseFactory.

Take notes on what you find, write it up, and contribute it back to the project. We could always use more docs (especially on the internals).
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: No registered users and 1 guest

cron