Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Eugenia] @gmf.diagram Annotations ignored
[Eugenia] @gmf.diagram Annotations ignored [message #518505] Thu, 04 March 2010 10:29 Go to next message
Ralf is currently offline RalfFriend
Messages: 25
Registered: March 2010
Junior Member
Moin, moin,

I'm using Eclipse Modelling Package 20090920-1017 with Eugenia 0.8.8.200910281243 and Emfatic 0.3.0.200810132307

The GMF generation works fine but the gmf.diagram annotations are ignored (while others like @gmf.node or @gmf.link are working):

@gmf.diagram(onefile="true", diagram.extension="sgraph", units="Pixels")
class SGraph {
  val Node[*] nodes;
  val Edge[*] edges;
}


The annotations are transfered correctly by Emfatic to the sgraph.ecore model.

Does anybody have a clue what's wrong ?
Re: [Eugenia] @gmf.diagram Annotations ignored [message #518522 is a reply to message #518505] Thu, 04 March 2010 11:33 Go to previous messageGo to next message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000701020409000106060600
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I haven't actually worked with Eugenia yet, so this could be wrong. But
could it be that

On 04/03/2010 10:29, Ralf Nagel wrote:
> @gmf.diagram(onefile="true", diagram.extension="sgraph", units="Pixels")
should really be

@gmf.diagram(onefile="true", extension="sgraph", units="Pixels")


?

Steffen

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

<!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">
Hi,<br>
<br>
I haven't actually worked with Eugenia yet, so this could be wrong. But
could it be that <br>
<br>
On 04/03/2010 10:29, Ralf Nagel wrote:
<blockquote cite="mid:hmo21k$98v$1@build.eclipse.org" type="cite">@gmf.diagram(onefile="true",
diagram.extension="sgraph", units="Pixels")
<br>
</blockquote>
should really be<br>
<blockquote>
<pre>@gmf.diagram(onefile="true", extension="sgraph", units="Pixels")
</pre>
</blockquote>
?<br>
<br>
Steffen<br>
</body>
</html>

--------------000701020409000106060600--
Re: [Eugenia] @gmf.diagram Annotations ignored [message #518533 is a reply to message #518522] Thu, 04 March 2010 12:06 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Ralf,

What do you mean when you say that they are ignored i.e. what are the
symptoms you're observing?

Cheers,
Dimitris

Steffen Zschaler wrote:
> Hi,
>
> I haven't actually worked with Eugenia yet, so this could be wrong. But
> could it be that
>
> On 04/03/2010 10:29, Ralf Nagel wrote:
>> @gmf.diagram(onefile="true", diagram.extension="sgraph", units="Pixels")
> should really be
>
> @gmf.diagram(onefile="true", extension="sgraph", units="Pixels")
>
> ?
>
> Steffen
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: [Eugenia] @gmf.diagram Annotations ignored [message #518578 is a reply to message #518533] Thu, 04 March 2010 14:40 Go to previous messageGo to next message
Ralf is currently offline RalfFriend
Messages: 25
Registered: March 2010
Junior Member
Dimitrios Kolovos wrote on Thu, 04 March 2010 07:06
Hi Ralf,

What do you mean when you say that they are ignored i.e. what are the
symptoms you're observing?

Cheers,
Dimitris


Well, the generated editor uses "two files", the extensions are "sgraph" and "sgraph_diagram" and the default units are "Inches".
Re: [Eugenia] @gmf.diagram Annotations ignored [message #518579 is a reply to message #518522] Thu, 04 March 2010 14:43 Go to previous messageGo to next message
Ralf is currently offline RalfFriend
Messages: 25
Registered: March 2010
Junior Member
Steffen Zschaler wrote on Thu, 04 March 2010 06:33

Hi,

I haven't actually worked with Eugenia yet, so this could be wrong. But
could it be that

On 04/03/2010 10:29, Ralf Nagel wrote:
> @gmf.diagram(onefile="true", diagram.extension="sgraph", units="Pixels")
should really be

@gmf.diagram(onefile="true", extension="sgraph", units="Pixels")



I'm referring to http://www.eclipse.org/gmt/epsilon/doc/articles/eugenia-gmf- tutorial/ and there it says:

gmf.diagram
Denotes the root object of the metamodel. Only one (non-abstract) EClass must be annotated as gmf.diagram. Accepts the following details

    * onefile (optional) : a value of true specifies that the domain model and the diagram should be stored in the same file
    * model.extension (optional) : the file extension for the domain model
    * diagram.extension (optional) : the file extension for the diagram file
    * units (optional) : the units for the diagram (e.g. Pixels)

Re: [Eugenia] @gmf.diagram Annotations ignored [message #518602 is a reply to message #518579] Thu, 04 March 2010 10:42 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Ralf,

Could it be the case that you're not performing the following step?

"Right click the generated .gmfgen model and select Eugenia->Synchronize
GMF gen model"

If this is not the case, could you please send me your .emf metamodel
(dskolovos _ gmail _ com) so that I can have a closer look?

Cheers,
Dimitris

Dr. No wrote:
> Steffen Zschaler wrote on Thu, 04 March 2010 06:33
>> Hi,
>>
>> I haven't actually worked with Eugenia yet, so this could be wrong.
>> But could it be that
>>
>> On 04/03/2010 10:29, Ralf Nagel wrote:
>> > @gmf.diagram(onefile="true", diagram.extension="sgraph",
>> units="Pixels")
>> should really be
>>
>> @gmf.diagram(onefile="true", extension="sgraph", units="Pixels")
>
> I'm referring to
> http://www.eclipse.org/gmt/epsilon/doc/articles/eugenia-gmf- tutorial/
> and there it says:
>
>
> gmf.diagram
> Denotes the root object of the metamodel. Only one (non-abstract) EClass
> must be annotated as gmf.diagram. Accepts the following details
>
> * onefile (optional) : a value of true specifies that the domain
> model and the diagram should be stored in the same file
> * model.extension (optional) : the file extension for the domain model
> * diagram.extension (optional) : the file extension for the diagram file
> * units (optional) : the units for the diagram (e.g. Pixels)
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: [Eugenia] @gmf.diagram Annotations ignored [message #518725 is a reply to message #518602] Thu, 04 March 2010 20:07 Go to previous messageGo to next message
Ralf is currently offline RalfFriend
Messages: 25
Registered: March 2010
Junior Member
Dimitrios Kolovos wrote on Thu, 04 March 2010 05:42
Hi Ralf,

Could it be the case that you're not performing the following step?

"Right click the generated .gmfgen model and select Eugenia->Synchronize
GMF gen model"



Hi Dimitrios,

Oh, sh** ...

I remember having done this Synchronize step on the first day following the tutorial and forgot the step feeling familiar with the building process the next days. It's my fault, I'm sorry! Thanx for the help.

Cu - Ralf.
Re: [Eugenia] @gmf.diagram Annotations ignored [message #586977 is a reply to message #518505] Thu, 04 March 2010 11:33 Go to previous messageGo to next message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000701020409000106060600
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I haven't actually worked with Eugenia yet, so this could be wrong. But
could it be that

On 04/03/2010 10:29, Ralf Nagel wrote:
> @gmf.diagram(onefile="true", diagram.extension="sgraph", units="Pixels")
should really be

@gmf.diagram(onefile="true", extension="sgraph", units="Pixels")


?

Steffen

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

<!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">
Hi,<br>
<br>
I haven't actually worked with Eugenia yet, so this could be wrong. But
could it be that <br>
<br>
On 04/03/2010 10:29, Ralf Nagel wrote:
<blockquote cite="mid:hmo21k$98v$1@build.eclipse.org" type="cite">@gmf.diagram(onefile="true",
diagram.extension="sgraph", units="Pixels")
<br>
</blockquote>
should really be<br>
<blockquote>
<pre>@gmf.diagram(onefile="true", extension="sgraph", units="Pixels")
</pre>
</blockquote>
?<br>
<br>
Steffen<br>
</body>
</html>

--------------000701020409000106060600--
Re: [Eugenia] @gmf.diagram Annotations ignored [message #586990 is a reply to message #518522] Thu, 04 March 2010 12:06 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Ralf,

What do you mean when you say that they are ignored i.e. what are the
symptoms you're observing?

Cheers,
Dimitris

Steffen Zschaler wrote:
> Hi,
>
> I haven't actually worked with Eugenia yet, so this could be wrong. But
> could it be that
>
> On 04/03/2010 10:29, Ralf Nagel wrote:
>> @gmf.diagram(onefile="true", diagram.extension="sgraph", units="Pixels")
> should really be
>
> @gmf.diagram(onefile="true", extension="sgraph", units="Pixels")
>
> ?
>
> Steffen
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: [Eugenia] @gmf.diagram Annotations ignored [message #587012 is a reply to message #518533] Thu, 04 March 2010 14:40 Go to previous messageGo to next message
Ralf is currently offline RalfFriend
Messages: 25
Registered: March 2010
Junior Member
Dimitrios Kolovos wrote on Thu, 04 March 2010 07:06
> Hi Ralf,
>
> What do you mean when you say that they are ignored i.e. what are the
> symptoms you're observing?
>
> Cheers,
> Dimitris


Well, the generated editor uses "two files", the extensions are "sgraph" and "sgraph_diagram" and the default units are "Inches".
Re: [Eugenia] @gmf.diagram Annotations ignored [message #587024 is a reply to message #518522] Thu, 04 March 2010 14:43 Go to previous messageGo to next message
Ralf is currently offline RalfFriend
Messages: 25
Registered: March 2010
Junior Member
Steffen Zschaler wrote on Thu, 04 March 2010 06:33
> Hi,
>
> I haven't actually worked with Eugenia yet, so this could be wrong. But
> could it be that
>
> On 04/03/2010 10:29, Ralf Nagel wrote:
> > @gmf.diagram(onefile="true", diagram.extension="sgraph", units="Pixels")
> should really be
>
> @gmf.diagram(onefile="true", extension="sgraph", units="Pixels")

I'm referring to http://www.eclipse.org/gmt/epsilon/doc/articles/eugenia-gmf- tutorial/ and there it says:


gmf.diagram
Denotes the root object of the metamodel. Only one (non-abstract) EClass must be annotated as gmf.diagram. Accepts the following details

* onefile (optional) : a value of true specifies that the domain model and the diagram should be stored in the same file
* model.extension (optional) : the file extension for the domain model
* diagram.extension (optional) : the file extension for the diagram file
* units (optional) : the units for the diagram (e.g. Pixels)
Re: [Eugenia] @gmf.diagram Annotations ignored [message #587033 is a reply to message #518579] Thu, 04 March 2010 15:33 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Ralf,

Could it be the case that you're not performing the following step?

"Right click the generated .gmfgen model and select Eugenia->Synchronize
GMF gen model"

If this is not the case, could you please send me your .emf metamodel
(dskolovos _ gmail _ com) so that I can have a closer look?

Cheers,
Dimitris

Dr. No wrote:
> Steffen Zschaler wrote on Thu, 04 March 2010 06:33
>> Hi,
>>
>> I haven't actually worked with Eugenia yet, so this could be wrong.
>> But could it be that
>>
>> On 04/03/2010 10:29, Ralf Nagel wrote:
>> > @gmf.diagram(onefile="true", diagram.extension="sgraph",
>> units="Pixels")
>> should really be
>>
>> @gmf.diagram(onefile="true", extension="sgraph", units="Pixels")
>
> I'm referring to
> http://www.eclipse.org/gmt/epsilon/doc/articles/eugenia-gmf- tutorial/
> and there it says:
>
>
> gmf.diagram
> Denotes the root object of the metamodel. Only one (non-abstract) EClass
> must be annotated as gmf.diagram. Accepts the following details
>
> * onefile (optional) : a value of true specifies that the domain
> model and the diagram should be stored in the same file
> * model.extension (optional) : the file extension for the domain model
> * diagram.extension (optional) : the file extension for the diagram file
> * units (optional) : the units for the diagram (e.g. Pixels)
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: [Eugenia] @gmf.diagram Annotations ignored [message #587057 is a reply to message #587033] Thu, 04 March 2010 20:07 Go to previous message
Ralf is currently offline RalfFriend
Messages: 25
Registered: March 2010
Junior Member
Dimitrios Kolovos wrote on Thu, 04 March 2010 05:42
> Hi Ralf,
>
> Could it be the case that you're not performing the following step?
>
> "Right click the generated .gmfgen model and select Eugenia->Synchronize
> GMF gen model"


Hi Dimitrios,

Oh, sh** ...

I remember having done this Synchronize step on the first day following the tutorial and forgot the step feeling familiar with the building process the next days. It's my fault, I'm sorry! Thanx for the help.

Cu - Ralf.
Previous Topic:How to list all the wizards registered in Epsilon?
Next Topic:EVL is not working.
Goto Forum:
  


Current Time: Fri Apr 19 11:58:02 GMT 2024

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

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

Back to the top