Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to make two choices for graph layout?(How to make two graph layout algorithms active together?)
How to make two choices for graph layout? [message #903092] Tue, 21 August 2012 20:14 Go to next message
Eclipse UserFriend
Hello everyone,

I want to make more than one layout algorithm, such as LeftRightProvider and TopDownProvider, actived during my chient running. Thereby users can choose one of the algorithms which is more suitable for their graph. There is only one button, Arrange all or Arrange sellection. How can I add another one?
The layoutEditParts(GraphicalEditPart containerEditPart, IAdaptable layoutHint) method in DefaultProvider class will receive a default layoutType stored in layoutHit. How can I setup another value to the layoutHint and let the DefaultProvider know.
Thank you for your answer.
Re: How to make two choices for graph layout? [message #903894 is a reply to message #903092] Mon, 27 August 2012 03:58 Go to previous message
Eclipse UserFriend
Hi,

Did you take a look to thi spage: http://wiki.eclipse.org/GMF_Tutorial_Part_3#Custom_Layout ?

You have an extension point to provide a new layout.

regards,
Previous Topic:Problem with "Feature Label Mapping false" in gmfmap
Next Topic:Adding Search capability to the palette
Goto Forum:
  


Current Time: Sun Jul 13 16:27:04 EDT 2025

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

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

Back to the top