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

Bug 163079

Summary: Impossible to identify correct feature for Label Mapping - add type name in displayed list
Product: [Modeling] GMF-Tooling Reporter: Michael Moser <mmo>
Component: CoreAssignee: Artem Tikhomirov <tikhomirov.artem>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: kototamo
Version: 2.0Keywords: helpwanted
Target Milestone: 2.1.1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
the mentioned screenshot
none
Patch with modified EcoreItemProvider
none
Modified ItemProvider with toggle action none

Description Michael Moser CLA 2006-11-01 10:30:28 EST
If one wants to create a Link Mapping => Label Mapping the menu to select the "Features"-value apparently offers ALL model features of the .ecore model.

If two or more feature names from different types clash (e.g. multiple types having a "name"-attribute) then it is impossible to figure out, which element to select. As shown in the screen shot attached, my model has *five* elements that have a name attribute and one can not see, which "name" is meant by which entry.

Please prefix these entries with their types (e.g. Process.name) or put the type in brackets (e.g. "name (Process)") or some other indication of that sort, so that one has a chance to pick the correct element here.

Michael
Comment 1 Michael Moser CLA 2006-11-01 10:31:05 EST
Created attachment 53065 [details]
the mentioned screenshot
Comment 2 Artem Tikhomirov CLA 2007-04-16 14:19:36 EDT
related bug #178340
Comment 3 Artem Tikhomirov CLA 2008-06-05 08:57:40 EDT
*** Bug 178340 has been marked as a duplicate of this bug. ***
Comment 4 Artem Tikhomirov CLA 2008-06-13 10:12:14 EDT
Created attachment 104861 [details]
Patch with modified EcoreItemProvider

Possible solution to the problem. It's too late to get into 2.1, might get into 2.1.1 and 2.2.

As it's not always handy to have qualified names, might be reasonable to add a menu action that triggers simple and qualified representation.
Comment 5 Artem Tikhomirov CLA 2008-06-13 10:55:05 EDT
Created attachment 104870 [details]
Modified ItemProvider with toggle action

Better yet, allow user to toggle qualified/simple names, with qualified set as default to ease feature discovery
Comment 6 Artem Tikhomirov CLA 2008-06-27 11:54:42 EDT
Delivered into both HEAD and 2_1_maintenance streams.
Comment 7 Eclipse Webmaster CLA 2010-07-19 22:08:31 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Models - Mapping was the original product and component for this bug