Author: dgolovin
Date: 2012-08-08 19:58:46 -0400 (Wed, 08 Aug 2012)
New Revision: 42937
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/diagram/editors/DiagramContentOutlinePage.java
Log:
fix wromg menu parent error in tests
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/diagram/editors/DiagramContentOutlinePage.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/diagram/editors/DiagramContentOutlinePage.java 2012-08-08
19:33:26 UTC (rev 42936)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/diagram/editors/DiagramContentOutlinePage.java 2012-08-08
23:58:46 UTC (rev 42937)
@@ -50,6 +50,7 @@
import
org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleShapeVisibleStateAction;
import org.jboss.tools.hibernate.ui.diagram.editors.model.OrmDiagram;
import org.jboss.tools.hibernate.ui.diagram.editors.parts.TreePartFactory;
+import org.jboss.tools.hibernate.ui.diagram.editors.popup.PopupMenuProvider;
/**
*
@@ -178,8 +179,7 @@
protected void configureOutlineViewer() {
getViewer().setEditDomain(editor.getDefaultEditDomain());
getViewer().setEditPartFactory(new TreePartFactory());
- MenuManager provider = editor.getContextMenu();
- //MenuManager provider = new PopupMenuProvider(getViewer(), getActionRegistry());
+ MenuManager provider = new PopupMenuProvider(getViewer(), getActionRegistry());
//getViewer().setContextMenu(provider);
getViewer().setContextMenu(provider);
getSite().registerContextMenu(
Show replies by date