getEditDomain().addViewer(getGraphicalViewer());
getGraphicalViewer().setRootEditPart(new ScalableFreeformRootEditPart() {
@Override
public DragTracker getDragTracker(Request req) {
MarqueeDragTracker tracker = (MarqueeDragTracker) super.getDragTracker(req);
tracker.setMarqueeBehavior(MarqueeSelectionTool.BEHAVIOR_NODES_AND_CONNECTIONS);
return tracker;
}
});
getGraphicalViewer().setEditPartFactory(new EditPartFactory() {
public EditPart createEditPart(EditPart context, Object object) {