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
elefat is currently offline elefatFriend
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:
------------------------------------------------------------ --------------------
------------------------------------------------------------ --------------------

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

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
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 636
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member


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


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Canvas and Top node customization [message #987493 is a reply to message #553896] Mon, 26 November 2012 21:02 Go to previous message
Spiros S is currently offline Spiros SFriend
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

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();
	contentPane = setupContentPane(shape);
	return figure;

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

Report message to a moderator

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

Current Time: Mon Jun 18 12:01:15 GMT 2018

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

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

Back to the top