Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Drag figures ONLY vertically(How to restrict figure to move up and down only)
Drag figures ONLY vertically [message #967217] Thu, 01 November 2012 15:35 Go to next message
Che Bumagat is currently offline Che BumagatFriend
Messages: 46
Registered: February 2012
Member
Hi GMF Experts,

I'm new to GMF, I just like to ask if there is a way that we can make GMF figures drag/move just up and down? How do I put a restriction for the figure to move vertically?

If ever, how complex would that be and what components should i look at to implement this?

Thanks!
Che
Re: Drag figures ONLY vertically [message #967228 is a reply to message #967217] Thu, 01 November 2012 15:44 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

we have done it in Bonita Open Solution Studio.
See http://www.bonitasoft.org/websvn/filedetails.php?repname=Bonita+Open+Solution&path=%2Fbonita-studio%2Ftags%2Fbonita-studio-5.8%2Fplugins%2Forg.bonitasoft.studio.diagram.custom%2Fsrc%2Forg%2Fbonitasoft%2Fstudio%2Fdiagram%2Fcustom%2Fparts%2FCustomPoolEditPart.java
and specifically getDragTracker method.

regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Drag figures ONLY vertically [message #967304 is a reply to message #967228] Thu, 01 November 2012 17:07 Go to previous message
Che Bumagat is currently offline Che BumagatFriend
Messages: 46
Registered: February 2012
Member
Thank you so much! That's exactly what I needed! Smile
Previous Topic:Internationalize : org.eclipse.gmf.runtime.diagram.ui.
Next Topic:Providing Fix Location to Figures (Layout)
Goto Forum:
  


Current Time: Thu Apr 25 02:06:24 GMT 2024

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

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

Back to the top