Skip to main content


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 09:09 Go to next message
Eclipse UserFriend
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 11:16 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

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

Regards,
Re: Canvas and Top node customization [message #987493 is a reply to message #553896] Mon, 26 November 2012 21:02 Go to previous message
Eclipse UserFriend
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 21:15] by Moderator

Report message to a moderator

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


Current Time: Fri Feb 14 16:08:04 GMT 2025

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

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

Back to the top