You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by pk...@apache.org on 2011/10/19 15:27:47 UTC
svn commit: r1186203 -
/uima/uimaj/trunk/uimaj-ep-cas-editor-ide/src/main/java/org/apache/uima/caseditor/ide/DefaultCasDocumentProvider.java
Author: pkluegl
Date: Wed Oct 19 13:27:46 2011
New Revision: 1186203
URL: http://svn.apache.org/viewvc?rev=1186203&view=rev
Log:
UIMA-2267
added check and refresh if the type system is out of sync
Modified:
uima/uimaj/trunk/uimaj-ep-cas-editor-ide/src/main/java/org/apache/uima/caseditor/ide/DefaultCasDocumentProvider.java
Modified: uima/uimaj/trunk/uimaj-ep-cas-editor-ide/src/main/java/org/apache/uima/caseditor/ide/DefaultCasDocumentProvider.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-ep-cas-editor-ide/src/main/java/org/apache/uima/caseditor/ide/DefaultCasDocumentProvider.java?rev=1186203&r1=1186202&r2=1186203&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-ep-cas-editor-ide/src/main/java/org/apache/uima/caseditor/ide/DefaultCasDocumentProvider.java (original)
+++ uima/uimaj/trunk/uimaj-ep-cas-editor-ide/src/main/java/org/apache/uima/caseditor/ide/DefaultCasDocumentProvider.java Wed Oct 19 13:27:46 2011
@@ -52,6 +52,7 @@ import org.eclipse.core.resources.Resour
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.QualifiedName;
import org.eclipse.core.runtime.Status;
@@ -239,6 +240,10 @@ public class DefaultCasDocumentProvider
if (typeSystemFile != null && typeSystemFile.exists()) {
+ if (!typeSystemFile.isSynchronized(IResource.DEPTH_ZERO)) {
+ typeSystemFile.refreshLocal(IResource.DEPTH_ZERO, new NullProgressMonitor());
+ }
+
// TODO: Update this comment!
// Try to load a style file for the type system
// Should be named: ts file name, prefixed with .style-