Author: vrubezhny
Date: 2010-11-10 10:10:40 -0500 (Wed, 10 Nov 2010)
New Revision: 26415
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditor.java
Log:
JBIDE-7289
Visual Page Editor cannot be opened on deleted resource by pressing Alt-Left or "Back
to ..." button on toolbar
Issue is fixed
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditor.java 2010-11-10
15:05:47 UTC (rev 26414)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditor.java 2010-11-10
15:10:40 UTC (rev 26415)
@@ -904,8 +904,10 @@
return;
IPath path = getPathChange(event, f);
if (path == null) {
- if (f != null && !f.exists())
- closeEditor();
+// if (f != null && !f.exists())
+// closeEditor(); // Fix for JBIDE-7289: we don't close the editor here
+ // due to let eclipse to show error dialog and
+ // default view for the corrupted editor
return;
}
f = ModelPlugin.getWorkspace().getRoot().getFile(path);
Show replies by date