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


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) {

My xml file looks like (without xml header)
Code: Select all
    <!-- CREATION -->
      <source><![CDATA[new de.parcit.guibase.swing.table.exttable.buttons.ExtTableModeToggleButtons(null)]]></source>
    <!-- CONSTRUCTORS -->
            <parameter type="de.parcit.guibase.swing.table.exttable.table.ExtTable" property="setExtTable(de.parcit.guibase.swing.table.exttable.table.ExtTable)"/>
    <!-- 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?

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

Author: "Eclipse Plug-ins"
Eric Clayberg
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