Author: scabanovich
Date: 2009-06-10 11:07:47 -0400 (Wed, 10 Jun 2009)
New Revision: 15865
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/ModelObjectLocationEditorInput.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4433
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/ModelObjectLocationEditorInput.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/ModelObjectLocationEditorInput.java 2009-06-10
15:01:25 UTC (rev 15864)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/ModelObjectLocationEditorInput.java 2009-06-10
15:07:47 UTC (rev 15865)
@@ -45,6 +45,9 @@
public boolean equals(Object o) {
if(super.equals(o)) return true;
if(o instanceof IPathEditorInput) {
+ if(!((IPathEditorInput)o).exists()) {
+ return false;
+ }
IPath p = ((IPathEditorInput)o).getPath();
return path != null && path.equals(p);
}