[Title] Fixed out of sync exception 52/10352/2
authorTaeyoung Son <taeyoung2.son@samsung.com>
Mon, 30 Sep 2013 11:15:33 +0000 (20:15 +0900)
committerTaeyoung Son <taeyoung2.son@samsung.com>
Mon, 30 Sep 2013 11:28:19 +0000 (20:28 +0900)
[Desc.]
[Issue]

Change-Id: I4256c4df7a37b65e59e349957a017e2cfce489a7

org.tizen.common/src/org/tizen/common/rds/RdsDeltaDetector.java

index 43c29a4..32df5f0 100755 (executable)
@@ -41,7 +41,9 @@ import org.eclipse.core.internal.watson.ElementTreeWriter;
 import org.eclipse.core.resources.IProject;
 import org.eclipse.core.resources.IResource;
 import org.eclipse.core.resources.IResourceDelta;
+import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.NullProgressMonitor;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.tizen.common.util.IOUtil;
@@ -253,6 +255,13 @@ public class RdsDeltaDetector {
             return "";
         } finally {
             IOUtil.tryClose(output);
+            try {
+                if (project!=null) {
+                    project.refreshLocal(IResource.DEPTH_ONE, new NullProgressMonitor());
+                }
+            } catch (CoreException e) {
+                logger.error("Could not refresh project resources...", e);
+            }
         }
         return strLocalFile;
     }