|combining SWT widgets and Draw2d Figures [message #228603]
||Sat, 30 December 2006 14:58
Originally posted by: bruce.trask.prismtech.com|
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,
Powered by FUDForum
. Page generated in 0.02146 seconds