org.eclipse.datatools.sqltools.result.internal.ui.view
Class SingleWindowTextSection

java.lang.Object
  extended by org.eclipse.datatools.sqltools.result.internal.ui.view.ResultSection
      extended by org.eclipse.datatools.sqltools.result.internal.ui.view.SingleWindowModeSection
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.datatools.sqltools.result.internal.ui.view.ResultSection
ResultSection.OutputThread
 
Field Summary
static java.lang.String _LINESEPARATOR
           
 
Constructor Summary
SingleWindowTextSection(org.eclipse.swt.widgets.Composite composite, IResultInstance instance, ResultsViewControl resultsViewControl)
           
SingleWindowTextSection(org.eclipse.swt.widgets.Composite composite, ResultsViewControl resultsViewControl)
           
 
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 org.eclipse.datatools.sqltools.result.internal.ui.view.SingleWindowModeSection
getControl, onParametersShown, showDetail
 
Methods inherited from class org.eclipse.datatools.sqltools.result.internal.ui.view.ResultSection
getRowCount, showResultSet, showTab, showTab
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_LINESEPARATOR

public static java.lang.String _LINESEPARATOR
Constructor Detail

SingleWindowTextSection

public SingleWindowTextSection(org.eclipse.swt.widgets.Composite composite,
                               ResultsViewControl resultsViewControl)

SingleWindowTextSection

public SingleWindowTextSection(org.eclipse.swt.widgets.Composite composite,
                               IResultInstance instance,
                               ResultsViewControl resultsViewControl)
Method Detail

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:
onNewItemAppended in 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:
onInstanceFinished in class SingleWindowModeSection

onInstanceReseted

public void onInstanceReseted()
Description copied from class: ResultSection
Refreshes UI when resultInstanceReset event occurs for the current result instance

Specified by:
onInstanceReseted in class ResultSection

getTextViewer

public TextResultViewer getTextViewer()