Author: scabanovich
Date: 2007-10-19 10:52:59 -0400 (Fri, 19 Oct 2007)
New Revision: 4386
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XContentProvider.java
Log:
JBIDE-1123
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XContentProvider.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XContentProvider.java 2007-10-19
14:38:44 UTC (rev 4385)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XContentProvider.java 2007-10-19
14:52:59 UTC (rev 4386)
@@ -13,6 +13,9 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.viewers.Viewer;
@@ -46,6 +49,13 @@
return o.getChildrenForSave();
} else if(parentElement instanceof IFile) {
IFile f = (IFile)parentElement;
+ if(!f.isSynchronized(IResource.DEPTH_ZERO)) {
+ IPath p = f.getLocation();
+ if(p != null) {
+ if(!p.toFile().isFile()) return null;
+ }
+ }
+ if(!f.isAccessible()) return null;
XModelObject o = EclipseResourceUtil.getObjectByResource(f);
XFilteredTree filteredTree = getFilteredTree(o);
if(filteredTree != null) {
Show replies by date