Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Fixed Size Editor
Fixed Size Editor [message #529081] Thu, 22 April 2010 16:20
Urs Breu is currently offline Urs Breu
Messages: 12
Registered: October 2009
Location: Switzerland
Junior Member
Hi,
I want to create an editor with a fixed size (determined by a background image).
What is the best way to approach this?

I have tried to achieve this behaviour by customizing the XYLayoutEditPolicy - specifically by overriding getConstraintFor(...) in order to restrict the possible drag/drop locations of edit parts. But I haven't been able to also change drop feedback, so the solution isn't that pleasing.

I could also try not use a ScrollingGraphicalViewer, but on the other hand I might still want to be able to scroll if the image is large. I merely want to restrict the editable area of the editor.

Any further ideas/pointers?
Previous Topic:select an editpart from the outline?
Next Topic:ConnectionAnchor location
Goto Forum:
  


Current Time: Wed Aug 27 11:07:30 EDT 2014

Powered by FUDForum. Page generated in 0.01767 seconds