<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns="http://purl.org/rss/1.0/">
<channel rdf:about="http://www.eclipse.org/forums/index.php">
	<title>Eclipse Community Forums RDF feed</title>
	<link>http://www.eclipse.org/forums/index.php</link>
	<description>Eclipse Community Forums RDF feed</description>
	<items>
		<rdf:Seq>
			<rdf:li rdf:resource="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=499136&amp;th=156828#msg_499136" />
			<rdf:li rdf:resource="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=499128&amp;th=157619#msg_499128" />
			<rdf:li rdf:resource="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=499126&amp;th=157619#msg_499126" />
			<rdf:li rdf:resource="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=499010&amp;th=156961#msg_499010" />
			<rdf:li rdf:resource="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498980&amp;th=157925#msg_498980" />
			<rdf:li rdf:resource="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498963&amp;th=157925#msg_498963" />
			<rdf:li rdf:resource="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498924&amp;th=157925#msg_498924" />
			<rdf:li rdf:resource="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498733&amp;th=157988#msg_498733" />
			<rdf:li rdf:resource="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498725&amp;th=157988#msg_498725" />
			<rdf:li rdf:resource="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498724&amp;th=157988#msg_498724" />
		</rdf:Seq>
	</items>
</channel>

<item rdf:about="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=499136&amp;th=156828#msg_499136">
	<title>Re: [Eugenia] Subdiagrams</title>
	<link>http://www.eclipse.org/forums/index.php?t=rview&amp;goto=499136&amp;th=156828#msg_499136</link>
	<description><![CDATA[As I just got a question from someone regarding subdiagrams:<br />
<br />
I recently submitted an enhancement request for subdiagrams of same type to Eugenia at <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=295271." target="_blank">https://bugs.eclipse.org/bugs/show_bug.cgi?id=295271.</a> I attached a ZIP file that contains a simple state machine language that features composite states (states are contained in compartments) and partitioning states, which open subdiagrams through double-click on the border (if you click inside the rectangle, you edit the label). This example was derived from the Eugenia state machine example.<br />
<br />
The key were two things: First of all, the @diagram class needs to get a @node annotation as well. That enables this class to have a diagram pane representation as well as a node representation inside diagrams. Then you'll need to make one manual configuration to gmfmap. The exact element, property and value is described in the enhancement request. I also provided three lines of code for an Ecore2GMF.eol file to make such a change automatically. Basically, all you have to do is figure out which class has to have both the diagram representation and the node representation inside a diagram.]]></description>
	<dc:subject></dc:subject>
	<dc:creator>Christoph Wienands</dc:creator>
	<dc:date>2009-11-20T03:13:14-00:00</dc:date>
</item>

<item rdf:about="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=499128&amp;th=157619#msg_499128">
	<title>Re: ECore2GMF.eol: How to access/change node in GmfMap</title>
	<link>http://www.eclipse.org/forums/index.php?t=rview&amp;goto=499128&amp;th=157619#msg_499128</link>
	<description><![CDATA[Never mind. I finally discovered the println feature in EOL and figured out that the nodeMapping.relatedDiagrams attribute is in fact an EolCollectionType object. Now don't ask me how a collection is stuffed into an XML attribute at the file level (seems counter-intuitive to me), but I finally got this code here working:<br />
<br />
<div class="pre"><pre>
var nodeMapping := GmfMap!NodeMapping.all.selectOne(nm|nm.domainMetaElement.name = &quot;PartitioningState&quot;);
var canvasMapping := GmfMap!CanvasMapping.all.first();
nodeMapping.relatedDiagrams.add(canvasMapping);
</pre></div><br />
Christoph]]></description>
	<dc:subject></dc:subject>
	<dc:creator>Christoph Wienands</dc:creator>
	<dc:date>2009-11-20T00:50:31-00:00</dc:date>
</item>

<item rdf:about="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=499126&amp;th=157619#msg_499126">
	<title>Re: ECore2GMF.eol: How to access/change node in GmfMap</title>
	<link>http://www.eclipse.org/forums/index.php?t=rview&amp;goto=499126&amp;th=157619#msg_499126</link>
	<description><![CDATA[Hey Dimitrios,<br />
<br />
that already got me further. So here is what I have right now:<br />
<br />
<div class="pre"><pre>var nodeMapping := GmfMap!NodeMapping.all.selectOne(nm|nm.domainMetaElement.name = &quot;PartitioningState&quot;);
var canvasMapping := GmfMap!CanvasMapping.all.first();
nodeMapping.relatedDiagrams := canvasMapping;</pre></div><br />
<br />
Unfortunately, the last line crashes because the canvasMapping cannot be assigned to the nodeMapping's relatedDiagram attribute. In the gmfmap XML, this is what the output should be:<br />
<br />
<div class="pre"><pre>&lt;ownedChild relatedDiagrams=&quot;//@diagram&quot;&gt;</pre></div><br />
<br />
I confirmed that the referenced @diagram node is truly a CanvasMapping type. I also confirmed that nodeMapping.relatedDiagrams is valid (it works if I assign 'null'). <br />
<br />
Any idea about how to get the CanvasMapping into the relatedDiagrams attribute?<br />
<br />
Thanks, Christoph<br />
<br />
PS: If I get this working, I'll add it to the diagram partitioning enhancement request that I submitted.]]></description>
	<dc:subject></dc:subject>
	<dc:creator>Christoph Wienands</dc:creator>
	<dc:date>2009-11-19T23:53:18-00:00</dc:date>
</item>

<item rdf:about="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=499010&amp;th=156961#msg_499010">
	<title>Re: Model Elemenet Types: &amp;quot;!&amp;quot; vs. &amp;quot;::&amp;quot;</title>
	<link>http://www.eclipse.org/forums/index.php?t=rview&amp;goto=499010&amp;th=156961#msg_499010</link>
	<description><![CDATA[Dimitris,<br />
<br />
Thanks for your help! I have a final question. On your mail you told me:<br />
<br />
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>Quote:</b></td></tr><tr><td class="quote"><br />
2. I changed both<br />
<br />
&lt;parameter name=&quot;isMetamodelFileBased&quot; value=&quot;true&quot;/&gt;<br />
<br />
to<br />
<br />
&lt;parameter name=&quot;isMetamodelFileBased&quot; value=&quot;false&quot;/&gt;<br />
<br /></td></tr></table><br />
<br />
Why and when to set that property to true, and where can I get detailed information on the attributes of the Epsilon workflow tasks?<br />
<br />
Thanks,<br />
<br />
Horacio<br />
]]></description>
	<dc:subject></dc:subject>
	<dc:creator>Horacio </dc:creator>
	<dc:date>2009-11-19T14:37:33-00:00</dc:date>
</item>

<item rdf:about="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498980&amp;th=157925#msg_498980">
	<title>Re: EVL validation is working, EMF is not</title>
	<link>http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498980&amp;th=157925#msg_498980</link>
	<description><![CDATA[Hi Dimitris,<br />
<br />
I filed the bug, the link is:<br />
<br />
<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=295575" target="_blank">https://bugs.eclipse.org/bugs/show_bug.cgi?id=295575</a><br />
<br />
Regards,<br />
<br />
Giovanni.]]></description>
	<dc:subject></dc:subject>
	<dc:creator>giovanni </dc:creator>
	<dc:date>2009-11-19T12:24:44-00:00</dc:date>
</item>

<item rdf:about="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498963&amp;th=157925#msg_498963">
	<title>Re: EVL validation is working, EMF is not</title>
	<link>http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498963&amp;th=157925#msg_498963</link>
	<description><![CDATA[Hi Giovanni,<br />
<br />
I've reproduced this and it seems to be a bug. Could you please open a<br />
bug report and post the link here?<br />
<br />
Cheers,<br />
Dimitris<br />
<br />
giovanni wrote:<br />
&gt; Sure, this is my environment:<br />
&gt; <br />
&gt; - Eclipse Modeling Galileo SR1 Incubation<br />
&gt; - Epsilon (by stable update site)<br />
&gt; - EMFatic<br />
&gt; <br />
&gt; I developed a new GMF Project from an *.emf file:<br />
&gt; @namespace(uri=&quot;hierarchy&quot;, prefix=&quot;hierarchy&quot;)<br />
&gt; @gmf(foo=&quot;bar&quot;)<br />
&gt; package hierarchy;<br />
&gt; <br />
&gt; @gmf.link(source=&quot;From&quot;,target=&quot;To&quot;,style=&quot;solid&quot;,width=<br />
&gt; &quot;1&quot;,label.icon=&quot;false&quot;,tool.small.path=&quot;icons\obj16\Association.gif<br />
&gt; &quot;,tool.small.bundle=&quot;org.eclipse.uml2.diagram.common&quot;)<br />
&gt; class Arc {<br />
&gt;  ref Node&#91;1&#93;#arcs From;<br />
&gt;  ref Node&#91;1&#93; To;<br />
&gt;  id attr String name;<br />
&gt;  attr boolean&#91;1&#93; multiple = false;<br />
&gt;  attr boolean&#91;1&#93; optional = false;<br />
&gt; }<br />
&gt; <br />
&gt; @gmf.node(figure=&quot;ellipse&quot;,size=&quot;15,15&quot;,color=&quot;0,0,0&quot;,tool.small.path=<br />
&gt; &quot;icons\obj16\ActivityFinalNode.gif&quot;,tool.small.bundle=&quot;org.eclipse.uml2.diagram.common<br />
&gt; &quot;)<br />
&gt; class Dimension extends Node {<br />
&gt; }<br />
&gt; <br />
&gt; @gmf.node(figure=&quot;ellipse&quot;,size=&quot;10,10&quot;,tool.small.path=<br />
&gt; &quot;icons\obj16\Artifact.gif&quot;,tool.small.bundle=&quot;org.eclipse.uml2.diagram.common<br />
&gt; &quot;)<br />
&gt; class Attribute extends Node {<br />
&gt;  attr boolean&#91;1&#93; crossDimensional = false;<br />
&gt;  attr boolean&#91;1&#93; descriptive = false;<br />
&gt;  attr boolean&#91;1&#93; optional = false;<br />
&gt;  attr boolean&#91;1&#93; convergence = false;<br />
&gt;  attr boolean&#91;1&#93; shared = false;<br />
&gt;  attr boolean&#91;1&#93; recursive = false;<br />
&gt; }<br />
&gt; <br />
&gt; @gmf.diagram(onefile=&quot;true&quot;,model.extension=&quot;hrc&quot;,diagram.extension= &quot;hrc&quot;)<br />
&gt; class Hierarchy {<br />
&gt;  id attr String&#91;1&#93; name;<br />
&gt;  val Dimension&#91;1&#93; dimension;<br />
&gt;  val Attribute&#91;*&#93; attributes;<br />
&gt;  attr String description;<br />
&gt;  attr String businessDescription = &quot;&quot;;<br />
&gt;  attr Date dateLastModified;<br />
&gt;  attr Date date;<br />
&gt;  attr Type type = &quot;NOT_CONFORMED&quot;;<br />
&gt;  val FactSchema factSchema;<br />
&gt; }<br />
&gt; <br />
&gt; @gmf.node(label=&quot;name&quot;,label.placement=&quot;external&quot;,label.icon= &quot;false&quot;)<br />
&gt; abstract interface Node {<br />
&gt;  id attr String&#91;1&#93; name;<br />
&gt;  attr String businessDescription;<br />
&gt;  attr Date date;<br />
&gt;  attr Date dateLastModified;<br />
&gt;  attr String description;<br />
&gt;  attr DataType dataType;<br />
&gt;  val Arc&#91;*&#93;#From arcs;<br />
&gt; }<br />
&gt; <br />
&gt; datatype Date : java.util.Date;<br />
&gt; <br />
&gt; enum Type {<br />
&gt;  CONFORMED = 0;<br />
&gt;  NOT_CONFORMED = 1;<br />
&gt;  DEGENERATED = 2;<br />
&gt; }<br />
&gt; <br />
&gt; enum DataType {<br />
&gt;  CHAR = 0;<br />
&gt;  VARCHAR = 1;<br />
&gt;  TEXT = 2;<br />
&gt;  INTEGER = 3;<br />
&gt;  FLOAT = 4;<br />
&gt; }<br />
&gt; <br />
&gt; @gmf.node(label=&quot;name&quot;,label.placement=&quot;internal&quot;,figure=<br />
&gt; &quot;rounded&quot;,size=&quot;60,90&quot;,tool.small.path=&quot;icons\obj16\ActivityPartition.gif<br />
&gt; &quot;,tool.small.bundle=&quot;org.eclipse.uml2.diagram.common&quot;)<br />
&gt; class FactSchema extends Node {<br />
&gt;  @gmf.compartment(layout=&quot;list&quot;)<br />
&gt;  val Measure&#91;+&#93; measures;<br />
&gt; }<br />
&gt; <br />
&gt; @gmf.node(label=&quot;name&quot;,label.icon=&quot;false&quot;,label.placement=<br />
&gt; &quot;internal&quot;,figure=&quot;rectangle&quot;,size=&quot;60,25&quot;,tool.small.path=<br />
&gt; &quot;icons\obj16\ActivityParameterNode.gif&quot;,tool.small.bundle=&quot;org.eclipse.uml2.diagram.common<br />
&gt; &quot;)<br />
&gt; class Measure {<br />
&gt;  id attr String&#91;1&#93; name;<br />
&gt;  attr String businessDescription;<br />
&gt;  attr Date date;<br />
&gt;  attr Date dateLastModified;<br />
&gt;  attr String description;<br />
&gt;  attr boolean ~derived;<br />
&gt;  attr String formula = &quot;&quot;;<br />
&gt; }<br />
&gt; <br />
&gt; <br />
&gt; and thus I added a validation plugin with an *.evl file with several<br />
&gt; rules, that are respected when I invoke &quot;Validate&quot; from the menu of my<br />
&gt; application. But the implicit constraint derived from EMF model (i.e.:<br />
&gt; at least one Dimensione per Hierarchy, or every Object must have a name,<br />
&gt; ....) are not validated.<br />
&gt; <br />
&gt; Instead, the NullPointerException was resolved, the cause was an error<br />
&gt; in the *.evl file synthax.<br />
<br />
<br />
-- <br />
Spread the word: <a href="http://www.eclipse.org/gmt/epsilon/spreadtheword" target="_blank">http://www.eclipse.org/gmt/epsilon/spreadtheword</a><br />
Follow Epsilon on Twitter: <a href="http://twitter.com/epsilonews" target="_blank">http://twitter.com/epsilonews</a>]]></description>
	<dc:subject></dc:subject>
	<dc:creator>Dimitrios Kolovos</dc:creator>
	<dc:date>2009-11-19T10:52:43-00:00</dc:date>
</item>

<item rdf:about="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498924&amp;th=157925#msg_498924">
	<title>Re: EVL validation is working, EMF is not</title>
	<link>http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498924&amp;th=157925#msg_498924</link>
	<description><![CDATA[Sure, this is my environment:<br />
<br />
- Eclipse Modeling Galileo SR1 Incubation<br />
- Epsilon (by stable update site)<br />
- EMFatic<br />
<br />
I developed a new GMF Project from an *.emf file: <br />
<br />
<i>@namespace(uri=&quot;hierarchy&quot;, prefix=&quot;hierarchy&quot;)<br />
@gmf(foo=&quot;bar&quot;)<br />
package hierarchy;<br />
<br />
@gmf.link(source=&quot;From&quot;,target=&quot;To&quot;,style=&quot;solid&quot;,width= &quot;1&quot;,label.icon=&quot;false&quot;,tool.small.path=&quot;icons\obj16\Association.gif &quot;,tool.small.bundle=&quot;org.eclipse.uml2.diagram.common&quot;)<br />
class Arc {<br />
  ref Node&#91;1&#93;#arcs From;<br />
  ref Node&#91;1&#93; To;<br />
  id attr String name;<br />
  attr boolean&#91;1&#93; multiple = false;<br />
  attr boolean&#91;1&#93; optional = false;<br />
}<br />
<br />
@gmf.node(figure=&quot;ellipse&quot;,size=&quot;15,15&quot;,color=&quot;0,0,0&quot;,tool.small.path= &quot;icons\obj16\ActivityFinalNode.gif&quot;,tool.small.bundle=&quot;org.eclipse.uml2.diagram.common &quot;)<br />
class Dimension extends Node {<br />
}<br />
<br />
@gmf.node(figure=&quot;ellipse&quot;,size=&quot;10,10&quot;,tool.small.path= &quot;icons\obj16\Artifact.gif&quot;,tool.small.bundle=&quot;org.eclipse.uml2.diagram.common &quot;)<br />
class Attribute extends Node {<br />
  attr boolean&#91;1&#93; crossDimensional = false;<br />
  attr boolean&#91;1&#93; descriptive = false;<br />
  attr boolean&#91;1&#93; optional = false;<br />
  attr boolean&#91;1&#93; convergence = false;<br />
  attr boolean&#91;1&#93; shared = false;<br />
  attr boolean&#91;1&#93; recursive = false;<br />
}<br />
<br />
@gmf.diagram(onefile=&quot;true&quot;,model.extension=&quot;hrc&quot;,diagram.extension= &quot;hrc&quot;)<br />
class Hierarchy {<br />
  id attr String&#91;1&#93; name;<br />
  val Dimension&#91;1&#93; dimension;<br />
  val Attribute&#91;*&#93; attributes;<br />
  attr String description;<br />
  attr String businessDescription = &quot;&quot;;<br />
  attr Date dateLastModified;<br />
  attr Date date;<br />
  attr Type type = &quot;NOT_CONFORMED&quot;;<br />
  val FactSchema factSchema;<br />
}<br />
<br />
@gmf.node(label=&quot;name&quot;,label.placement=&quot;external&quot;,label.icon= &quot;false&quot;)<br />
abstract interface Node {<br />
  id attr String&#91;1&#93; name;<br />
  attr String businessDescription;<br />
  attr Date date;<br />
  attr Date dateLastModified;<br />
  attr String description;<br />
  attr DataType dataType;<br />
  val Arc&#91;*&#93;#From arcs;<br />
}<br />
<br />
datatype Date : java.util.Date;<br />
<br />
enum Type {<br />
  CONFORMED = 0;<br />
  NOT_CONFORMED = 1;<br />
  DEGENERATED = 2;<br />
}<br />
<br />
enum DataType {<br />
  CHAR = 0;<br />
  VARCHAR = 1;<br />
  TEXT = 2;<br />
  INTEGER = 3;<br />
  FLOAT = 4;<br />
}<br />
<br />
@gmf.node(label=&quot;name&quot;,label.placement=&quot;internal&quot;,figure= &quot;rounded&quot;,size=&quot;60,90&quot;,tool.small.path=&quot;icons\obj16\ActivityPartition.gif &quot;,tool.small.bundle=&quot;org.eclipse.uml2.diagram.common&quot;)<br />
class FactSchema extends Node {<br />
  @gmf.compartment(layout=&quot;list&quot;)<br />
  val Measure&#91;+&#93; measures;<br />
}<br />
<br />
@gmf.node(label=&quot;name&quot;,label.icon=&quot;false&quot;,label.placement= &quot;internal&quot;,figure=&quot;rectangle&quot;,size=&quot;60,25&quot;,tool.small.path= &quot;icons\obj16\ActivityParameterNode.gif&quot;,tool.small.bundle=&quot;org.eclipse.uml2.diagram.common &quot;)<br />
class Measure {<br />
  id attr String&#91;1&#93; name;<br />
  attr String businessDescription;<br />
  attr Date date;<br />
  attr Date dateLastModified;<br />
  attr String description;<br />
  attr boolean ~derived;<br />
  attr String formula = &quot;&quot;;<br />
}<br />
</i><br />
<br />
and thus I added a validation plugin with an *.evl file with several rules, that are respected when I invoke &quot;Validate&quot; from the menu of my application. But the implicit constraint derived from EMF model (i.e.: at least one Dimensione per Hierarchy, or every Object must have a name, ....) are not validated.<br />
<br />
Instead, the NullPointerException was resolved, the cause was an error in the *.evl file synthax.]]></description>
	<dc:subject></dc:subject>
	<dc:creator>giovanni </dc:creator>
	<dc:date>2009-11-19T08:42:19-00:00</dc:date>
</item>

<item rdf:about="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498733&amp;th=157988#msg_498733">
	<title>Re: [EuGENia]</title>
	<link>http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498733&amp;th=157988#msg_498733</link>
	<description><![CDATA[<b>Originally posted by:</b> arendt.mathematik.uni-marburg.de<br />
<br />
Hi Dimitris,<br />
<br />
Thanks a lot, it works!<br />
I specified in the model:<br />
<br />
@gmf.link(source=&quot;source&quot;, target=&quot;target&quot;)<br />
class Association {<br />
   val Property&#91;2&#93; ownedEnds;<br />
   derived ref Classifier source;<br />
   derived ref Classifier target;<br />
}<br />
<br />
.... and implemented in AssociationImpl.java:<br />
<br />
public Classifier getSource(){<br />
   return getOwnedEnd().get(0).getType();<br />
}<br />
<br />
public Classifier getTarget(){<br />
   return getOwnedEnd().get(1).getType();<br />
}<br />
<br />
Best regards,<br />
Thorsten<br />
<br />
<br />
<br />
Dimitris Kolovos schrieb:<br />
&gt; Hi Thorsten,<br />
&gt; <br />
&gt; It seems that setting both the source and target to &quot;ownedEnds&quot; doesn't<br />
&gt; work. I'd recommend trying to create two derived features and setting<br />
&gt; them as the source and target of the link respectively:<br />
&gt; <br />
&gt; @gmf.link(source=&quot;source&quot;, target=&quot;target&quot;, label=&quot;name&quot;)<br />
&gt; class Association {<br />
&gt;    ref Property&#91;2&#93; ownedEnds;<br />
&gt;    derived ref Property source;<br />
&gt;    derived ref Property target;<br />
&gt; }<br />
&gt; <br />
&gt; You'll then need to implement the logic in which the features are<br />
&gt; derived from ownedEnds by customizing the generated EMF code - don't<br />
&gt; forget to set @generated NOT in the methods you change. I must admit I<br />
&gt; haven't tried it but it should work. Please let me know if it doesn't<br />
&gt; and I'll have a closer look.<br />
&gt; <br />
&gt; Cheers,<br />
&gt; Dimitris<br />
&gt; <br />
&gt; Thorsten Arendt wrote:<br />
&gt;&gt; Hi,<br />
&gt;&gt;<br />
&gt;&gt; Using EuGENia two questions arose when specifying source and target of a<br />
&gt;&gt; link:<br />
&gt;&gt; 1. How can I specify elements in an EList?<br />
&gt;&gt; 2. How can I navigate to other related EClasses?<br />
&gt;&gt;<br />
&gt;&gt; Consider the following example:<br />
&gt;&gt;<br />
&gt;&gt; class Classifier{}<br />
&gt;&gt;<br />
&gt;&gt; @gmf.node<br />
&gt;&gt; class Class extends Classifier{}<br />
&gt;&gt;<br />
&gt;&gt; class Property extends Classifier{<br />
&gt;&gt;    ref Classifier type;<br />
&gt;&gt; }<br />
&gt;&gt;<br />
&gt;&gt; If I want to specify Associations like in UML, I think of this solution:<br />
&gt;&gt;<br />
&gt;&gt; @gmf.link(source=X, target=Y)<br />
&gt;&gt; class Association {<br />
&gt;&gt;    val Property&#91;2&#93; ownedEnds;<br />
&gt;&gt; }<br />
&gt;&gt;<br />
&gt;&gt; where X had to be set to &quot;ownedEnds.get(0).getType()&quot; or something like<br />
&gt;&gt; this. Who can help to specify X and Y???<br />
&gt;&gt;<br />
&gt;&gt; Regards,<br />
&gt;&gt; Thorsten<br />
&gt; <br />
&gt;]]></description>
	<dc:subject></dc:subject>
	<dc:creator></dc:creator>
	<dc:date>2009-11-18T12:54:58-00:00</dc:date>
</item>

<item rdf:about="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498725&amp;th=157988#msg_498725">
	<title>Re: [EuGENia]</title>
	<link>http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498725&amp;th=157988#msg_498725</link>
	<description><![CDATA[Hi Thorsten,<br />
<br />
It seems that setting both the source and target to &quot;ownedEnds&quot; doesn't<br />
work. I'd recommend trying to create two derived features and setting<br />
them as the source and target of the link respectively:<br />
<br />
@gmf.link(source=&quot;source&quot;, target=&quot;target&quot;, label=&quot;name&quot;)<br />
class Association {<br />
   ref Property&#91;2&#93; ownedEnds;<br />
   derived ref Property source;<br />
   derived ref Property target;<br />
}<br />
<br />
You'll then need to implement the logic in which the features are<br />
derived from ownedEnds by customizing the generated EMF code - don't<br />
forget to set @generated NOT in the methods you change. I must admit I<br />
haven't tried it but it should work. Please let me know if it doesn't<br />
and I'll have a closer look.<br />
<br />
Cheers,<br />
Dimitris<br />
<br />
Thorsten Arendt wrote:<br />
&gt; Hi,<br />
&gt; <br />
&gt; Using EuGENia two questions arose when specifying source and target of a<br />
&gt; link:<br />
&gt; 1. How can I specify elements in an EList?<br />
&gt; 2. How can I navigate to other related EClasses?<br />
&gt; <br />
&gt; Consider the following example:<br />
&gt; <br />
&gt; class Classifier{}<br />
&gt; <br />
&gt; @gmf.node<br />
&gt; class Class extends Classifier{}<br />
&gt; <br />
&gt; class Property extends Classifier{<br />
&gt;    ref Classifier type;<br />
&gt; }<br />
&gt; <br />
&gt; If I want to specify Associations like in UML, I think of this solution:<br />
&gt; <br />
&gt; @gmf.link(source=X, target=Y)<br />
&gt; class Association {<br />
&gt;    val Property&#91;2&#93; ownedEnds;<br />
&gt; }<br />
&gt; <br />
&gt; where X had to be set to &quot;ownedEnds.get(0).getType()&quot; or something like<br />
&gt; this. Who can help to specify X and Y???<br />
&gt; <br />
&gt; Regards,<br />
&gt; Thorsten<br />
<br />
<br />
-- <br />
Spread the word: <a href="http://www.eclipse.org/gmt/epsilon/spreadtheword" target="_blank">http://www.eclipse.org/gmt/epsilon/spreadtheword</a><br />
Follow Epsilon on Twitter: <a href="http://twitter.com/epsilonews" target="_blank">http://twitter.com/epsilonews</a>]]></description>
	<dc:subject></dc:subject>
	<dc:creator>Dimitrios Kolovos</dc:creator>
	<dc:date>2009-11-18T12:14:01-00:00</dc:date>
</item>

<item rdf:about="http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498724&amp;th=157988#msg_498724">
	<title>[EuGENia]</title>
	<link>http://www.eclipse.org/forums/index.php?t=rview&amp;goto=498724&amp;th=157988#msg_498724</link>
	<description><![CDATA[<b>Originally posted by:</b> arendt.mathematik.uni-marburg.de<br />
<br />
Hi,<br />
<br />
Using EuGENia two questions arose when specifying source and target of a <br />
link:<br />
1. How can I specify elements in an EList?<br />
2. How can I navigate to other related EClasses?<br />
<br />
Consider the following example:<br />
<br />
class Classifier{}<br />
<br />
@gmf.node<br />
class Class extends Classifier{}<br />
<br />
class Property extends Classifier{<br />
    ref Classifier type;<br />
}<br />
<br />
If I want to specify Associations like in UML, I think of this solution:<br />
<br />
@gmf.link(source=X, target=Y)<br />
class Association {<br />
    val Property&#91;2&#93; ownedEnds;<br />
}<br />
<br />
where X had to be set to &quot;ownedEnds.get(0).getType()&quot; or something like <br />
this. Who can help to specify X and Y???<br />
<br />
Regards,<br />
Thorsten]]></description>
	<dc:subject></dc:subject>
	<dc:creator></dc:creator>
	<dc:date>2009-11-18T11:55:08-00:00</dc:date>
</item>
</rdf:RDF>