Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Finkbeiner2016-02-03 08:17:09 -0500
committerAndrew M. Finkbeiner2016-10-06 21:11:52 -0400
commit79708ca449c5ce9eb9d2148b9ea0d261ab0205ce (patch)
tree7ca5e0fff01bdafa9eafa82ee21e49ba9d52e801
parent4fa3e1a91bcfc1e55f2ab15cba9c766d9e6eb2ef (diff)
downloadorg.eclipse.osee-79708ca449c5ce9eb9d2148b9ea0d261ab0205ce.tar.gz
org.eclipse.osee-79708ca449c5ce9eb9d2148b9ea0d261ab0205ce.tar.xz
org.eclipse.osee-79708ca449c5ce9eb9d2148b9ea0d261ab0205ce.zip
bug[ats_ATS269203]: Fix synch issue
-rw-r--r--plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerEditor.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerEditor.java b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerEditor.java
index ca8524e74f..23b8120e41 100644
--- a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerEditor.java
+++ b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerEditor.java
@@ -19,6 +19,7 @@ import java.io.OutputStream;
import java.util.logging.Level;
import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
@@ -141,7 +142,9 @@ public abstract class TestManagerEditor extends MultiPageEditorPart implements I
if (getActivePage() != sourcePage) {
pageSourceLoad();
}
- getEditor(sourcePage).doSave(monitor);
+ if(isDirty()){
+ getEditor(sourcePage).doSave(monitor);
+ }
fileIsDirty = false;
fileWasSaved = true;
doSave();
@@ -324,6 +327,11 @@ public abstract class TestManagerEditor extends MultiPageEditorPart implements I
if (coreinput instanceof IFileEditorInput) {
IFileEditorInput input = (IFileEditorInput) getEditorInput();
thisIFile = input.getFile();
+ try {
+ thisIFile.refreshLocal(IResource.DEPTH_ZERO, null);
+ } catch (CoreException e) {
+ e.printStackTrace();
+ }
String name = thisIFile.getName();
this.setPartName(name);
if (thisIFile != null) {

Back to the top