How to add a parameterized tool entry? [message #146382] |
Mon, 13 August 2007 06:38  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03443 seconds