From: Taeyoung Son Date: Mon, 30 Sep 2013 11:15:33 +0000 (+0900) Subject: [Title] Fixed out of sync exception X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5b174a71c48b95c0dd88352002a6cc9fe52382a;p=sdk%2Fide%2Fcommon-eplugin.git [Title] Fixed out of sync exception [Desc.] [Issue] Change-Id: I4256c4df7a37b65e59e349957a017e2cfce489a7 --- diff --git a/org.tizen.common/src/org/tizen/common/rds/RdsDeltaDetector.java b/org.tizen.common/src/org/tizen/common/rds/RdsDeltaDetector.java index 43c29a4..32df5f0 100755 --- a/org.tizen.common/src/org/tizen/common/rds/RdsDeltaDetector.java +++ b/org.tizen.common/src/org/tizen/common/rds/RdsDeltaDetector.java @@ -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; }