Question about "How can I add a feature to the OSATE2 development setup?"

29 views
Skip to first unread message

QiaosenLiu

unread,
Aug 12, 2023, 3:51:35 AM8/12/23
to OSATE
Thanks to the help of OSATE google group, I have successfully compiled OSATE.
Now, I want to add my own development plugin to the compilation options to compile with OSATE.
I tried to modify the setup file according to the tutorial "How can I add a feature to the OSATE2 development setup?" on the official website, but as a newbie, I don't know where to modify it to achieve my goal, can anyone help me?

QiaosenLiu

unread,
Aug 12, 2023, 5:41:07 AM8/12/23
to OSATE
I would like to compile my plugin with OSATE in order to use it directly in the compiled OSATE, just like in runtime OSATE.

Brian Larson

unread,
Aug 13, 2023, 4:48:11 PM8/13/23
to OSATE
What do you want to do?

You don't get to add your code to OSATE directly; you extend OSATE with plugin(s) which access OSATE through Eclipse extension points.

I think you want to make a plugin--not change the development setup.
The "analyses" folder in Package Explorer (when you've successfully installed OSATE sources) has several example plugins.
I suggest looking at org.osate.modelstats first.
Folder "ba" holds code for the behavior (specification) annex sublanguage, which is vastly more complex than any of the analysis plugins..

If your plugin is worthy, it may be included in "Install Additional OSATE Components" to make it easier for others to use your plugin.
Otherwise, people could download a .zip, or you could host an Eclipse Update Site.

QiaosenLiu

unread,
Aug 14, 2023, 4:42:52 AM8/14/23
to OSATE
As you said, I've developed a plugin. I added the dependent plugins in the plugin.xml.I can execute it via run configurations and in runtime osate everything looks fine.
1.png
Below, I see that it follows the "https://www.vogella.com/tutorials/EclipsePlugin/article.html#exercise-create-an-update-site-your-plug-in "Unfortunately, I encountered the following error when deploying my plugin. I don't know how to fix it.
2.png
I have added the dependencies, why do I still get the following error?
"Cannot complete the install because one or more required items could not be found.
  Software being installed: Portfeat 1.0.0.202308141624 (portfeat.feature.group 1.0.0.202308141624)
  Missing requirement: Port 1.0.0.202308141624 (port 1.0.0.202308141624) requires 'osgi.bundle; org.eclipse.ui 3.202.0' but it could not be found
  Cannot satisfy dependency:
    From: Portfeat 1.0.0.202308141624 (portfeat.feature.group 1.0.0.202308141624)
    To: org.eclipse.equinox.p2.iu; port [1.0.0.202308141624,1.0.0.202308141624]"

Brian Larson

unread,
Aug 14, 2023, 5:36:27 AM8/14/23
to OSATE
You are missing a dependency on org.eclipse.equinox.p2.iu
It has several suggestions for supplying the missing dependency.

Good luck

QiaosenLiu

unread,
Aug 14, 2023, 12:52:37 PM8/14/23
to OSATE
Thanks for your reply, I tried to fix this as you said, but it still alerts about missing dependencies! Could this be a problem with osate?

Brian Larson

unread,
Aug 14, 2023, 5:29:09 PM8/14/23
to OSATE
I don't think this is an OSATE problem.  OSATE has been stable about dependencies for a while.

Something, somewhere is demanding rev 3.202.0.  
Because that's also the rev required for org.eclipse.ui, I suspect that's the culprit.
Try editing its Properties to delete any version requirements for org.eclipse.ui.
Message has been deleted

QiaosenLiu

unread,
Aug 15, 2023, 5:09:11 AM8/15/23
to OSATE
Thank you for your help, based on your answer I have solved it!
Reply all
Reply to author
Forward
0 new messages