Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Setting features at creation
Setting features at creation [message #123842] Wed, 26 April 2006 06:41 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Regarding the implementation of VE
Next Topic:Regarding VE
Goto Forum:
  


Current Time: Fri Jul 18 00:08:54 EDT 2025

Powered by FUDForum. Page generated in 0.26826 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top