Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Loading Resource from EMF generated Plugin
Loading Resource from EMF generated Plugin [message #1000212] Mon, 14 January 2013 09:18 Go to next message
Florian Wartenberg is currently offline Florian WartenbergFriend
Messages: 25
Registered: July 2012
Junior Member
I have created an Ecore file then a genmodel from this file and used the option "generate all" afterwards I exported the plugins via the export wizard and put them into the dropins folder. Now I can use my plugin without any problem excpet when trying to load the ecore file as a resource into another ecore file.

1. Create a new Java project
2. Create a new Ecore model
3. Load Resource
4. Browse registered Packages
5. Select the relevant plugin

Then I get the following error:

Problems encountered in file "platform:/plugin/<pluginname>/model/<ecoremodel>.ecore
     Resource '/<pluginname>/META-INF/MANIFEST.MF/model/<ecoremodel>.ecore' does not exist


But stranegly when I run the generated Project as an Ecplise Application I can load the resource without any problems.

I would very much to resolve this problem hence I need to load my model as a resoure in several other ecore models.


Regards

F. Wartenberg
Re: Loading Resource from EMF generated Plugin [message #1000220 is a reply to message #1000212] Mon, 14 January 2013 09:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Florian,

Which version of EMF are you trying this with?


On 14/01/2013 10:18 AM, Florian Wartenberg wrote:
> I have created an Ecore file then a genmodel from this file and used
> the option "generate all" afterwards I exported the plugins via the
> export wizard and put them into the dropins folder. Now I can use my
> plugin without any problem excpet when trying to load the ecore file
> as a resource into another ecore file.
>
> 1. Create a new Java project
> 2. Create a new Ecore model
> 3. Load Resource
> 4. Browse registered Packages 5. Select the relevant plugin
>
> Then I get the following error:
>
>
> Problems encountered in file
> "platform:/plugin/<pluginname>/model/<ecoremodel>.ecore
> Resource
> '/<pluginname>/META-INF/MANIFEST.MF/model/<ecoremodel>.ecore' does not
> exist
>
>
> But stranegly when I run the generated Project as an Ecplise
> Application I can load the resource without any problems.
>
> I would very much to resolve this problem hence I need to load my
> model as a resoure in several other ecore models.
>
>
> Regards
>
> F. Wartenberg
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Loading Resource from EMF generated Plugin [message #1000224 is a reply to message #1000220] Mon, 14 January 2013 10:02 Go to previous messageGo to next message
Florian Wartenberg is currently offline Florian WartenbergFriend
Messages: 25
Registered: July 2012
Junior Member
I am running the latest Juno release with modeling components and I am using the
Eclipse Modeling Framework Core Runtime
Version: 2.9.0.v20121213-0932
Build id: S201212130932
Re: Loading Resource from EMF generated Plugin [message #1000229 is a reply to message #1000212] Mon, 14 January 2013 10:11 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

The 'dropins' folder was deprecated long ago since it conflicts with
P2's ability to ensure installation integrity.

Last time I tried to use it, it didn't do anything useful for me.

Regards

Ed Willink

On 14/01/2013 09:18, Florian Wartenberg wrote:
> put them into the dropins folder.
Re: Loading Resource from EMF generated Plugin [message #1000231 is a reply to message #1000224] Mon, 14 January 2013 10:16 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Florian,

I think I fixed that with this commit:

http://git.eclipse.org/c/emf/org.eclipse.emf.git/commit/?id=9332ec8af8dafbc9698c4dee540552e785459d2f

So if you could try a recent (nightly) build, it probably works properly.


On 14/01/2013 11:02 AM, Florian Wartenberg wrote:
> I am running the latest Juno release with modeling components and I am
> using the Eclipse Modeling Framework Core Runtime
> Version: 2.9.0.v20121213-0932
> Build id: S201212130932


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Loading Resource from EMF generated Plugin [message #1000232 is a reply to message #1000229] Mon, 14 January 2013 10:19 Go to previous messageGo to next message
Florian Wartenberg is currently offline Florian WartenbergFriend
Messages: 25
Registered: July 2012
Junior Member
Ed Willink wrote on Mon, 14 January 2013 05:11
Hi

The 'dropins' folder was deprecated long ago since it conflicts with
P2's ability to ensure installation integrity.

Last time I tried to use it, it didn't do anything useful for me.

Regards

Ed Willink

On 14/01/2013 09:18, Florian Wartenberg wrote:
> put them into the dropins folder.


Ok this is what I thought too so I created a feature project and a update site project and created an archive then I installed the plugin. Everything worked fine except for this issue wich still was not resolved.

regards

Florian

[Updated on: Mon, 14 January 2013 10:22]

Report message to a moderator

Re: Loading Resource from EMF generated Plugin [message #1000238 is a reply to message #1000231] Mon, 14 January 2013 10:31 Go to previous messageGo to next message
Florian Wartenberg is currently offline Florian WartenbergFriend
Messages: 25
Registered: July 2012
Junior Member
Quote:

Florian,

I think I fixed that with this commit:

http://git.eclipse.org/c/emf/org.eclipse.emf.git/commit/?id=9332ec8af8dafbc9698c4dee540552e785459d2f

So if you could try a recent (nightly) build, it probably works properly.


On 14/01/2013 11:02 AM, Florian Wartenberg wrote:
> I am running the latest Juno release with modeling components and I am
> using the Eclipse Modeling Framework Core Runtime
> Version: 2.9.0.v20121213-0932
> Build id: S201212130932


How do I install this nightly build?

regards

Florian
Re: Loading Resource from EMF generated Plugin [message #1000245 is a reply to message #1000238] Mon, 14 January 2013 10:42 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
http://download.eclipse.org/modeling/emf/emf/updates/nightly

On 14/01/2013 11:31 AM, Florian Wartenberg wrote:
> Quote:
>> Florian,
>>
>> I think I fixed that with this commit:
>>
>> http://git.eclipse.org/c/emf/org.eclipse.emf.git/commit/?id=9332ec8af8dafbc9698c4dee540552e785459d2f
>>
>>
>> So if you could try a recent (nightly) build, it probably works
>> properly.
>>
>>
>> On 14/01/2013 11:02 AM, Florian Wartenberg wrote:
>> > I am running the latest Juno release with modeling components and I
>> am > using the Eclipse Modeling Framework Core Runtime
>> > Version: 2.9.0.v20121213-0932
>> > Build id: S201212130932
>
>
> How do I install this nightly build?
>
> regards
>
> Florian


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Loading Resource from EMF generated Plugin [message #1000281 is a reply to message #1000245] Mon, 14 January 2013 12:37 Go to previous message
Florian Wartenberg is currently offline Florian WartenbergFriend
Messages: 25
Registered: July 2012
Junior Member
I installed the Nighly Build and you were right now it works properly in every way I expect it to be thanks as always!

regards

Florian
Previous Topic:[CDO] multiple merge between branches
Next Topic:[CDO] Query & Lucene
Goto Forum:
  


Current Time: Fri Mar 29 14:08:57 GMT 2024

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

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

Back to the top