@Override public Control construct(Composite parent) { Composite content = new Composite(parent, SWT.NONE); GridDataFactory.fillDefaults().grab(true, true).applyTo(content); Canvas cv = new Canvas(content, SWT.BORDER); GridDataFactory.fillDefaults().grab(true, false).hint(SWT.DEFAULT, 20).applyTo(cv); GridLayoutFactory.fillDefaults().applyTo(content); GraphicalViewer gv = new GraphicalViewerImpl() { @Override protected void createDefaultRoot() { setRootFigure(new CheckBox("Foo bar baz")); } }; gv.createControl(content); GridDataFactory.fillDefaults().grab(true, true).applyTo(gv.getControl()); GraphicalViewer gv2 = new ScrollingGraphicalViewer() { @Override protected void createDefaultRoot() { setRootFigure(new CheckBox("Foo2 bar2 baz2")); } }; gv2.createControl(content); GridDataFactory.fillDefaults().grab(true, true).applyTo(gv2.getControl()); return content; }