Skip to main content



      Home
Home » Eclipse Projects » GEF » quick start on implementing own layout
quick start on implementing own layout [message #48279] Fri, 06 December 2002 08:01 Go to next message
Eclipse UserFriend
Hello,

I got my model displayed, which all elements placed on each other (all
loaction = (0,0)). My target is to layout my elements on the top edit
part figure, initially as well at user request ("do layout"-button
e.g.). My question is not about layout or routing algorithm but how to
integrate them in GEF.

As far as I understand GEF there should be a layout policy implemented
for the top level edit part under role LAYOUT_ROLE, but which policy and
to and where to implement what hooks? I don't want the algorithm to be
executed evertime an element is added, only initially and on user demand.

At the moment I set the sub elements location when they are created
(ElementEditPart.createFigure()), I want to put this responsibility onto
a layout object.

Thanks,
Chris
Re: quick start on implementing own layout [message #48310 is a reply to message #48279] Fri, 06 December 2002 08:07 Go to previous message
Eclipse UserFriend
....
I figured out my task more clearly:
_After_ all the elements are put on the top level I want to layout them.
I could not find a hook for that yet.

Chris
Previous Topic:Using SWT controls as Figure?
Next Topic:Naive question: can I have both a GEF editor and a property editor on the same model?
Goto Forum:
  


Current Time: Wed Jul 16 02:00:23 EDT 2025

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

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

Back to the top