Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » combining SWT widgets and Draw2d Figures
combining SWT widgets and Draw2d Figures [message #228603] Sat, 30 December 2006 14:58
Eclipse User
Originally posted by: bruce.trask.prismtech.com

Hello,

Are there any particular strategies for effectively combining SWT widgets
and Draw2d Figures in the context of a GEF editor structure
(model-editpart-figure mvc)? For example, let's say you want to have an SWT
Table right next to a custom Draw2d figure in your GEF Editor and you want
this table "associated" with the Figure (ideally "part" of that figure).
One way is to do this is inside the Draw2d figure's createFigure member
reach up and grab the graphicalViewer and get his control which is a
FigureCanvas and then pass that to the constructor to the SWT table. As far
as XY movement, then the table can be moved in synch with the draw2d figure
in that figure's editpart's refreshVisuals method. This approach, however,
seems a bit hokey in that rendering SWT widgets on the GraphicalViewers
FigureCanvas directly from an edit part seems to bypass any layouts
currently in force in the edit part's parent child chain.

Any experience/strategies combining SWT widgets with Draw2d figures in the
context of a GEF editor app?

Thanks in advance,
Bruce
Previous Topic:zooming layer problem
Next Topic:Model change problem
Goto Forum:
  


Current Time: Sat Oct 25 23:44:22 GMT 2014

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

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