org.eclipse.datatools.sqltools.result.internal.ui.view
Class SingleWindowTextSection
java.lang.Object
   org.eclipse.datatools.sqltools.result.internal.ui.view.ResultSection
org.eclipse.datatools.sqltools.result.internal.ui.view.ResultSection
       org.eclipse.datatools.sqltools.result.internal.ui.view.SingleWindowModeSection
org.eclipse.datatools.sqltools.result.internal.ui.view.SingleWindowModeSection
           org.eclipse.datatools.sqltools.result.internal.ui.view.SingleWindowTextSection
org.eclipse.datatools.sqltools.result.internal.ui.view.SingleWindowTextSection
- public class SingleWindowTextSection 
- extends SingleWindowModeSection
This UI component displays the execution result on one tab in text mode(using text widgets to display result sets).
- Author:
- Dafan Yang
 
 
 
 
| Method Summary | 
|  void | createInitialControl(org.eclipse.swt.widgets.Composite composite)Creates the initial static tabs
 | 
|  TextResultViewer | getTextViewer()
 | 
|  void | onInstanceFinished()Does some jobs when resultInstanceFinish event occurs for the current result instance, for example, when using
 single window display mode, we need to display the parameters at the end
 | 
|  void | onInstanceReseted()Refreshes UI when resultInstanceReset event occurs for the current result instance
 | 
|  void | onNewItemAppended(ResultItem item,
                  int index)Shows the newly-appended result item (when resultInstanceAppended event occurs) for the current result instance
 | 
 
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
_LINESEPARATOR
public static java.lang.String _LINESEPARATOR
SingleWindowTextSection
public SingleWindowTextSection(org.eclipse.swt.widgets.Composite composite,
                               ResultsViewControl resultsViewControl)
SingleWindowTextSection
public SingleWindowTextSection(org.eclipse.swt.widgets.Composite composite,
                               IResultInstance instance,
                               ResultsViewControl resultsViewControl)
onNewItemAppended
public void onNewItemAppended(ResultItem item,
                              int index)
- Description copied from class: ResultSection
- Shows the newly-appended result item (when resultInstanceAppended event occurs) for the current result instance
 
- 
- Overrides:
- onNewItemAppendedin class- ResultSection
 
- 
- Parameters:
- item- the newly-appended result item
- index- the index of this item
 
createInitialControl
public void createInitialControl(org.eclipse.swt.widgets.Composite composite)
- Description copied from class: SingleWindowModeSection
- Creates the initial static tabs
 
- 
 
- 
- Parameters:
- composite- the parent composite
 
onInstanceFinished
public void onInstanceFinished()
- Description copied from class: ResultSection
- Does some jobs when resultInstanceFinish event occurs for the current result instance, for example, when using
 single window display mode, we need to display the parameters at the end
 
- 
- Overrides:
- onInstanceFinishedin class- SingleWindowModeSection
 
- 
 
onInstanceReseted
public void onInstanceReseted()
- Description copied from class: ResultSection
- Refreshes UI when resultInstanceReset event occurs for the current result instance
 
- 
- Specified by:
- onInstanceResetedin class- ResultSection
 
- 
 
getTextViewer
public TextResultViewer getTextViewer()
-