Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Target Platform ecore model can't be resolved
Target Platform ecore model can't be resolved [message #777318] Tue, 10 January 2012 09:18 Go to next message
Sébastien  Gandon is currently offline Sébastien GandonFriend
Messages: 184
Registered: July 2009
Senior Member
Hello,
I have a project in my workspace with an ecore model.
The model references the gmf notation model like this :
<eStructuralFeatures xsi:type="ecore:EReference" name="notation" eType="ecore:EClass platform:/plugin/org.eclipse.gmf.runtime.notation/model/notation.ecore#//Diagram"
        transient="true"/>

the gmf notation plugin is in the target platform and of course referenced in my project manifest as a required plugin.
My problem is that whenever I want to open the model or validate it I have an unresolved exception :

j
ava.io.IOException: Unable to resolve plug-in "platform:/plugin/org.eclipse.gmf.runtime.notation/model/notation.ecore".
	at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:64)
	at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.resolve(PlatformURLPluginConnection.java:75)
	at org.eclipse.core.internal.boot.PlatformURLHandler.openConnection(PlatformURLHandler.java:67)
	at org.eclipse.osgi.framework.internal.protocol.URLStreamHandlerProxy.openConnection(URLStreamHandlerProxy.java:112)
	at java.net.URL.openConnection(URL.java:945)


If I import the gmf notation project as a source project in my workspace then it gets resolved.
Is it an expected behaviour ?
I would expect the uri scheme platform:/plugin to resolve the target platform plugins too ?

thanks.

SeB.
Re: Target Platform ecore model can't be resolved [message #777329 is a reply to message #777318] Tue, 10 January 2012 09:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
SeB,

Comments below.

On 10/01/2012 10:18 AM, S wrote:
> Hello,
> I have a project in my workspace with an ecore model.
> The model references the gmf notation model like this :
> <eStructuralFeatures xsi:type="ecore:EReference" name="notation"
> eType="ecore:EClass
> platform:/plugin/org.eclipse.gmf.runtime.notation/model/notation.ecore#//Diagram"
> transient="true"/>
> the gmf notation plugin is in the target platform and of course
> referenced in my project manifest as a required plugin.
Unfortunately platform:/plugin denotes the running IDE itself, not the
target platform. We have no URI that will resolve to the target
platform. https://bugs.eclipse.org/bugs/show_bug.cgi?id=182741
> My problem is that whenever I want to open the model or validate it I
> have an unresolved exception :
>
> java.io.IOException: Unable to resolve plug-in
> "platform:/plugin/org.eclipse.gmf.runtime.notation/model/notation.ecore".
> at
> org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:64)
> at
> org.eclipse.core.internal.runtime.PlatformURLPluginConnection.resolve(PlatformURLPluginConnection.java:75)
> at
> org.eclipse.core.internal.boot.PlatformURLHandler.openConnection(PlatformURLHandler.java:67)
> at
> org.eclipse.osgi.framework.internal.protocol.URLStreamHandlerProxy.openConnection(URLStreamHandlerProxy.java:112)
> at java.net.URL.openConnection(URL.java:945)
>
> If I import the gmf notation project as a source project in my
> workspace then it gets resolved.
Yes, that's unfortunately what you'll need to do.
> Is it an expected behaviour ?
Yes, though less than ideal.
> I would expect the uri scheme platform:/plugin to resolve the target
> platform plugins too ?
That's a bit the problem. It has a very specific well-defined meaning
in Eclipse/Equinox itself. We can't simply reuse that schema in
general to resolve to the target platform because plugins installed in
the IDE expect to be able to use this URI to resolve to things in the
installation itself. We can use mappings in the Ecore editor to achieve
the result (much like we do to resolve the workspace when the bundle is
present there), but work remains to be done for that.
>
> thanks.
>
> SeB.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Target Platform ecore model can't be resolved [message #777362 is a reply to message #777329] Tue, 10 January 2012 10:39 Go to previous message
Sébastien  Gandon is currently offline Sébastien GandonFriend
Messages: 184
Registered: July 2009
Senior Member
Thanks Ed for this complete answer (as usual).
my other comments on the bug you mentioned.

SeB.
Previous Topic:Constructing generic objects
Next Topic:how to customize emf.edit.providers
Goto Forum:
  


Current Time: Fri Apr 26 12:13:52 GMT 2024

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

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

Back to the top