getGraphicalViewer().setEditPartFactory(new StatePartFactory());
getGraphicalViewer().setKeyHandler(
new GraphicalViewerKeyHandler(getGraphicalViewer())
.setParent(getCommonKeyHandler()));
ContextMenuProvider provider = new WebflowContextMenuProvider(
getGraphicalViewer(), getActionRegistry());
getGraphicalViewer().setContextMenu(provider);
getSite().registerContextMenu(
"org.springframework.ide.eclipse.webflow.ui.graph.contextmenu", //$NON-NLS-1$
provider, getGraphicalViewer());