Skip to main content


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 IsakovFriend
Messages: 118
Registered: May 2012
Senior 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 KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
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 IsakovFriend
Messages: 118
Registered: May 2012
Senior 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 KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
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: Thu Apr 25 18:59:34 GMT 2024

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

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

Back to the top