Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » GridLayout problem(GridLayout problem)
GridLayout problem [message #1061534] Sun, 02 June 2013 13:50 Go to next message
Arseniy Isakov is currently offline Arseniy Isakov
Messages: 33
Registered: May 2012
Member
Hello

I have created .emf model description and Ecore2GMF file.

@namespace(uri="form", prefix="form")
@gmf
package form;

@gmf.diagram
class Form {
@gmf.compartment
val View[1] view;
}

class UIElement{
attr String cssStyle;
attr String cssClass;
}

@gmf.node(label="name")
class View{
attr String name;
@gmf.compartment
val Window[*] windows;
@gmf.compartment
val Canvas[*] canvases;
}

@gmf.node(label="name")
class Window extends UIElement{
attr String name;
}
@gmf.node(label="name")
class Canvas extends UIElement{
attr String name;
}

Ecore2GMF

var shape = findShape('ViewWindowsCompartmentFigure');
shape.layout = new GmfGraph!GridLayout;


operation findShape(name : String) {

return GmfGraph!Shape.all.selectOne(s|s.name = name);
}


but after generation GridLayout is not applied. You can see a screen shorts in attachment

Thanks
Arseniy Isakov




Re: GridLayout problem [message #1061536 is a reply to message #1061534] Sun, 02 June 2013 14:11 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 886
Registered: July 2009
Senior Member
Hi Arseniy,

Does the created GridLayout appear in your .gmfgraph model?

Cheers,
Dimitris
Re: GridLayout problem [message #1061537 is a reply to message #1061536] Sun, 02 June 2013 14:13 Go to previous messageGo to next message
Arseniy Isakov is currently offline Arseniy Isakov
Messages: 33
Registered: May 2012
Member
Yes
Re: GridLayout problem [message #1061538 is a reply to message #1061537] Sun, 02 June 2013 14:24 Go to previous message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 886
Registered: July 2009
Senior Member
Then I'm afraid it's a GMF problem (the generator may be ignoring the GridLayout element or you may need to add more information to it - e.g. set margins, number of columns etc.). If the latter doesn't help, I'd suggest posting a message to the GMF forum.

Cheers,
Dimitris
Previous Topic:EOL and Flock
Next Topic:ETL Transformation wipes out target model
Goto Forum:
  


Current Time: Fri Oct 24 12:22:10 GMT 2014

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

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