Menu

bug when pasting an annotation in a UML Activity Diagram

Eric
2015-04-26
2015-04-27
  • Eric

    Eric - 2015-04-26

    Hi,

    I can copy an annotation (for example a figure in a circle created in a UMLClass Diagram) and then paste it into other Diagrams except if these other diagrams are of the UML Activity Diagram type. In such a case "paste" is not possible.

    I guess that this is a small bug which can be corrected without too much trouble but I cannot do code correction myself.

    Thank you to anyone who will correct that.
    Eric

     
  • Janusz Szpilewski

    I know that copy/paste is intentionally blocked in the sequence diagrams. It seems that currently the Activity Diagrams disallows only the paste operation. I will look closer at it.

     
  • Janusz Szpilewski

    After looking further at it I found that it is not a bug but a feature. The program just blocks copying elements between potentially incompatible diagrams. The quirky part is that it does not matter what kind of element it is (annotation or something else). The copy/paste operation just looks on what diagram the source element is located. So you may copy annotations between class diagrams or between activity diagrams but cross-copying is often disabled. Changing it would require some code redesign and this is not a simple task.

     
    • Eric

      Eric - 2015-04-27

      OK. I will duplicate by hand my annotation, and then will copy/paste between compatible diagrams as you said.

      Thanks a lot for your investigation and have a good day.
      Eric, the Harris barman ;-)

       
  • Janusz Szpilewski

    Marrying annotations with diagrams seems to be indeed an artificial limitation. I think of creating another category to represent views with no models attached (like annotations) which could be freely copied. Of course it will change storage format of copied elements and will require some work.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.