Bug 406195 - Ability to access attributes of references in label description
Summary: Ability to access attributes of references in label description
Status: UNCONFIRMED
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Dimitris Kolovos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-22 04:44 EDT by Claudio Heeg CLA
Modified: 2013-04-25 02:47 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Heeg CLA 2013-04-22 04:44:29 EDT
Hello, as discussed in http://www.eclipse.org/forums/index.php/t/477119/, I was thinking that being able to access the attributes of references might be a nice addition, making labeling just so much more comfortable.

Below I added an example of how I should think this feature should look in use, should it be implemented.
The "type.name" part in the label description of a feature should point to the "name" attribute of the type referenced in the feature.

Would be nice if that could be looked into and maybe added in a future release!

---
@gmf.node(label = "name")
class Type extends AbstractElement {
  attr String name;
}
...
@gmf.node(label="name, type.name", label.pattern="{0} (Type: {1})")
class Feature {
  attr String name;
  ref Type type;
}