Author: scabanovich
Date: 2008-04-10 03:03:35 -0400 (Thu, 10 Apr 2008)
New Revision: 7477
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FileSystemImpl.java
Log:
JBIDE-2039
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FileSystemImpl.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FileSystemImpl.java 2008-04-09
21:41:15 UTC (rev 7476)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FileSystemImpl.java 2008-04-10
07:03:35 UTC (rev 7477)
@@ -67,6 +67,13 @@
if(thloc.toLowerCase().startsWith(prloc.toLowerCase())) {
String relative = thloc.substring(prloc.length());
IFolder f = project.getFolder(new Path(relative));
+ if(!f.exists() && !f.isSynchronized(IResource.DEPTH_ONE)) {
+ try {
+ f.refreshLocal(IResource.DEPTH_ONE, new NullProgressMonitor());
+ } catch (CoreException e) {
+ ModelPlugin.getPluginLog().logError(e);
+ }
+ }
if(!f.exists()) {
try {
if(f.getParent() != null && f.getParent().exists()) {
Show replies by date