Missing template icon on Class Diagram -> Interface view?

11 views
Skip to first unread message

Vasileios Pothos

unread,
Sep 10, 2023, 5:19:06 AMSep 10
to StarUML
Hello.

I am trying to depict in a class diagram the following C++ interface (see image).

I see that the class module has the Interface icon on it's top right side ("T"), but although I can add the template attribute to the Interface model (see explorer in right side), this attribute can not be added in the diagram as in the case of Class model.

Is there any reason for this? Or it's just missing functionality? - Thus it should be added in future versions.

For now the only way to depict this, according to my understanding, is to use an "Interface" stereotype in the class model, thus to indicate that this class (top left) is actually an interface. But such an approach makes the interface model (bottom right) to be of no use, although this should be used in this example. Thus this seems like a "missing functionality" to by understanding; the Interface action should also support template arguments in it's views (as class model does).

SmartUML-issue-classdiagram-interface.jpg

Thanks

StarUML

unread,
Sep 10, 2023, 9:28:23 PMSep 10
to StarUML
Hi,

To show template parameter compartment, you have to set the stereotype display mode to label or decoration by selecting "Format > Stereotype Display > (None | Label | Decoration | Decoration with Label)".

2023년 9월 10일 일요일 오후 6시 19분 6초 UTC+9에 vasileio...@gmail.com님이 작성:

Vasileios Pothos

unread,
Sep 11, 2023, 8:37:03 AMSep 11
to StarUML
Hi.

Thanks, this indeed works, but I noticed that the quick button for this purpose is missing, compared to the class model. I don't know if other buttons are missing too.
For anyone having this issue, to add the template just right click on the view of the model and click the "Add -> Template Parameter".

Also although this works, I believe this entails an inconsistency of the graphics.

It would be great if we had not to change the "decoration type", in order to enable a functionality. And also to have the pop-up button as in the class model.

 StarUML-InterfaceMissingTemplateButton.jpg

Thanks!

StarUML

unread,
Sep 12, 2023, 12:56:30 AMSep 12
to StarUML
Hi,

We are trying to minimize functionalities in Quick Edits for each elements. 

Since Interface is typically expressed in lollipop form, we think that the use of template parameters in Interface is rare.

If there are frequent cases of using template parameters in the interface, we can consider adding them.

Thanks,

2023년 9월 11일 월요일 오후 9시 37분 3초 UTC+9에 vasileio...@gmail.com님이 작성:
Reply all
Reply to author
Forward
0 new messages