Bug 482920 - [Tooling] Improve the auto layout of capsule structure diagrams
Summary: [Tooling] Improve the auto layout of capsule structure diagrams
Status: NEW
Alias: None
Product: Papyrus-rt
Classification: Modeling
Component: tool (show other bugs)
Version: 0.7.2   Edit
Hardware: PC Windows 7
: P4 normal
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui, usability
Depends on:
Blocks:
 
Reported: 2015-11-24 10:49 EST by Peter Cigehn CLA
Modified: 2016-09-09 14:53 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Cigehn CLA 2015-11-24 10:49:10 EST
When testing Bug 474482 which makes the capsule structure diagram synchronized/canonical, it shows that the auto layout needs some improvement to avoid that ports end up on each other and capsule parts could be placed more intelligent within the current size of the capsule structure diagram.

Steps to reproduce:

1) Create a UML-RT model
2) Create capsule in the model explorer
3) Open the capsule structure diagram of the capsule to make it visible
4) Create a port for this capsule from the UMLRealTime new child menu in model explorer (either selecting an existing protocol or create a new one)
5) Observer how it is placed in the top left cornet of the capsule
6) Create a second port
7) Observe how the port is positioned in the same location as the first port

It should be made sure that the ports does not end up on top of each other to avoid the cluttering.

Creating capsule parts works better. They don't end up on each other, but they seem to simpley be placed further and further to left and slightly lower down each time, causing a scroll bar to appear for the capsule. It is preferred if the layout algorithm tries to use the existing space as much as possible, for example by placing the capsule parts in rows and columns, until the complete space is filled (in which case scroll bars is unavoidable).
Comment 1 Peter Cigehn CLA 2016-09-02 03:49:11 EDT
This has partly been improved as part of Bug 497841. The auto-layout of ports have been improved, and aligned with the auto-layout of ports in the legacy tooling. What remains is to improve the auto-layout of capsule parts, which still just lines up after each other to the right causing a horizontal scroll-bar to quickly appear.
Comment 2 Charles Rivet CLA 2016-09-02 10:23:34 EDT
(In reply to Peter Cigehn from comment #1)
> This has partly been improved as part of Bug 497841. The auto-layout of
> ports have been improved, and aligned with the auto-layout of ports in the
> legacy tooling. What remains is to improve the auto-layout of capsule parts,
> which still just lines up after each other to the right causing a horizontal
> scroll-bar to quickly appear.

Confirmed that work still to be done - moved to "NEW"
Comment 3 Simon Redding CLA 2016-09-09 14:16:56 EDT
Does not gate v1.0