Bug 192971 - Support phantom nodes of same metaclass as their parent
Summary: Support phantom nodes of same metaclass as their parent
Status: NEW
Alias: None
Product: GMF-Tooling (ARCHIVED)
Classification: Modeling
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2007-06-15 15:06 EDT by Artem Tikhomirov CLA
Modified: 2011-05-01 08:13 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Tikhomirov CLA 2007-06-15 15:06:34 EDT
Sample model:
class "Model" {
  containment ref "requirements" {
    upperBound : -1;
    type : "Requirement"
  }
}
class "Requirement" {
  containment ref "children" {
    upperBound : -1;
    type : "Requirement"
  }
}

Model maps to dialgram, two top node mappings use Requirement - one with containment feature aka root requirement, another without containment feature aka child requirement.
Genereted code in VisualIDRegistry#getNodeVisualID checks only for metaclasses, hence, can't tell the two and for any Requirement instance passed always returns first visualID, though the instance may be either from within Model (and then it's root) or from within Resource (and then it's child req).

Right now it's possible to workaround this issue with constraint that explicitly checks for eContainer or smth similar. However, generated code should handle such cases correctly out of the box
Comment 1 Alex Shatalin CLA 2008-06-04 12:22:44 EDT
Moving to the next version
Comment 2 Eclipse Webmaster CLA 2010-07-19 22:18:37 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Generation was the original product and component for this bug