Author: vyemialyanchyk
Date: 2008-07-24 10:40:10 -0400 (Thu, 24 Jul 2008)
New Revision: 9269
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/criteriaeditor/CriteriaEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2572
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/criteriaeditor/CriteriaEditor.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/criteriaeditor/CriteriaEditor.java 2008-07-24
13:42:39 UTC (rev 9268)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/criteriaeditor/CriteriaEditor.java 2008-07-24
14:40:10 UTC (rev 9269)
@@ -173,6 +173,10 @@
public void showEditorInput(IEditorInput editorInput) {
+ if (!(getEditorInput() instanceof CriteriaEditorInput)) {
+ super.showEditorInput( editorInput );
+ return;
+ }
CriteriaEditorInput hei = (CriteriaEditorInput)getEditorInput();
super.showEditorInput( editorInput );
IStorage storage = ((CriteriaEditorInput)editorInput).getStorage();