Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Papyrus for Real Time » Registering an UML-RT Package using Extension Points
Registering an UML-RT Package using Extension Points [message #1775179] Wed, 25 October 2017 21:07 Go to next message
Sudharshan Gopikrishnan is currently offline Sudharshan GopikrishnanFriend
Messages: 15
Registered: April 2017
Junior Member
Hello all,

I am trying to register an UML-RT Package using the "org.eclipse.papyrus.uml.extensionpoints.UMLLibrary" extension point, so that I can import the package latter as a registered package within my UML-RT model. When I try importing the registered package, it does not import and i get the below error.

Caused by: /packages/DetectionSensor.uml
at Source)
at org.eclipse.core.internal.boot.PlatformURLConnection.connect(
at org.eclipse.core.internal.boot.PlatformURLConnection.connect(
at org.eclipse.core.internal.boot.PlatformURLConnection.getInputStream(
at org.eclipse.emf.ecore.resource.impl.URIHandlerImpl.createInputStream(
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(

Eclipse is unable to find the UML file, even though i included it in the binary build.

The path i had given while registering using the extension point is : platform:/plugin/ca.queensu.cs.rover.configuration/packages/DetectionSensor.uml

Any help or pointers will be really helpful !

Thank you.

Re: Registering an UML-RT Package using Extension Points [message #1775245 is a reply to message #1775179] Thu, 26 October 2017 17:07 Go to previous message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
I'm not sure what's the problem. You can try this: make sure you include the "packages" folder in your file and also the "plugin.xml" file.

For example

bin.includes = META-INF/,\

Also, I would recommend that instead of using platform:/plugins/... directly, you create an ecore pathmap mapping like this:

    <extension point="org.eclipse.emf.ecore.uri_mapping">

and then in the extension point for the library:

    <extension point="org.eclipse.papyrus.uml.extensionpoints.UMLLibrary">
            description="Rover Library"
            name="Rover Library"

Although I'm not sure this is necessary, also make your plugin a singleton and activate when a class from the plug-in is loaded (Overview tab of the MANIFEST.MF).
Previous Topic:Correct use of plugin capsules
Next Topic:.cpp extension in codegen
Goto Forum:

Current Time: Fri Feb 23 04:57:49 GMT 2024

Powered by FUDForum. Page generated in 0.01871 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top