Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Graphical Editor: Modify automatic layout
Graphical Editor: Modify automatic layout [message #1102218] Thu, 05 September 2013 14:25 Go to next message
Studs Terkel is currently offline Studs TerkelFriend
Messages: 27
Registered: July 2011
Junior Member
Hello guys,

I create a new _diagram by passing a model instance:

org.eclipse.gmf.runtime.notation.Diagram diagram = null;
			try {
				diagram = ViewService.createDiagram(modelInstance,

				TransactionalEditingDomain editingDomain = GMFEditingDomainFactory.INSTANCE
				Resource diagramResource = editingDomain
										+ "/modelInstance.mymodel_diagram"));

			} catch (IOException e) {

Unfortunately, when I open this _diagram with the related Graphical Editor, the contained elements are layouted from the bottom to the top (it is an activity diagram, so the initial node is on the bottom of the diagram). What I want is that the elements are layouted from left to the right.

My question now: Is there a possibility to modify the auto/default layout behavior?
Re: Graphical Editor: Modify automatic layout [message #1110757 is a reply to message #1102218] Tue, 17 September 2013 09:42 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member

maybe this can help you


[Updated on: Tue, 17 September 2013 11:19]

Report message to a moderator

Previous Topic:create diagram from .ecore file by GMF
Next Topic:[ZEST] unhighlight the item when selected again
Goto Forum:

Current Time: Thu Feb 25 02:08:39 GMT 2021

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

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

Back to the top