Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDisplay editparts on a ScrollingGraphicalViewer
https://www.eclipse.org/forums/index.php/mv/msg/80113/249050/#msg_249050
I'am new to GEF so maybe this is a stupid question... (please keep that in
mind)
I finally got my Model displayed on the Viewer - everything looks just
fine. BUT the Problem is that I use a Figure as parent of all my
EditParts(or Figures). And this "main"-Figure has a certain size but my
ScrollingGraphicalViewer has no certain size it can just expand. With this
main-Figure construct I just removed an important feature from GEF - so
obviously I'm missing here something. If I set the RootEditPart as parent
of my EditParts they won't be displayed...
I hope I explained it adequate - so If anybody knows whats going on -
please tell.
Thanks in advance!
Chris]]>Chris Turner2009-05-26T10:42:37-00:00Re: Display editparts on a ScrollingGraphicalViewer
https://www.eclipse.org/forums/index.php/mv/msg/80113/249054/#msg_249054
The solution is:
Instead of using a "main"-Figure use a FreeformLayer.
Something like that:
Figure f = new FreeformLayer();
f.setBorder(new MarginBorder(3));
f.setLayoutManager(new FreeformLayout());
return f;
(stolen from the shape example)
Btw. is it only me or is it really hard to get stated with GEF?!