Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Wed, 22 August 2012 00:14 Go to next message
Dong Wang is currently offline Dong WangFriend
Messages: 1
Registered: August 2012
Junior Member
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 07:58 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

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,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:Problem with "Feature Label Mapping false" in gmfmap
Next Topic:Adding Search capability to the palette
Goto Forum:
  


Current Time: Wed Feb 05 13:54:31 GMT 2025

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

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

Back to the top