Class AliasesLabelProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.qw.ui.labelproviders.AbstractQueryWizardLabelProvider
-
- com._1c.g5.v8.dt.qw.ui.labelproviders.AliasesLabelProvider
-
- All Implemented Interfaces:
IBaseLabelProvider
,ITableFontProvider
,ITableLabelProvider
public class AliasesLabelProvider extends AbstractQueryWizardLabelProvider implements ITableFontProvider
Label provider for aliases
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.qw.ui.labelproviders.AbstractQueryWizardLabelProvider
EMPTY_STRING
-
-
Constructor Summary
Constructors Constructor Description AliasesLabelProvider(QueryWizardSource source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAliasText(Object element)
Get alias for fieldstatic String
getAliasText(Object element, QueryWizardSource source)
Get alias for fieldorg.eclipse.swt.graphics.Image
getColumnImage(Object element, int columnIndex)
String
getColumnText(Object element, int columnIndex)
static org.eclipse.emf.ecore.EObject
getFieldDbView(QuerySchemaExpression expression, QueryWizardSource source)
Get dbview for expressionorg.eclipse.swt.graphics.Font
getFont(Object element, int columnIndex)
String
getToolTipText(Object element, int columnIndex)
Get tool tip textboolean
isToolTipTextRequired(Object element, int columnIndex)
Show tool tips for every elements-
Methods inherited from class com._1c.g5.v8.dt.qw.ui.labelproviders.AbstractQueryWizardLabelProvider
addIssueMessage, addListener, addOverlayIcon, dispose, isColumnHaveCustomLabelProvider, isLabelProperty, removeListener, update
-
-
-
-
Constructor Detail
-
AliasesLabelProvider
public AliasesLabelProvider(QueryWizardSource source)
- Parameters:
source
- - query wizard source
-
-
Method Detail
-
getAliasText
public static String getAliasText(Object element, QueryWizardSource source)
Get alias for field- Parameters:
element
- fieldsource
- query wizard source- Returns:
- text alias
-
getFieldDbView
public static org.eclipse.emf.ecore.EObject getFieldDbView(QuerySchemaExpression expression, QueryWizardSource source)
Get dbview for expression- Parameters:
expression
- - expressionsource
- - query wizard source- Returns:
- dbview
-
getColumnImage
public org.eclipse.swt.graphics.Image getColumnImage(Object element, int columnIndex)
- Specified by:
getColumnImage
in interfaceITableLabelProvider
- Specified by:
getColumnImage
in classAbstractQueryWizardLabelProvider
-
getColumnText
public String getColumnText(Object element, int columnIndex)
- Specified by:
getColumnText
in interfaceITableLabelProvider
- Specified by:
getColumnText
in classAbstractQueryWizardLabelProvider
-
getToolTipText
public String getToolTipText(Object element, int columnIndex)
Description copied from class:AbstractQueryWizardLabelProvider
Get tool tip text- Overrides:
getToolTipText
in classAbstractQueryWizardLabelProvider
- Parameters:
element
- - element- Returns:
- tool tip text or null if have no text
-
isToolTipTextRequired
public boolean isToolTipTextRequired(Object element, int columnIndex)
Description copied from class:AbstractQueryWizardLabelProvider
Show tool tips for every elements- Overrides:
isToolTipTextRequired
in classAbstractQueryWizardLabelProvider
- Parameters:
element
- - element- Returns:
- true if show tool tips for every elements, false if show only multilines tool tips
-
getAliasText
public String getAliasText(Object element)
Get alias for field- Parameters:
element
- field- Returns:
- text alias
-
getFont
public org.eclipse.swt.graphics.Font getFont(Object element, int columnIndex)
- Specified by:
getFont
in interfaceITableFontProvider
-
-