Setting features at creation [message #123842] |
Wed, 26 April 2006 06:41  |
Eclipse User |
|
|
|
Originally posted by: wolfgang.gahleitner.ams-engineering.com
Hi,
I added some components to the swing palette (VE 1.1.0.1). One of them is
either a Button or a Checkbox based on an integer property. Therefore, it
would be nice to have two entries in the palette which create the component
and set the type property instead of adding the component and having to set
the type afterwards. I tried to use an EMFPrototypeTool to create the
components, but it didn
|
|
|
Re: Setting features at creation [message #123917 is a reply to message #123842] |
Wed, 26 April 2006 10:05  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
You would set the property "type". For example, here is a snippet from
org.eclipse.ve.jfc/palette/Panel.xmi prototype example:
<java.awt:Panel xmi:id="Panel_GridBag" layout="GridBagLayout_1"/>
<java.awt:GridBagLayout xmi:id="GridBagLayout_1"/>
What this says is that the Panel has the property setting "layout" set
with the "GridBagLayout_1" GridBagLayout. The value is defined on the
next line. The xmi:id="..." defines the tag/id within the override file
so that it can be referenced in another line in the override file.
--
Thanks,
Rich Kulp
|
|
|
Re: Setting features at creation [message #612763 is a reply to message #123842] |
Wed, 26 April 2006 10:05  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
You would set the property "type". For example, here is a snippet from
org.eclipse.ve.jfc/palette/Panel.xmi prototype example:
<java.awt:Panel xmi:id="Panel_GridBag" layout="GridBagLayout_1"/>
<java.awt:GridBagLayout xmi:id="GridBagLayout_1"/>
What this says is that the Panel has the property setting "layout" set
with the "GridBagLayout_1" GridBagLayout. The value is defined on the
next line. The xmi:id="..." defines the tag/id within the override file
so that it can be referenced in another line in the override file.
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.26826 seconds