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] Tue, 21 August 2012 20:14 Go to next message
Dong Wang is currently offline Dong Wang
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 03:58 Go to previous message
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 558
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 - BonitaSoft S.A.
My blog
My company Eclipse-related blog
Previous Topic:Problem with "Feature Label Mapping false" in gmfmap
Next Topic:Adding Search capability to the palette
Goto Forum:
  


Current Time: Wed Jul 30 11:16:56 EDT 2014

Powered by FUDForum. Page generated in 0.02052 seconds