Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EuGENia] Compartment gets list layout for not annotated elements.
[EuGENia] Compartment gets list layout for not annotated elements. [message #586825] Thu, 25 February 2010 22:28
Piotr Jaworowski is currently offline Piotr JaworowskiFriend
Messages: 4
Registered: February 2010
Junior Member
Hi,

I've noticed strange eugenia behaviour for compartment element. If you'll create a diagram from below code, SomeProcess figure will have list Layout in its body, is it correct behaviour? the problem is not solved even if I'll add @compartment(layout="free") for that element.

@namespace(uri="http://a.b.c/x/y/Z", prefix="p")
package process;

@gmf.node(label="name")
abstract interface Nameable {
attr String name;
}

@gmf.diagram(foo="bar")
class ProccessesHolder {
val SomeProcess[*] processes;
}

class SomeProcess extends Nameable {
@gmf.compartment(foo="bar")
val Stepable[*] participants;
}

abstract class Stepable extends Nameable {
@gmf.link(target.decoration="arrow", style="dash")
val Reference target;
}

class StepParticipant extends Stepable {
attr String additionalInfo;
}

class Step extends Stepable {
}

@gmf.link(source="source", target="target", style="dot", width="2", label="stepValue")
class Reference {
attr String stepValue;
ref Stepable source;
ref Stepable target;
}
I was playing with the code and all started to work correctly with following code:

@namespace(uri="http://a.b.c/x/y/Z", prefix="p")
package process;

class Nameable {
attr String name;
}

@gmf.diagram(foo="bar")
class ProccessesHolder {
val SomeProcess[*] processes;
}

@gmf.node(label="name")
class SomeProcess extends Nameable {
@gmf.compartment(foo="bar")
val Stepable[*] participants;
}

class Stepable extends Nameable {
@gmf.link(target.decoration="arrow", style="dash")
val Reference target;
}

@gmf.node(label="name")
class StepParticipant extends Stepable {
attr String additionalInfo;
}

@gmf.node(label="name")
class Step extends Stepable {
}

@gmf.link(source="source", target="target", style="dot", width="2", label="stepValue")
class Reference {
attr String stepValue;
ref Stepable source;
ref Stepable target;
}

I've looked throught the bugzilla but i didn't find and bug for that.

Cheers,
Piotr
Previous Topic:GMF-Epsilon transformation
Next Topic:Mixing Other Frameworks
Goto Forum:
  


Current Time: Thu Apr 25 17:40:11 GMT 2024

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

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

Back to the top