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

Bug 341180

Summary: Graphiti fails to handle resize after custom feature addition in the tutorial
Product: [Modeling] Graphiti Reporter: Wendell Beckwith <wbeckwith>
Component: CoreAssignee: Project Inbox <graphiti-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: juergen.pasch, michael.wenz
Version: 0.8.0Flags: juergen.pasch: indigo+
Target Milestone: 0.8.0   
Hardware: All   
OS: All   
Whiteboard: Indigo M7 theme_bugs

Description Wendell Beckwith CLA 2011-03-28 21:35:22 EDT
Build Identifier: I20110310-1119

The details for this bug are documented here, http://www.eclipse.org/forums/index.php?t=msg&th=206329&start=0&S=0b20acfd3ad69703f0e32e050fa508dd

However to recap, when following the tutorial and completing the addition of a custom feature to rename a class, the ability to resize the EClass in the tutorial is not possible.

Reproducible: Always

Steps to Reproduce:
1. Complete the graphiti tutorial up to adding the custom feature to rename a class.
2. Create a new EClass with name "A".
3. Rename the class to "AA". 
4. Now try and resize it, this will fail but moving it will succeed.
Comment 1 Juergen Pasch CLA 2011-04-28 10:09:59 EDT
Resizing the EClass after the described steps in the early stage of the tutorial is not possible, because the edit policy GFNonResizableEditPolicy is instantiated in this particular situation: at this time "canResize" delivered "false". 
GFNonResizableEditPolicy erroneously does *never* consider the resize feature itself.
As opposed to this GFResizableEditPolicy inspects "canResize" and works fine. Maybe most shapes are created "resizable", before they become "un-resizable", so that might be the reason the wrong behaviour was never reported before.
Now the edit policy GFResizableEditPolicy works alone, since it can handle "canResize" changes.
Comment 2 Michael Wenz CLA 2011-05-25 09:14:21 EDT
Bookkeeping
Comment 3 Michael Wenz CLA 2011-05-27 09:23:19 EDT
Part of 0.8.0
Comment 4 Michael Wenz CLA 2011-06-24 09:14:36 EDT
Part of Graphiti Indigo 0.8.0