Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Graphic Editor on xml schema model with GMF?(Question about the use of GMF for graphical editor xml schema based)
Graphic Editor on xml schema model with GMF? [message #496090] Sun, 08 November 2009 13:57 Go to next message
M.  is currently offline M. Friend
Messages: 19
Registered: November 2009
Junior Member
Hi,

I need to make a graphical editor (eclipse based), that permict to manipulate some figure and connection and that generate (or mantain parallely) a corresponding textual (xml) traduction that follow an xml schema.

So my (basic) question is:" I have a Xml schema that define my document (model), and i would to edit/create some xml doc based on this schema via graphic modeling, is correct the use of gmf?

Gmf permict the the step of "translation" in textual xml that I need, or it stops its funcionality to the rendering/editing of the graphic model (based on user domain model)?


M.
Re: Graphic Editor on xml schema model with GMF? [message #496092 is a reply to message #496090] Sun, 08 November 2009 14:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000307060504000108080700
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

M,

You can keep the domain model in a separate resource from the diagram.
This tutorial shows the basic EMF support for converting the schema to
Ecore and for loading and saving instances that conform to the schema.

Tutorial: Generating an EMF Model using XML Schema
< http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.emf.doc/tutorials/xlibmod/xlibmod.html>

From this basis, you can use GMF to generate a graphical editor.


M. wrote:
> Hi,
>
> I need to make a graphical editor (eclipse based), that permict to
> manipulate some figure and connection and that generate (or mantain
> parallely) a corresponding textual (xml) traduction that follow an xml
> schema.
>
> So my (basic) question is:" I have a Xml schema that define my
> document (model), and i would to edit/create some xml doc based on
> this schema via graphic modeling, is correct the use of gmf?
>
> Gmf permict the the step of "translation" in textual xml that I need,
> or it stops its funcionality to the rendering/editing of the graphic
> model (based on user domain model)?
>
>
> M.

--------------000307060504000108080700
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
M,<br>
<br>
You can keep the domain model in a separate resource from the diagram. 
This tutorial shows the basic EMF support for converting the schema to
Ecore and for loading and saving instances that conform to the schema.<br>
<blockquote><a
href=" http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.emf.doc/tutorials/xlibmod/xlibmod.html">Tutorial:
Generating an EMF Model using XML Schema</a><br>
</blockquote>
From this basis, you can use GMF to generate a graphical editor.<br>
<br>
<br>
M. wrote:
<blockquote cite="mid:hd6iot$kuk$1@build.eclipse.org" type="cite">Hi,
<br>
<br>
I need to make a graphical editor (eclipse based), that permict to
manipulate some figure and connection and that generate (or mantain
parallely) a corresponding textual (xml) traduction that follow an xml
schema.
<br>
<br>
So my (basic) question is:" I have a Xml schema that define my document
(model), and i would to edit/create some xml doc based on this schema
via graphic modeling, is correct the use of gmf?
<br>
<br>
Gmf permict the the step of  "translation" in textual xml that I need,
or it stops its funcionality to the rendering/editing of the graphic
model (based on user domain model)?
<br>
<br>
<br>
M.
<br>
</blockquote>
</body>
</html>

--------------000307060504000108080700--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Graphic Editor on xml schema model with GMF? [message #496106 is a reply to message #496092] Sun, 08 November 2009 17:02 Go to previous messageGo to next message
M.  is currently offline M. Friend
Messages: 19
Registered: November 2009
Junior Member
Ed Merks wrote on Sun, 08 November 2009 09:55
T
M,

You can keep the domain model in a separate resource from the diagram.
This tutorial shows the basic EMF support for converting the schema to
Ecore and for loading and saving instances that conform to the schema.

Tutorial: Generating an EMF Model using XML Schema
< http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.emf.doc/tutorials/xlibmod/xlibmod.html>

From this basis, you can use GMF to generate a graphical editor.



thanks I thought that this was solution,
actuallty I've not read all the tutorial, but I've a last doubt:
1)using this emf model (gen via schema) as base for gmf, preserve the editor functionality (generated by emf) that I need, and this is integrated "in the whole" in a single "final packet" (GMF & EMF editor are trasparently fuse).
2)User event on graph can reflect on entity edited by emf gen editor and back..
Re: Graphic Editor on xml schema model with GMF? [message #496110 is a reply to message #496106] Sun, 08 November 2009 17:29 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
M,

I'd suggest you just try it. I'm sure it will satisfy your needs.

M. wrote:
> Ed Merks wrote on Sun, 08 November 2009 09:55
>> T
>> M,
>>
>> You can keep the domain model in a separate resource from the
>> diagram. This tutorial shows the basic EMF support for converting
>> the schema to Ecore and for loading and saving instances that conform
>> to the schema.
>>
>> Tutorial: Generating an EMF Model using XML Schema
>> < http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips
>> e.emf.doc/tutorials/xlibmod/xlibmod.html>
>>
>> From this basis, you can use GMF to generate a graphical editor.
>
>
> thanks I thought that this was solution, actuallty I've not read all
> the tutorial, but I've a last doubt: 1)using this emf model (gen via
> schema) as base for gmf, preserve the editor functionality (generated
> by emf) that I need, and this is integrated "in the whole" in a single
> "final packet" (GMF & EMF editor are trasparently fuse).
> 2)User event on graph can reflect on entity edited by emf gen editor
> and back..


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:ARRANGE ALL: can I obtain a "bottom-to-top" layout?
Next Topic:Eclipse Modeling Days
Goto Forum:
  


Current Time: Tue Apr 23 16:17:13 GMT 2024

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

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

Back to the top