Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [newbie] EMF and UI
[newbie] EMF and UI [message #419341] Mon, 19 May 2008 20:20 Go to next message
Eclipse UserFriend
Originally posted by: luca.picello.gmail.com

Hello folks,
I have an EMF model for data (that goes to an XML file). And an editor for
that model.
If I am right the editor is 1:1 with the data-model and in this case
everything I do on the UI is automatically reflected into the file when
saved.
UI<->EMF<->XML
this is good because have the command-stack correctly updated to every
action I do in the UI.

but what I would like to achieve is something like:
UI<->UI EMF <-> XML EMF<->XML
(ui domain | under the hood domain which is separeted from
the user inteface)


where the "UI EMF" should be the data represented in the editor and the "XML
EMF" is the data saved to the file (which is a subset of "UI EMF").
What is your suggestion on where to start?

Thanks in advance
Luca
Re: [newbie] EMF and UI [message #419345 is a reply to message #419341] Mon, 19 May 2008 21:55 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Luca,

Comments below.

Luca Picello wrote:
> Hello folks,
> I have an EMF model for data (that goes to an XML file). And an editor for
> that model.
> If I am right the editor is 1:1 with the data-model and in this case
> everything I do on the UI is automatically reflected into the file when
> saved.
> UI<->EMF<->XML
> this is good because have the command-stack correctly updated to every
> action I do in the UI.
>
> but what I would like to achieve is something like:
> UI<->UI EMF <-> XML EMF<->XML
> (ui domain | under the hood domain which is separeted from
> the user inteface)
>
>
> where the "UI EMF" should be the data represented in the editor and the "XML
> EMF" is the data saved to the file (which is a subset of "UI EMF").
> What is your suggestion on where to start?
>
From a UI point of view, it's the generated item providers that
determine how the UI displays the data. So you can fiddle with those to
hide children, display virtual children, and so on. Probably it will be
good to read the EMF Edit overview to get a sense for how this works.
> Thanks in advance
> Luca
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Programmatically moving Packages within an UML model
Next Topic:resource.unload / reusing and XMLResource
Goto Forum:
  


Current Time: Thu Apr 25 02:11:32 GMT 2024

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

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

Back to the top