|Encapsulating Sirius UI in a minimal RCP product [message #1716278]
||Wed, 02 December 2015 16:37
| Francois Cabrol
Registered: January 2015
After having created viewpoints using the Sirius Specifier environment (Sirius 3.0.0 in Eclipse 4.5.0), I would like to create a minimal distributable application containing only the plugins that are necessary to create and edit Sirius Modeling Projects based on the meta-models and representations I have defined.
In order to do so, I created a feature-based Product Configuration by including Sirius features (as well as a feature gathering my meta-models, representations and specific views and wizards I have created) and adding necessary dependencies until the Product Configuration validates successfully.
My product starts, but I notice the following differences when I try to create a Modeling Project with sample data:
- In the Model Explorer view (as well as the Resource perspective's Project Explorer view), the project has no icon and the representations.aird file does not appear
- When I try to create a new EMF resource, either with the Example EMF Model Creation Wizards or with one of my wizards, I see the following exception in the console:
!ENTRY org.eclipse.core.commands 4 2 2015-12-02 17:10:08.248
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.commands".
org.eclipse.core.runtime.AssertionFailedException: null argument:
The resource is created however, but it does not appear in the Model Explorer. Plus, if I refresh the project in the Model Explorer, it disappears from the view.
I think that I perhaps forgot to start some plugins in my Product Configuration, but I cannot find any documentation about this. What did I forget ?
Please find attached my product configuration file.
|Re: Encapsulating Sirius UI in a minimal RCP product [message #1829497 is a reply to message #1829211]
||Sun, 05 July 2020 13:55
| Brandon Lewis
Registered: May 2012
FWIW... I have a deployed RCP at work using the instructions from that video. I found that if I deviated from those instructions and tried to include any Sirius plugins in my product, I quickly fell into a dependency trap and couldn't put together a runtime product that worked.|
Once I ran into issues, I re-visited this video and just added the minimum set of runtime plugins it suggested and my issues went away. If I remember correctly, I backed out all Sirius plugins I put into my product file and followed the way he did it in the video.
My deployed RCP is running Photon upgrade to 6.3.0 if that offers any light.
I should also note that my deployed RCP actually launches the workbench app - so it's not very RCPish. There might be a lot of workbench support I'm getting that helps this video's suggestions work like they do.
[Updated on: Sun, 05 July 2020 14:33]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02354 seconds