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
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:many editpolicies with the same role for the same editpart
Next Topic:FlowLayout & resizing figures?
Goto Forum:

Current Time: Thu Apr 19 15:46:25 GMT 2018

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

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