save&load two packages in one file [message #630972] |
Tue, 05 October 2010 12:49  |
Eclipse User |
|
|
|
Hi,
I have a plugin (A) using emf and it should provide an extension point using a Interface from a own
generated class extending EObject. Other plugins (B, C, ...) should provide a class implementing the
interface (also as emf model) and providing a GUI to edit the properties.
How can I create objects from plugin C and handle it within emf in plugin A? And how can I save all
in one xml-file and read it later on?
I am quite new to emf and would be happy about any hints.
Thanks, Martin
|
|
|
|
Re: save&load two packages in one file [message #631102 is a reply to message #630991] |
Wed, 06 October 2010 03:50  |
Eclipse User |
|
|
|
Hi Ed,
thank you very much! It works very well, in a different way than I thought but it does what I want!
Here some hints for others according to the example from the link below:
* while creating the Link.genmodel make sure to add the "referenced generator model"
(Resource.genmodel) in the "Package Selection" page and NOT to select the package "Resource"
* generate only the model and edit code of the Link package
Martin
Ed Merks wrote, On 05.10.2010 20:47:
> Martin,
>
> Comments below.
>
> Martin Jacob wrote:
>> Hi,
>>
>> I have a plugin (A) using emf and it should provide an extension point using a Interface from a
>> own generated class extending EObject. Other plugins (B, C, ...) should provide a class
>> implementing the interface (also as emf model) and providing a GUI to edit the properties.
>>
>> How can I create objects from plugin C and handle it within emf in plugin A? And how can I save
>> all in one xml-file and read it later on?
> This sounds a bit like: http://ed-merks.blogspot.com/2008/01/creating-children-you-d idnt-know.html
>
>>
>> I am quite new to emf and would be happy about any hints.
>>
>> Thanks, Martin
|
|
|
Powered by
FUDForum. Page generated in 0.05770 seconds