SHow constructor in property editor

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

SHow constructor in property editor

Postby mkornatzki » Tue Jul 27, 2010 1:07 am

Hi,

i like the possibility that i can configure factories with wbp-factory.xml.

Now i want to make a wbp-component.xml for my component.
I have a class with the following constructor
Code: Select all
   public ExtTableModeToggleButtons(
      ExtTable newExtTable) {
      setExtTable(newExtTable);
      initialize();
   }

My xml file looks like (without xml header)
Code: Select all
    <!-- CREATION -->
    <creation>
      <source><![CDATA[new de.parcit.guibase.swing.table.exttable.buttons.ExtTableModeToggleButtons(null)]]></source>
    </creation>
   
    <!-- CONSTRUCTORS -->
    <constructors>
       <constructor>
            <parameter type="de.parcit.guibase.swing.table.exttable.table.ExtTable" property="setExtTable(de.parcit.guibase.swing.table.exttable.table.ExtTable)"/>
       </constructor>   
    </constructors>
   
    <!-- PROPERTIES -->
    <properties-preferred names="extTable" />

the creation works as expected but i thought that i can see the constructor with its parameter in the property editor but i don't.
Can you please tell me what i am making wrong?

cheers,
michael
mkornatzki
 
Posts: 121
Joined: Wed Oct 15, 2008 3:57 am

Re: SHow constructor in property editor

Postby Eric Clayberg » Thu Jul 29, 2010 4:45 am

Try this using the latest build.

We have added support for object properties in the constructor.
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