Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Model serialization
Model serialization [message #194826] Sat, 28 June 2008 00:52 Go to next message
Eclipse UserFriend
Originally posted by: jk6803.yahoo.com

Hi

I am looking for the way how to serialize a model object. What I am trying
to do is that whenever the model changes, I want to save to the file and
send over the network. The model should be both GMF generated code based
on EMF model and some shapes which are provided by GMF runtime for
example, oval and rectangle.

thanks
Re: Model serialization [message #194843 is a reply to message #194826] Sat, 28 June 2008 03:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

--=-iVk3yrPzDDp9yLdoG5Df
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

Posting once should be enough to get an answer :-)

Have you considered CDO for remoting your EMF objects? Have a look at

http://www.eclipse.org/modeling/emf/?project=cdo

and follow up with questions on the EMF newsgroup:

news://news.eclipse.org/eclipse.tools.emf

Cheers,

Christian


On Sat, 2008-06-28 at 00:52 +0000, hawk wrote:

> Hi
>
> I am looking for the way how to serialize a model object. What I am trying
> to do is that whenever the model changes, I want to save to the file and
> send over the network. The model should be both GMF generated code based
> on EMF model and some shapes which are provided by GMF runtime for
> example, oval and rectangle.
>
> thanks
>

--=-iVk3yrPzDDp9yLdoG5Df
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.0">
</HEAD>
<BODY>
Hi,<BR>
<BR>
Posting once should be enough to get an answer :-)<BR>
<BR>
Have you considered CDO for remoting your EMF objects?&nbsp; Have a look at<BR>
<BR>
&nbsp;&nbsp; <A HREF="http://www.eclipse.org/modeling/emf/?project=cdo">http://www.eclipse.org/modeling/emf/?project=cdo</A><BR>
<BR>
and follow up with questions on the EMF newsgroup:<BR>
<BR>
&nbsp; <A HREF="news://news.eclipse.org/eclipse.tools.emf">news://news.eclipse.org/eclipse.tools.emf</A><BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Sat, 2008-06-28 at 00:52 +0000, hawk wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi</FONT>

<FONT COLOR="#000000">I am looking for the way how to serialize a model object. What I am trying </FONT>
<FONT COLOR="#000000">to do is that whenever the model changes, I want to save to the file and </FONT>
<FONT COLOR="#000000">send over the network. The model should be both GMF generated code based </FONT>
<FONT COLOR="#000000">on EMF model and some shapes which are provided by GMF runtime for </FONT>
<FONT COLOR="#000000">example, oval and rectangle.</FONT>

<FONT COLOR="#000000">thanks</FONT>

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-iVk3yrPzDDp9yLdoG5Df--
Re: Model serialization [message #194850 is a reply to message #194843] Sat, 28 June 2008 04:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jk6803.yahoo.com

Thanks

But the majority part of objects which should be serialized are shapes
provided by GMF runtime rather than EMF model such as "geoshape example"
eclipse provides. Is there any possible solution?.
Re: Model serialization [message #194858 is a reply to message #194850] Sat, 28 June 2008 08:29 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello hawk.,

All information about the shapes is stored in corresponding diagram file.
If you prefer to transfer only one EMf resource then you can generate diagram
with "Same File For Diagram And Model" option switched on.

-----------------
Alex Shatalin
Previous Topic:model Serialization
Next Topic:How to make Port Resizable
Goto Forum:
  


Current Time: Fri Apr 19 23:57:35 GMT 2024

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

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

Back to the top