| Summary: | profiling.ext: Profile application for Package is not supported | ||
|---|---|---|---|
| Product: | [Modeling] M2T | Reporter: | Tatiana Fesenko <tatiana.fesenko> |
| Component: | Xpand | Assignee: | Karsten Thoms <karsten.thoms> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | karsten.thoms |
| Version: | 1.1.0 | Flags: | karsten.thoms:
juno+
|
| Target Milestone: | M3 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Tatiana Fesenko
Right, this is a reasonable use case. Thanks for reporting! Thanks for the quick fix, Karsten! It seams that we also have to change the helper signature in profiling.ext to use uml::Package: Profile applyProfile (Package pck, String uri) Otherwise it's not recognized even for uml::Model. E.g., try using the sample transformation from Bug 361382. Yes, this was already done. (In reply to comment #3) > Yes, this was already done. Maybe it wasn't pushed to Git. In the http://git.eclipse.org/c/m2t/org.eclipse.xpand.git/tree/plugins/org.eclipse.xtend.typesystem.uml2/src/org/eclipse/xtend/typesystem/uml2/profile/profiling.ext?id=20403e9f00e8993ce99b76299ecb52948a9f331a only line 8 is changes, while the line 7 with helper signature is still the same: Profile applyProfile (Model model, String uri) : - JAVA org.eclipse.xtend.typesystem.uml2.profile.ProfilingExtensions.applyProfile(org.eclipse.uml2.uml.Model, java.lang.String); + JAVA org.eclipse.xtend.typesystem.uml2.profile.ProfilingExtensions.applyProfile(org.eclipse.uml2.uml.Package, java.lang.String); My mistake. Fixed now with 45fae56604e0e7ced51b1bc9a316d86ccb586b23 Bug resolved before Xpand 1.2 release date => Closing |