Skip to main content


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 20:20
Urs Breu is currently offline Urs BreuFriend
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 Apr 24 17:21:43 GMT 2024

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

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

Back to the top