Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Canvas and Top node customization
Canvas and Top node customization [message #553355] Tue, 17 August 2010 05:09 Go to next message
elefat is currently offline elefat
Messages: 8
Registered: August 2010
Junior Member
I would like to set the canvas layout as flowlayout, vertical. My top node must be as wide as the canvas and resize each time the canvas does. In a picture, the graphical editor should be like this:
------------------------------------------------------------ --------------------
topnode1name
childnode11
childnode12
------------------------------------------------------------ --------------------
topnode2name
childnode21

------------------------------------------------------------ ---------------------

I can't find a way out of this, any help will be appreciated!
Re: Canvas and Top node customization [message #553896 is a reply to message #553355] Thu, 19 August 2010 07:16 Go to previous messageGo to next message
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 558
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

you can set different layout in .gmfgen->gen editor->gen diagram->figure viewmap

Regards,


Aurélien Pupier - BonitaSoft S.A.
My blog
My company Eclipse-related blog
Re: Canvas and Top node customization [message #987493 is a reply to message #553896] Mon, 26 November 2012 16:02 Go to previous message
Spiros S is currently offline Spiros S
Messages: 7
Registered: November 2012
Junior Member
I came upon this issue but whatever else I try to put in the options you specified then my top nodes are stacked on-top of each other and I cannot move them.
What is the right option there to make them align vertical?
The are 2 options to be filled:
-Figure Qualified Class Name: org.eclipse.draw2d.FreeformLayout
-Layout Type: UNKNOWN

Thank you in advance

[edit]
I also found this on my canvas editpart, but no matter what I put on the layout manager nothing ever changes
protected NodeFigure createNodeFigure() {
	NodeFigure figure = createNodePlate();
	figure.setLayoutManager(new StackLayout());
	IFigure shape = createNodeShape();
	figure.add(shape);
	contentPane = setupContentPane(shape);
	return figure;
}

[Updated on: Mon, 26 November 2012 16:15]

Report message to a moderator

Previous Topic:Generator overwriting extension point definitions
Next Topic:On Save Action
Goto Forum:
  


Current Time: Wed Aug 20 14:34:28 EDT 2014

Powered by FUDForum. Page generated in 0.02311 seconds