Custom builder in Papyrus-based RCP won't run [message #1833973] |
Thu, 29 October 2020 06:00  |
Eclipse User |
|
|
|
I have an RCP application that packages Papyrus (vanilla) and our own plugin to add specific functionality on top of UML. One of the things I would like to do is add a custom validator to add markers and I have been trying to use the org.eclipse.core.resources.builders extension point to do this.
I have created both a Nature and a Builder extension and when I add the Nature, I can see Builder is correctly added to the Build Spec. When I look in .project, I can see that the Build Spec is referencing the right class with the right id. However, when I attempt to force any build (either through turning on Auto Build or manually forcing a build) nothing happens - i.e. the build method of the builder is never called (running it under debug in PDE).
Does Papyrus disable the build process in some way or is it user error? Any help much appreciated!
|
|
|
|
|
Re: Custom builder in Papyrus-based RCP won't run [message #1834032 is a reply to message #1833973] |
Fri, 30 October 2020 10:22  |
Eclipse User |
|
|
|
Hi Oliver,
it is strange if your builder is not launch excepted if you removed the Eclipse builder from your RCP (I don't know if it is possible or not, I never made RCP...)
If I remember well, I noticed that it required to make a change in a project to launch the build process.
Concerning your two questions:
1. We are not sure this patch will be released in 2012-20 (and at this time, we don't plan to provide an extension way allowing user to add their own builder/validator).
The purpose of this developpement was to provide a way for us (papyrus developper) to get error marker during the build process. We need errors on EMF/Uml models (like you), but also in Manifest.MF and in others ecore model/metamodel used by Papyrus internally.
2. The Papyrus nightly is the most stable as possible, but if you read frequently this forum, you maybe saw that we planne to make a Papyrus 5.0 for 2020-12 with bigs changes. mainly, the remove of re-exported dependencies in the plugin + migration to java 11.
These patches should be integrated in few weeks. Once it will be pushed, you will need to update your code on this new version of Papyrus (if your developpement targets 2020-12 too).
Concerning the UML models/diagrams created by users, there should be no impact for them.
|
|
|
Powered by
FUDForum. Page generated in 0.05110 seconds