properties-hidden also for wbp-factory.xml

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

properties-hidden also for wbp-factory.xml

Postby mkornatzki » Thu Oct 22, 2009 2:05 am

Hi,

is it possible that i can use <properties-hidden> in wbp-factory.xml?

I have a factory for Buttons and the text get set by the factory.
I don't want that the user change the text in the propertyeditor. (i know in sourcecode it is still possible)

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

Re: properties-hidden also for wbp-factory.xml

Postby Eric Clayberg » Tue Oct 27, 2009 4:59 pm

In the latest build, you can now create a file in the package of factory with the name {FactoryClass}.{methodSignature}.wbp-component.xml (for example, StaticFactory.createButton().wbp-component.xml), and it will be used in addition to the usual description of the factory method return type.
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: properties-hidden also for wbp-factory.xml

Postby mkornatzki » Tue Oct 27, 2009 11:47 pm

that sounds good and works great.

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

Re: properties-hidden also for wbp-factory.xml

Postby Eric Clayberg » Wed Oct 28, 2009 4:27 am

Glad that works for you.
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