summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHardik Patel2013-02-05 17:02:22 (EST)
committerBrian Payton2013-02-05 17:02:22 (EST)
commit96bca96a8881e220db04204b15b62966d6f24c99 (patch)
tree9054fd16f32da17b3b02c28830f58a05b8e1e596
parentda7ae7a27352f9d15dc5c41ee67f9d07dba0bf2a (diff)
downloadorg.eclipse.datatools.sqltools-96bca96a8881e220db04204b15b62966d6f24c99.zip
org.eclipse.datatools.sqltools-96bca96a8881e220db04204b15b62966d6f24c99.tar.gz
org.eclipse.datatools.sqltools-96bca96a8881e220db04204b15b62966d6f24c99.tar.bz2
[389098] Fix disappearing Messages tab problemv201302060602
Modified method configureResultsTable in class ResultHistorySection in plugin o.e.d.sqltools.result.ui to use the SerializationHelper when changing result sets
-rw-r--r--plugins/org.eclipse.datatools.sqltools.result.ui/src/org/eclipse/datatools/sqltools/result/internal/ui/view/ResultHistorySection.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.datatools.sqltools.result.ui/src/org/eclipse/datatools/sqltools/result/internal/ui/view/ResultHistorySection.java b/plugins/org.eclipse.datatools.sqltools.result.ui/src/org/eclipse/datatools/sqltools/result/internal/ui/view/ResultHistorySection.java
index 77cfdc9..2088648 100644
--- a/plugins/org.eclipse.datatools.sqltools.result.ui/src/org/eclipse/datatools/sqltools/result/internal/ui/view/ResultHistorySection.java
+++ b/plugins/org.eclipse.datatools.sqltools.result.ui/src/org/eclipse/datatools/sqltools/result/internal/ui/view/ResultHistorySection.java
@@ -27,6 +27,7 @@ import org.eclipse.datatools.sqltools.result.internal.ui.Messages;
import org.eclipse.datatools.sqltools.result.internal.ui.PreferenceConstants;
import org.eclipse.datatools.sqltools.result.internal.ui.actions.ReExecuteAction;
import org.eclipse.datatools.sqltools.result.internal.ui.utils.PreferenceUtil;
+import org.eclipse.datatools.sqltools.result.internal.utils.SerializationHelper;
import org.eclipse.datatools.sqltools.result.model.IResultInstance;
import org.eclipse.datatools.sqltools.result.ui.ResultsViewUIPlugin;
import org.eclipse.datatools.sqltools.result.ui.view.ResultsViewControl;
@@ -450,6 +451,8 @@ public class ResultHistorySection
// set the result and parameter list of the last display to be null for reclaiming them, when selection is changed.
if(lastResultInstance instanceof ResultInstance)
{
+ Object[] objs ={lastResultInstance.getParameters(),((ResultInstance) lastResultInstance).getResults()};
+ SerializationHelper.SaveObjects(objs, ((ResultInstance) lastResultInstance).getFileName());
((ResultInstance) lastResultInstance).reclaimedTransientThings();
}
}