use of org.eclipse.gef.editparts.FreeformGraphicalRootEditPart in project dbeaver by serge-rider.
the class LockGraphicalView method createPartControl.
@Override
public void createPartControl(Composite parent) {
setEditDomain(new DefaultEditDomain(null));
setGraphicalViewer(new ScrollingGraphicalViewer());
getGraphicalViewer().createControl(parent);
getGraphicalViewer().setRootEditPart(new FreeformGraphicalRootEditPart());
getGraphicalViewer().setEditPartFactory(new LockGraphEditPartFactory());
getGraphicalViewer().setContextMenu(new ContextMenuProvider(graphicalViewer) {
@Override
public void buildContextMenu(IMenuManager menu) {
menu.add(viewer.getKillAction());
}
});
}
Aggregations