how can I extend element's attributes and edit in the property editor

37 views
Skip to first unread message

Xiaopeng Xi

unread,
May 29, 2015, 12:22:57 AM5/29/15
to sta...@googlegroups.com
hello,

I want to extend some of the elements ( like class) 's attributes. For example, "class" element has a "name" attribute, and I want "class" element to have a "name2" attribute. and I want this attribute to be shown and editable in the property editor, using Open Api. And when I save or export the model , this new attribute should be exported or saved. 

Thank you. 

xiaopeng xi.

StarUML

unread,
May 29, 2015, 1:10:50 AM5/29/15
to sta...@googlegroups.com, xiao...@gmail.com
Hello Xiaopeng,

It is allowed to define a new meta-model by extending (inheritance) existing elements (Defining new a meta-model is so complicated and not yet documented well). However, it’s not possible to add new properties to the existing elements so as to edit them in Property Editor.

Instead, we recommend to use “Tag” if you need just additional properties. (Mouse Right Click on the element, Add > Tag)

Best Regards,

Thanks,
StarUML Team

2015년 5월 29일 금요일 오후 1시 22분 57초 UTC+9, Xiaopeng Xi 님의 말:
Reply all
Reply to author
Forward
0 new messages