Class AbstractEventHandlersStyledLabelProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.eventhandlers.ui.providers.AbstractLabelProvider
-
- com._1c.g5.v8.dt.eventhandlers.ui.providers.AbstractEventHandlersStyledLabelProvider
-
- All Implemented Interfaces:
DelegatingStyledCellLabelProvider.IStyledLabelProvider
,IBaseLabelProvider
- Direct Known Subclasses:
EventHandlerParamViewerLabelProvider
,EventHandlersViewerLabelProvider
,FilterEventViewerLabelProvider
,FilterHandlerViewerLabelProvider
,FilterSourceViewerLabelProvider
,SubsystemViewerLabelProvider
public abstract class AbstractEventHandlersStyledLabelProvider extends AbstractLabelProvider implements DelegatingStyledCellLabelProvider.IStyledLabelProvider
Base class for event handlers plugin styled label provider.
-
-
Constructor Summary
Constructors Constructor Description AbstractEventHandlersStyledLabelProvider(StructuredViewer viewer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(ILabelProviderListener listener)
void
dispose()
protected org.eclipse.swt.graphics.Image
getExtensionHandlerImage(ExtensionMethodContainer extensionMethodContainer)
Returns extension method image.protected org.eclipse.swt.graphics.Color
getMatchColor()
Get pattern match color.protected StyledString.Styler
getMatchStyler()
Returns text styler.protected SearchFilterWithHistory
getSearchFilter()
Returns search filter of parent viewer.protected StructuredViewer
getViewer()
Returns parent viewer.protected StyledString
highlightText(String text)
Highlights given text using parents viewer search pattern.protected StyledString
highlightText(String text, SearchFilterWithHistory searchFilter)
Highlights given text using given search pattern.boolean
isLabelProperty(Object element, String property)
void
removeListener(ILabelProviderListener listener)
-
Methods inherited from class com._1c.g5.v8.dt.eventhandlers.ui.providers.AbstractLabelProvider
getTypeItemImage, removeFirstSegment
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.IStyledLabelProvider
getImage, getStyledText
-
-
-
-
Constructor Detail
-
AbstractEventHandlersStyledLabelProvider
public AbstractEventHandlersStyledLabelProvider(StructuredViewer viewer)
Constructor.- Parameters:
viewer
- - parent viewer. Can't benull
.
-
-
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
-
getMatchColor
protected org.eclipse.swt.graphics.Color getMatchColor()
Get pattern match color. Used to highlight text.- Returns:
- pattern match color. Can't return
null
.
-
getMatchStyler
protected StyledString.Styler getMatchStyler()
Returns text styler. Highlites text color into match color.- Returns:
- text styler Can't return
null
.
-
getViewer
protected StructuredViewer getViewer()
Returns parent viewer.- Returns:
- parent viewer. Can't return
null
.
-
getSearchFilter
protected SearchFilterWithHistory getSearchFilter()
Returns search filter of parent viewer.- Returns:
- search filter of parent viewer. Can return
null
.
-
highlightText
protected StyledString highlightText(String text)
Highlights given text using parents viewer search pattern.- Parameters:
text
- - text to highlight. Can't benull
.- Returns:
- highlited text. Can't return
null
.
-
highlightText
protected StyledString highlightText(String text, SearchFilterWithHistory searchFilter)
Highlights given text using given search pattern.- Parameters:
text
- - text to highlight. Can't benull
.searchFilter
- - search filter. Can benull
.- Returns:
- highlited text. Can't return
null
.
-
getExtensionHandlerImage
protected org.eclipse.swt.graphics.Image getExtensionHandlerImage(ExtensionMethodContainer extensionMethodContainer)
Returns extension method image.- Parameters:
extensionMethodContainer
- - extension method container. Can't benull
.- Returns:
- extension method image. Can't return
null
.
-
-