FigureCanvas _figureCanvas = new FigureCanvas(parent, SWT.DOUBLE_BUFFERED);
this.canvas = _figureCanvas;
FreeformViewport _freeformViewport = new FreeformViewport();
this.canvas.setViewport(_freeformViewport);
this.canvas.setBackground(ColorConstants.white);
final FreeformLayeredPane pane = new FreeformLayeredPane();
Font _font = parent.getFont();
pane.setFont(_font);
this.canvas.setContents(pane);
pane.add(this.rootFigure, "primary");
this.reset();
IWorkbenchPartSite _site = this.getSite();
IWorkbenchPage _page = _site.getPage();
_page.addPartListener(this.listener);
IWorkbenchPartSite _site_1 = this.getSite();