Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Platform:/plugin uri could not be resolved
Platform:/plugin uri could not be resolved [message #1777879] Tue, 05 December 2017 14:50 Go to next message
Simon BBBBBBB is currently offline Simon BBBBBBBFriend
Messages: 63
Registered: March 2015
Member
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 15:21]

Report message to a moderator

Re: Platform:/plugin uri could not be resolved [message #1777909 is a reply to message #1777879] Wed, 06 December 2017 06:04 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
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));


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Platform:/plugin uri could not be resolved [message #1777916 is a reply to message #1777909] Wed, 06 December 2017 07:07 Go to previous message
Simon BBBBBBB is currently offline Simon BBBBBBBFriend
Messages: 63
Registered: March 2015
Member
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: Thu Mar 28 16:06:46 GMT 2024

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

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

Back to the top