Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351571 - gmf.compartment.layout = “rowlist” instead of "list" and "free"
Summary: gmf.compartment.layout = “rowlist” instead of "list" and "free"
Status: CLOSED INVALID
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Dimitris Kolovos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-08 09:47 EDT by Curious Xtext Novice CLA
Modified: 2012-06-26 17:45 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Curious Xtext Novice CLA 2011-07-08 09:47:29 EDT
Build Identifier: 20110615-0604

I would like to know how to set up or customize

gmf.compartment.layout = “rowlist”

“free”

“list” nodes in vertical order V
(1)
(2)
(3)

1.- Request
“rowlist” nodes in horizontal order ESSENTIAL!!! order >
(1)(2)(3)

2.- Filling first columns (proposal)
2.a.- “column.down-row.right” order v >
(1)(4)(7)
(2)(5)(-)
(3)(6)(-)
2.b.- “column.up-row.right” order ^ >
2.c.- “column.down-row.left” order V <
2.d.- "column.up-row.left" order ^ v
(1)(2)(3)
(4)(5)(6)
(7)(-)(-)
3.b.- “row.left-column.down” order ^
3.d.- “row.left-column.up” order < ^
(-)(-)(7)
(6)(5)(4)
(3)(2)(1)

4.- Random access (proposal)
matrix
(5)(2)(7)
(4)(-)(6)
(-)(1)(3)

I would need implement an ordered list of rows of ordered nodes.
How could I do? If someone could help me, I would thank it.

Thanks a lot.

Reproducible: Always

Steps to Reproduce:
I was thinking in this metamodel ... 
pay attention to @gmf.compartment(... layout="rowlist") in "LineElement[*] elements;"

@namespace(uri="matrix", prefix="matrix")
@gmf(foo="bar")
package org.mddlab.ox.view;

@gmf.diagram(foo="bar")
class View {
	@gmf.compartment(foo="bar", layout="list")
	val  Line[*] lines;
}

@gmf.node(label="yOrder,titleLine", label.pattern="line({0}) {1}")
class Line {
        attr Integer        yOrder;
        attr String         titleLine; 

        @gmf.compartment(foo="bar", layout="rowlist")
	val  LineElement[*] elements;
}

@gmf.node(label="xOrder,nameReference", label.pattern="order({0}) {1}")
class LineElement {
        attr Integer   xOrder;
	attr String    nameReference;
}


But in order to solve a general problem, we can need also:
@gmf.compartment(layout=...)

Implemented
“free”
“list”    (== column.down)

Request (essential)
“rowlist” nodes in horizontal order ESSENTIAL!!! order >
          (== row.right)

Proposal (behauvior similar to a <table><tr><td>)

“column.down”  order v  (== "list")
“column.up”    order ^

“row.right”    order >  (== "rowlist")
“row.left”     order <

“column.down-row.right”  order v >
“column.up-row.right”    order ^ >
“column.down-row.left”   order v <
"column.up-row.left"     order ^ <

“row.right-column.down”  order > v
“row.right-column.up”    order > ^
“row.left-column.down”   order < v
“row.left-column.up”     order < ^

"matrix"                 random access (as default value “row.right-column.down” )

Thanks
Comment 1 Dimitris Kolovos CLA 2012-06-26 17:45:32 EDT
Thanks for reporting this and apologies for the very late response. The two layouts supported by Eugenia (free, list) are the only ones supported in the .gmfgen model. Supporting any additional layouts would require modifying the generated code - which is outside Eugenia's scope - so we'll need to close this as invalid.