Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Class Diagrams get messed up?
Class Diagrams get messed up? [message #1716073] Tue, 01 December 2015 02:50 Go to next message
Mark Linehan is currently offline Mark LinehanFriend
Messages: 9
Registered: July 2014
Junior Member
When I create a class diagram with Papyrus, then save, close, and reopen the diagram, it gets messed up. Association and generalizations lines that were neatly lined-up get offset from each other. It's even worse when I share diagrams with team members by exporting and emailing the project. The exchanged diagrams started out looking pretty good but end up looking terrible.

I'm using Papyrus UML 1.1.2015091641440 on Eclipse 4.5.1 Mars. I had the same problem with the previous Luna-based version. Now I've reached a sufficient level of annoyance to complain about it.


Mark
Re: Class Diagrams get messed up? [message #1716087 is a reply to message #1716073] Tue, 01 December 2015 08:54 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 887
Registered: February 2011
Senior Member
Hi Mark,

I've never experienced this kind of issue in "simple" diagrams (Such as Class diagram) in Papyrus. The layout in this diagram is simple enough so that it doesn't randomly change after reopening

I see a few things that might break layout when exchanging diagrams with someone else. However, I don't see any reason (and never actually experienced it) why it would changed by being reopened on the same platform.

Here are a few leads about what might change the layout of a diagram:

- Different fonts. When exchanging from Windows to Linux, the set of available fonts might be different. Different fonts mean different sizes, and different sizes might mean different layout
- Different CSS Theme. Since the CSS Theme is user-specific (workspace-specific actually), it may be different when sharing a model. If the CSS Theme only changes colors, then everything's fine, but CSS might also change sizes (font size, border/line size, etc.), which might affect layout
- Changing the semantic (*.uml) model while the diagrams are closed. If the length of a specific label changes (because an element has been renamed), this will most likely affect the layout
- DPI: This affects the size of the font, so this could also affect the layout

But if you're not changing anything to the model or the platform, then simply reopening shouldn't change anything. I know we've had a bug on the first Mars version where some specific elements in specific diagrams didn't get their position saved properly, but that didn't happen in the Class Diagram, and it didn't affect all elements.

So if you have any lead on what might cause these changes, it would be interesting to know.

BTW, we've started to experiment a new component to improve layout stability. On the Mars version, it is only a beta (And available as an extra component), but we plan to make it stable and available by default for the next version (Neon).

HTH,
Camille


Camille Letavernier
Re: Class Diagrams get messed up? [message #1794252 is a reply to message #1716087] Tue, 28 August 2018 05:51 Go to previous messageGo to next message
shah aalam qureshi is currently offline shah aalam qureshiFriend
Messages: 1
Registered: August 2018
Junior Member
I am also facing same kind of issue,
I have existing project, where I have lots of class diagram, previously I have been using windows 7 on desktop, but now I have laptop and windows 10 installed on it. when I open class diagram it is messed up.(see Attachment)

I am using eclipse Mars.2 Release (4.5.2) and papyrus backbone 1.1.4. I have tried to change my laptops resolution and many other things. but nothing seems to work. refactoring all diagrams seems to be time consuming task, and other colleagues are still using windows 7. is their any solution to this problem?
  • Attachment: pyparus.JPG
    (Size: 124.75KB, Downloaded 9 times)
Re: Class Diagrams get messed up? [message #1794313 is a reply to message #1794252] Tue, 28 August 2018 19:37 Go to previous message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 887
Registered: February 2011
Senior Member
Hi,

Is your new laptop using High DPI setting? If so, I believe this would make fonts bigger, which in turns makes elements (classes) bigger as well (Unless they have been manually resized, in which case they should keep their original size in pixels).

Papyrus doesn't properly support High DPI (So in some cases, layout could indeed be very different on a high DPI display). Unfortunately, there's not much you can do about this at the moment

HTH,
Camille


Camille Letavernier
Previous Topic:Automatic synchronization between UML class and reversed Java class
Next Topic:Profile extension
Goto Forum:
  


Current Time: Fri Nov 16 10:08:39 GMT 2018

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

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

Back to the top