Author: dgeraskov
Date: 2008-01-18 06:36:35 -0500 (Fri, 18 Jan 2008)
New Revision: 5797
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/popup/PopupMenuProvider.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1649
"instance of" changed to getClass = Property.class
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/popup/PopupMenuProvider.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/popup/PopupMenuProvider.java 2008-01-18
11:36:30 UTC (rev 5796)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/popup/PopupMenuProvider.java 2008-01-18
11:36:35 UTC (rev 5797)
@@ -60,7 +60,7 @@
Shape shape = (Shape)obj;
Object first = shape.getOrmElement();
if (first instanceof PersistentClass
- || first instanceof Property
+ || first.getClass() == Property.class
|| first instanceof Table
|| first instanceof Column){
action = getActionRegistry().getAction(OpenSourceAction.ACTION_ID);