Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Model Package not registered
Model Package not registered [message #878098] Mon, 28 May 2012 14:38 Go to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi All,

I am facing a very strange thing.
May be i am missing a very silly thing.

I have created my model. Contributed the generated package to the package
registry through the extension point.

Then my plug-ins underwent a build through Maven.
The the built plug-ins are taken as a target platform and iwrite my code against it.

Strangely when i am trying to refer the above ecore through another ecore using the load resources. I do not find the entry for my ecore in the UI.
I can see but the other plug-ins who are using the classes of the same ecore can refer it.

Any pointers would be hugely appreciated.

cheers,
Saurav


Re: Model Package not registered [message #878178 is a reply to message #878098] Mon, 28 May 2012 18:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Saurav,

Is the model folder (containing the *.ecore and *.genmodel) in the
bundle's jar? Is the plugin.xml in there too?

On 28/05/2012 4:38 PM, saurav sarkar wrote:
> Hi All,
>
> I am facing a very strange thing.
> May be i am missing a very silly thing.
>
> I have created my model. Contributed the generated package to the package
> registry through the extension point.
>
> Then my plug-ins underwent a build through Maven.
> The the built plug-ins are taken as a target platform and iwrite my
> code against it.
>
> Strangely when i am trying to refer the above ecore through another
> ecore using the load resources. I do not find the entry for my ecore
> in the UI.
> I can see but the other plug-ins who are using the classes of the same
> ecore can refer it.
>
> Any pointers would be hugely appreciated.
>
> cheers,
> Saurav


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Model Package not registered [message #878310 is a reply to message #878178] Tue, 29 May 2012 03:29 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi Ed,

Thanks for the reply.
Yes, the model folder containing the .ecore and .genmodel is there
also the plugin.xml is also there.

cheers,
Saurav


Re: Model Package not registered [message #878344 is a reply to message #878310] Tue, 29 May 2012 05:39 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Saurav,<br>
<br>
I noticed you mentioned a target platform; EMF doesn't resolve
registered packages from the target platform.  <br>
<blockquote><a class="moz-txt-link-freetext" href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=182741">https://bugs.eclipse.org/bugs/show_bug.cgi?id=182741</a><br>
</blockquote>
It will resolve them if they're installed in the IDE itself.  Maybe
I'll have time in the next release to address this shortcoming.<br>
<br>
<br>
On 29/05/2012 5:29 AM, saurav sarkar wrote:
<blockquote cite="mid:jq1fr8$6mh$1@xxxxxxxxe.org" type="cite">Hi
Ed,
<br>
<br>
Thanks for the reply.
<br>
Yes, the model folder containing the .ecore and .genmodel is there
also the plugin.xml is also there.
<br>
<br>
cheers,
<br>
Saurav
<br>
</blockquote>
</body>
</html>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Model Package not registered [message #878407 is a reply to message #878344] Tue, 29 May 2012 08:46 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi Ed,

Thanks again for reply.
I have added the built jar in the plug-ins folder of the installed IDE.
But still its not recognizing Sad.

cheers,
Saurav


Re: Model Package not registered [message #878428 is a reply to message #878407] Tue, 29 May 2012 09:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
What specifically are you doing with Load Resource? You're using
"Browse Registered Packages..."? I'm not sure if you have to run the
IDE with -clean if you've updated the installation...


On 29/05/2012 10:47 AM, saurav sarkar wrote:
> Hi Ed,
>
> Thanks again for reply.
> I have added the built jar in the plug-ins folder of the installed IDE.
> But still its not recognizing :(.
>
> cheers,
> Saurav
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Model Package not registered [message #878430 is a reply to message #878428] Tue, 29 May 2012 09:38 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Yes i am trying to load the resource with "Browse registered pacakges".
I had tried the -clean option already but still it did not work Sad

PS: Let me check if the dependencies are properly loaded or not

cheers,
Saurav


[Updated on: Tue, 29 May 2012 09:44]

Report message to a moderator

Re: Model Package not registered [message #878444 is a reply to message #878430] Tue, 29 May 2012 10:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Saurav,

Try -clean -debug and make sure there are not messages about your bundle
having unsatisfied dependencies in the Error Log.


On 29/05/2012 11:38 AM, saurav sarkar wrote:
> Yes i am trying to load the resource with "Browse registered pacakges".
> I had tried the -clean option already but still it did not work :(
>
> cheers,
> Saurav


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Model Package not registered [message #878454 is a reply to message #878444] Tue, 29 May 2012 10:42 Go to previous message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi Ed,

Yes, i think a hint about the problem.
Some problem about unsatisfied dependencies and mismatch of versions in the target platform and the IDE plug-ins.
Will update this thread if i found some solution.

cheers,
Saurav


Previous Topic:XML Serialization of not-set required attributes/elements
Next Topic:[CDO] EOFException that can't be debugged
Goto Forum:
  


Current Time: Fri Apr 19 05:52:31 GMT 2024

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

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

Back to the top