Class SourcesLabelProvider

java.lang.Object
com._1c.g5.v8.dt.qw.ui.labelproviders.AbstractQueryWizardLabelProvider
com._1c.g5.v8.dt.qw.ui.labelproviders.SourcesLabelProvider
All Implemented Interfaces:
IBaseLabelProvider, IColorProvider, ITableLabelProvider

public class SourcesLabelProvider extends AbstractQueryWizardLabelProvider
Sources label provider
  • Constructor Details

    • SourcesLabelProvider

      public SourcesLabelProvider(QueryWizardSource source)
      Constructs label provider
      Parameters:
      source - the query wizard source, cannot be enull
  • Method Details

    • getToolTipForSource

      public static String getToolTipForSource(QuerySchemaSource tableSource, QueryWizardSource qwSource)
      Get tool tip text for source
      Parameters:
      tableSource - - table source
      qwSource - - query wizard source
      Returns:
      tool tip text
    • getColumnImage

      public org.eclipse.swt.graphics.Image getColumnImage(Object element, int columnIndex)
    • getColumnText

      public String getColumnText(Object element, int columnIndex)
    • isToolTipTextRequired

      public boolean isToolTipTextRequired(Object element, int column)
      Description copied from class: AbstractQueryWizardLabelProvider
      Show tool tips for every elements
      Overrides:
      isToolTipTextRequired in class AbstractQueryWizardLabelProvider
      Parameters:
      element - - element for show tooltip, cannot be null
      column - - actual column index in tree viewer
      Returns:
      true if show tooltips for every elements, false if show only multilines tool tips
    • getToolTipText

      public String getToolTipText(Object element, int columnIndex)
      Description copied from class: AbstractQueryWizardLabelProvider
      Get tool tip text
      Overrides:
      getToolTipText in class AbstractQueryWizardLabelProvider
      Parameters:
      element - - element for show tooltip
      columnIndex - - actual column index in tree viewer
      Returns:
      tool tip text or null if have no text