| Summary: | Label Feature Name should be optional | ||
|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Goulwen Le Fur <goulwen.lefur> |
| Component: | Table | Assignee: | Maxime Porhel <maxime.porhel> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | belqassim.djafer, florian.barbin, maxime.porhel, pierre-charles.david |
| Version: | 2.0.0 | Keywords: | triaged |
| Target Milestone: | 3.0.0M6 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: |
https://git.eclipse.org/r/42017 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e830c20cca80b28476a69b7877ecccdcce7c4fb1 |
||
| Whiteboard: | trivial | ||
|
Description
Goulwen Le Fur
We could add a specific keyword like * which if detected will disable the feature existency for the type of the current line semantic target.
See org.eclipse.sirius.table.metamodel.table.description.FeatureColumnMapping.getFeatureName() line 370:
if (newCell.getTarget() == null || !accessor.eValid(newCell.getTarget(), cMapping.getFeatureName())) {
// We don't create a cell in this case.
newCell = null;
}
A fist workaround could be to put in featureName the name of a common (duplicated or from a supertype) EStructuralFeature and use the label expression to display the wanted information. A second workaround might be to use the feature parent expression to use an element as cell target but use the label expression and the line variable to compute and display the wanted information, but the properties view will display the target, you might have to use the associated elements expression to add additional elements. New Gerrit change created: https://git.eclipse.org/r/42017 Gerrit change https://git.eclipse.org/r/42017 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e830c20cca80b28476a69b7877ecccdcce7c4fb1 Fixed y commit http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e830c20cca80b28476a69b7877ecccdcce7c4fb1 Verified on Sirius 3.0.0M6 Available in Sirius 3.0.0. See https://wiki.eclipse.org/Sirius/3.0.0. |