Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to add a parameterized tool entry?
How to add a parameterized tool entry? [message #146382] Mon, 13 August 2007 06:38 Go to next message
Eclipse UserFriend
Originally posted by: zzhangh.cn.ibm.com

Hi,
Using paletteProvider I can add a static creation tool entry to palette.
Now I want to add some tool which will create same semantic model element
instance, but after creation, automatically have a property (say "type")
set to different values. Can I implement this by overriding CreationTool
in my palette factory?

Best Regards,
Hao
Re: How to add a parameterized tool entry? [message #146389 is a reply to message #146382] Mon, 13 August 2007 09:01 Go to previous message
Eclipse UserFriend
Hi Hao,

This use case is supported with the generated diagrams in a declarative
way. Take a look at TypeModelFacet#modelElementInitializer.

Best regards,
Boris


Hao Zhang wrote:
> Hi,
> Using paletteProvider I can add a static creation tool entry to palette.
> Now I want to add some tool which will create same semantic model
> element instance, but after creation, automatically have a property (say
> "type") set to different values. Can I implement this by overriding
> CreationTool in my palette factory?
>
> Best Regards,
> Hao
>
Previous Topic:mapping one semantic element more than once causes exception
Next Topic:[announce] Reflective Ecore Model Diagram Editor 0.1.0 released
Goto Forum:
  


Current Time: Sun May 11 13:53:58 EDT 2025

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

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

Back to the top