Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Finkbeiner2016-02-03 08:17:09 -0500
committerAndrew M. Finkbeiner2016-02-03 08:17:09 -0500
commit9094aaf3690b94f9a974fdbc85b4d0e1800ed9fd (patch)
tree908d28531fc755a937dc445366b01862ef2d7dc2
parentbaa6997606e10f4b2f13f3f1a5d4c69033451569 (diff)
downloadorg.eclipse.osee-OTE_03_25_2016.tar.gz
org.eclipse.osee-OTE_03_25_2016.tar.xz
org.eclipse.osee-OTE_03_25_2016.zip
bug[ats_ATS269203]: Fix synch issueOTE_03_25_2016
-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