Skip to main content



      Home
Home » Modeling » EMF » Platform:/plugin uri could not be resolved
Platform:/plugin uri could not be resolved [message #1777879] Tue, 05 December 2017 09:50 Go to next message
Eclipse UserFriend
Hello,

i have two emf-plugin projects, A and B. The B-Model references A.

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="b" nsURI="http://b" nsPrefix="b">
  <eClassifiers xsi:type="ecore:EClass" name="B" eSuperTypes="platform:/plugin/A/model/My.ecore#//A"/>
</ecore:EPackage>


If i open this with the Sample Ecore-Model Editor, the reference is resolved.

i have an editor myself and i am loading B in it threw an editing Domain and a resource set. But if try to access the Reference to A i only get a proxy.

the two projects are both in my workspace, they are not installed in the eclipse.

How can i resolve this issue?

Thank you for your time

[Updated on: Tue, 05 December 2017 10:21] by Moderator

Re: Platform:/plugin uri could not be resolved [message #1777909 is a reply to message #1777879] Wed, 06 December 2017 01:04 Go to previous messageGo to next message
Eclipse UserFriend
The Ecore Editor does the following in the org.eclipse.emf.ecore.presentation.EcoreEditor.createModel() method:
    final ResourceSet resourceSet = editingDomain.getResourceSet();
    final EPackage.Registry packageRegistry = resourceSet.getPackageRegistry();
    resourceSet.getURIConverter().getURIMap().putAll(EcorePlugin.computePlatformURIMap(true));
Re: Platform:/plugin uri could not be resolved [message #1777916 is a reply to message #1777909] Wed, 06 December 2017 02:07 Go to previous message
Eclipse UserFriend
Hey Ed, that did the trick! thank you!
Previous Topic:Resource.load error: ">" is not legal
Next Topic:[Xcore] Default value for multi-valued enum attributes
Goto Forum:
  


Current Time: Tue Jul 15 11:05:10 EDT 2025

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

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

Back to the top