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

Bug 320110

Summary: [ClassD] Navigable Association creates redundant property in interface (class notation)
Product: [Modeling] GMF-Tooling Reporter: Christian Waniek <chris.waniek>
Component: SamplesAssignee: Michael Golubev <borlander>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: borlander
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Incorrect rendered class diagram
none
incomplete ocl in gmfmap
none
patch to solve the bug borlander: iplog+, borlander: review+

Description Christian Waniek CLA 2010-07-16 10:27:18 EDT
Build Identifier: 

I created a class diagram with two Interfaces in it (with class notation). Then I created a navigable association between these interfaces. The association is created well, but the owningAttribute is also shown in the properties compartment of the interface figure.
Using a navigable with normal classes this attribute doesn't appear in the diagram. (see attached picture)

The error comes due to an incomplete ocl (see attached picture)

Attached you'll find an patch for the classDiagram.gmfmap to solve the problem.

Reproducible: Always
Comment 1 Christian Waniek CLA 2010-07-16 10:27:54 EDT
Created attachment 174495 [details]
Incorrect rendered class diagram
Comment 2 Christian Waniek CLA 2010-07-16 10:28:36 EDT
Created attachment 174496 [details]
incomplete ocl in gmfmap

This picture shows where the error is in the classDiagram.gmfmap file
Comment 3 Christian Waniek CLA 2010-07-16 10:29:32 EDT
Created attachment 174497 [details]
patch to solve the bug

This Patch for the classDiagram.gmfmap file solves this bug
Comment 4 Michael Golubev CLA 2010-07-16 10:48:50 EDT
Comment on attachment 174497 [details]
patch to solve the bug

Reviewed
Comment 5 Michael Golubev CLA 2010-07-17 21:11:56 EDT
patch committed to head, with mninor changes (oclIsUnderined instead of = null)