fix part of BZ 220685
diff --git a/plugins/org.eclipse.datatools.sqltools.result/src/org/eclipse/datatools/sqltools/result/ResultsViewAPI.java b/plugins/org.eclipse.datatools.sqltools.result/src/org/eclipse/datatools/sqltools/result/ResultsViewAPI.java
index 150413e..649871c 100644
--- a/plugins/org.eclipse.datatools.sqltools.result/src/org/eclipse/datatools/sqltools/result/ResultsViewAPI.java
+++ b/plugins/org.eclipse.datatools.sqltools.result/src/org/eclipse/datatools/sqltools/result/ResultsViewAPI.java
@@ -111,7 +111,9 @@
public class ResultsViewAPI
{
private static ResultsViewAPI _instance;
- private static ILogger _log = ResultsViewPlugin.getLogger(null);
+ private static ILogger _log = ResultsViewPlugin.getLogger(null);
+ private boolean _checkSRV = true;
+
/**
* Returns the instance of <code>ResultsViewAPI</code>
*
@@ -493,6 +495,10 @@
*/
public boolean checkView()
{
+ if ( !_checkSRV )
+ {
+ return true;
+ }
// get the active window
IWorkbenchWindow activeWindow = ResultsViewPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow();
@@ -780,4 +786,9 @@
return ResultsViewPlugin.getDefault().getPreferenceStore().getInt(
PreferenceConstants.SQL_RESULTS_VIEW_MAX_DISPLAY_ROW_COUNT);
}
+
+ public void setCheckSRV(boolean checksrv)
+ {
+ _checkSRV = checksrv;
+ }
}