Author: scabanovich
Date: 2008-02-29 09:29:27 -0500 (Fri, 29 Feb 2008)
New Revision: 6650
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/OpenEditorWizard.java
Log:
JBIDE-1828
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/OpenEditorWizard.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/OpenEditorWizard.java 2008-02-29
14:23:33 UTC (rev 6649)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/OpenEditorWizard.java 2008-02-29
14:29:27 UTC (rev 6650)
@@ -47,16 +47,16 @@
if(input instanceof IFileEditorInput) {
IFileEditorInput fei = (IFileEditorInput)input;
IFile f = fei.getFile();
- if(!f.isSynchronized(IResource.DEPTH_INFINITE)) {
+ if(f != null && !f.isSynchronized(IResource.DEPTH_INFINITE)) {
try {
f.getParent().refreshLocal(IResource.DEPTH_INFINITE, null);
} catch (Exception e) {
ModelUIPlugin.getPluginLog().logError(e);
}
}
- if(!f.exists()) {
+ if(f == null || !f.exists()) {
ServiceDialog d = object.getModel().getService();
- String message = "The file " + f.getLocation().toString() + " was
removed externally.";
+ String message = "The file " + f.getFullPath() + " was removed
externally.";
d.showDialog("Warning", message, new String[]{"Close"}, null,
ServiceDialog.WARNING);
object.getModel().update();
return 1;
Show replies by date