| Summary: | New VSPs should have a pre-registered service class | ||
|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Pierre-Charles David <pierre-charles.david> |
| Component: | Core | Assignee: | Jessy Mallet <jessy.mallet> |
| Status: | CLOSED FIXED | QA Contact: | Julien Dupont <julien.dupont> |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | julien.dupont, laurent.redor |
| Version: | 3.1.0 | Keywords: | triaged |
| Target Milestone: | 4.1.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://git.eclipse.org/r/75341 https://git.eclipse.org/r/75410 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=bb89a55f5199325ca3525b3082d975d8db6983ab https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=1f66b3c8dba6d35a10e9e015f913fdbb329aabd9 |
||
| Whiteboard: | backport | ||
New Gerrit change created: https://git.eclipse.org/r/75341 New Gerrit change created: https://git.eclipse.org/r/75410 Gerrit change https://git.eclipse.org/r/75341 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=bb89a55f5199325ca3525b3082d975d8db6983ab Gerrit change https://git.eclipse.org/r/75410 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=1f66b3c8dba6d35a10e9e015f913fdbb329aabd9 Available in Sirius 4.1.0, see https://wiki.eclipse.org/Sirius/4.1.0 for details. |
To make it easier and more discoverable for specifiers to use Java services in their VSMs, one low-cost improvement would be for the VSP creation wizard to autmatically create an empty service class, and to register it in the created VSM. The service class would be created alongside the Activator that we already create, and it could have an already filled example service with a reference to more documentation. Something like: /** * See http://... for documentation on how to write service methods. */ public EObject myService(EObject self, String arg) { // TODO Auto-generated code return self; }