Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 494081

Summary: [Capsule Structure] Cannot shrink port on part if it was expanded
Product: [Modeling] Papyrus-rt Reporter: Christian Damus <give.a.damus>
Component: toolAssignee: Project Inbox <papyrusrt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: papyrus-bugs, peter.cigehn, rschnekenburger
Version: 1.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Christian Damus CLA 2016-05-19 16:46:03 EDT
Now that bug 489939 is completed, new ports visualized on capsule-parts show at 2/3 of the size of a port on a capsule.

However, if such a port is stretched to a larger size by the user, it cannot then be shrunk back to this small size.  It seems to be limited to the 20x20 size of a port on the capsule.

Likewise for ports on parts that were visualized before the fix for 489939.

However, it is possible to restore the original small size of a port by undoing size changes.

Steps to reproduce:

1.  Create a Capsule Structure Diagram and drop a capsule into it to create a part.
2.  Drop a protocol onto the border of the part to create a port on the part.
3.  See that the port is smaller than the corresponding port on the part's capsule
    type.
4.  Select the new port and use the resize handles to make it bigger.
5.  Using the resize handles again, try to make the port smaller again, to its
    original size.
    ==> Observe that it can only be shrunk to 20x20 pixels.
6.  Undo (Command+Z) until the port is restored to its original small size.
Comment 1 Peter Cigehn CLA 2016-05-20 03:18:35 EDT
I guess that this is highly related to Bug 492636, which is about that ports on capsules, and capsule parts, shall not be possible to resize. If we make sure that the ports are not resizable, then I guess the aspects of this Bugzilla will not be relevant (or maybe at least less relevant).
Comment 2 Remi Schnekenburger CLA 2016-05-30 08:25:47 EDT
Ports should not be resizable anymore. Can you confirm it?
Comment 3 Christian Damus CLA 2016-05-30 09:15:46 EDT
(In reply to Remi Schnekenburger from comment #2)
> Ports should not be resizable anymore. Can you confirm it?

Yes.

As the resizing of ports is now disabled, this bug will not be fixed.
Comment 4 Charles Rivet CLA 2017-01-31 16:41:01 EST
Batch closing of old, fixed bugs