[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.commercial] Re: Displaying custom property in SWT Designer
|
"Viswanathan" <viswanathan_s@xxxxxx> wrote in message
news:8e2f936ebb1b0fb0083215d7dcfb957a$1@xxxxxxxxxxxxxxxxxx
I am in the assignment of creating a custom control using custom composite
feature in the SWT designer.
I need to display a string property in the Property grid for which the
value could be any from a set of values that are to be determined at
runtime from the XML Schema.
If it could have been determined already I would prefer associating them
using a Enum variable so that it display the list of items in a combo
control in the Propery grid against my property.
Since the list of values are undetermined at design time how do I proceed
with this? Is there anything that can do for getting the list of values in
the property grid for my property.
See the following SWT Designer forum discussion threads and sample
projects...
Enumerated property in custom SWT composite
http://www.instantiations.com/forum/viewtopic.php?t=700
Properties for custom controls
http://www.instantiations.com/forum/viewtopic.php?t=756
Support for enums
http://www.instantiations.com/forum/viewtopic.php?t=769
Sample code:
http://www.instantiations.com/windowbuilderpro/files/enum_example.zip
http://www.instantiations.com/windowbuilderpro/files/custom-swt-controls-test.zip
-Eric Clayberg
Sr. Vice President of Product Development
Instantiations, Inc.
http://www.instantiations.com
http://www.windowbuilderpro.com/
Author: "Eclipse: Building Commercial Quality Plug-ins"
http://www.awprofessional.com/title/032142672X