Class AbstractQueryWizardLabelProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.qw.ui.labelproviders.AbstractQueryWizardLabelProvider
-
- All Implemented Interfaces:
IBaseLabelProvider
,ITableLabelProvider
- Direct Known Subclasses:
AggregatesLabelProvider
,AliasesLabelProvider
,AllTablesForUpdateLabelProvider
,AvailableAliasesLabelProvider
,AvailableFieldsLabelProvider
,AvailableTablesLabelProvider
,ConditionsLabelProvider
,DcsCharacteristicsLabelProvider
,DcsTablesLabelProvider
,FieldsLabelProvider
,GroupingsLabelProvider
,IndexLabelProvider
,JoinsLabelProvider
,OperatorsLabelProvider
,OrderLabelProvider
,QueryBatchLabelProvider
,SourcesLabelProvider
,TablesForUpdateLabelProvider
,TotalCalculationFieldsLabelProvider
,TotalExpressionsLableProvider
,TotalsControlsPointsLabelProvider
public abstract class AbstractQueryWizardLabelProvider extends Object implements ITableLabelProvider
Base query wizard label provider
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
EMPTY_STRING
Empty string.
-
Constructor Summary
Constructors Constructor Description AbstractQueryWizardLabelProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
addIssueMessage(Object element, String message, QueryWizardSource wizardSource)
Adds issue message associated with given element if there is one to given message.void
addListener(ILabelProviderListener listener)
protected org.eclipse.swt.graphics.Image
addOverlayIcon(Object element, org.eclipse.swt.graphics.Image image, QueryWizardSource source)
Adds overlay error/warning icon if there is one.void
dispose()
abstract org.eclipse.swt.graphics.Image
getColumnImage(Object element, int columnIndex)
abstract String
getColumnText(Object element, int columnIndex)
String
getToolTipText(Object element, int columnIndex)
Get tool tip textboolean
isColumnHaveCustomLabelProvider(int columnIndex)
Is column have custom label providerboolean
isLabelProperty(Object element, String property)
boolean
isToolTipTextRequired(Object element, int columnIndex)
Show tool tips for every elementsvoid
removeListener(ILabelProviderListener listener)
void
update(int column, ViewerCell cell, org.eclipse.swt.widgets.Tree parent)
Update the label for cell.
-
-
-
Field Detail
-
EMPTY_STRING
protected static final String EMPTY_STRING
Empty string.- See Also:
- Constant Field Values
-
-
Method Detail
-
addListener
public void addListener(ILabelProviderListener listener)
- Specified by:
addListener
in interfaceIBaseLabelProvider
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceIBaseLabelProvider
-
isLabelProperty
public boolean isLabelProperty(Object element, String property)
- Specified by:
isLabelProperty
in interfaceIBaseLabelProvider
-
removeListener
public void removeListener(ILabelProviderListener listener)
- Specified by:
removeListener
in interfaceIBaseLabelProvider
-
getColumnImage
public abstract org.eclipse.swt.graphics.Image getColumnImage(Object element, int columnIndex)
- Specified by:
getColumnImage
in interfaceITableLabelProvider
-
getColumnText
public abstract String getColumnText(Object element, int columnIndex)
- Specified by:
getColumnText
in interfaceITableLabelProvider
-
isColumnHaveCustomLabelProvider
public boolean isColumnHaveCustomLabelProvider(int columnIndex)
Is column have custom label provider- Parameters:
column
- - column- Returns:
- true if have custom label provider
-
update
public void update(int column, ViewerCell cell, org.eclipse.swt.widgets.Tree parent)
Update the label for cell. Using for extending "update" method in "CellLabelProvider" class- Parameters:
column
- - columncell
- - column cellparent
- - parent tree
-
getToolTipText
public String getToolTipText(Object element, int columnIndex)
Get tool tip text- Parameters:
element
- - elementcolumn
- - column- Returns:
- tool tip text or null if have no text
-
isToolTipTextRequired
public boolean isToolTipTextRequired(Object element, int columnIndex)
Show tool tips for every elements- Parameters:
element
- - elementcolumn
- - column- Returns:
- true if show tool tips for every elements, false if show only multilines tool tips
-
addOverlayIcon
protected org.eclipse.swt.graphics.Image addOverlayIcon(Object element, org.eclipse.swt.graphics.Image image, QueryWizardSource source)
Adds overlay error/warning icon if there is one.- Parameters:
element
- - element image was created for. Cannot benull
.image
- - image to add overlay icon to. Can benull
.source
- - query wizard source to look for issues. Cannot benull
.- Returns:
- image with overlay or original image. Cannot return
null
.
-
addIssueMessage
protected String addIssueMessage(Object element, String message, QueryWizardSource wizardSource)
Adds issue message associated with given element if there is one to given message.- Parameters:
element
- - element to look for issues. Cannot benull
.message
- - initial message. Cannot benull
.wizardSource
- - query wizard source. Cannot benull
.- Returns:
- message with issues text. Cannot return
null
.
-
-