Composite composite = new Composite(tabFolder, SWT.NONE);
composite.setLayout(new FillLayout());
tab.setControl(composite);
ScrollingGraphicalViewer viewer = new ScrollingGraphicalViewer();
viewer.setEditDomain(new EditDomain());
viewer.createControl(composite);
viewer.getControl().setBackground(ColorConstants.white);
RootEditPart rootEditPart = new ChsScalableRootEditPart();
viewer.setRootEditPart(rootEditPart);
viewer.setEditPartFactory(new ChsEditPartFactory());
((FigureCanvas)viewer.getControl()).setScrollBarVisibility(FigureCanvas.ALWAYS);
// DropTargetListener
viewer.addDropTargetListener(new ChsFileDropTargetListener(viewer, this));
// DragSourceListener
viewer.addDragSourceListener(new ChsFileDragSourceListener(viewer));
tab.setText(name);
viewer.setContents(root);
viewer.getControl().addMouseListener(this);
viewer.setKeyHandler(keyHandler);
this.tabToViewerMap.put(tab, viewer);
this.setSelectedTab(tab);
this.openTabNames.add(name);