public class ECPValidationServiceLabelDecorator extends Object implements org.eclipse.jface.viewers.ILabelDecorator
Constructor and Description |
---|
ECPValidationServiceLabelDecorator(org.eclipse.jface.viewers.TreeViewer viewer,
org.eclipse.emf.common.notify.Notifier input,
DiagnosticCache cache)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(org.eclipse.jface.viewers.ILabelProviderListener listener) |
org.eclipse.swt.graphics.Image |
decorateImage(org.eclipse.swt.graphics.Image image,
Object element) |
String |
decorateText(String text,
Object element) |
void |
dispose() |
boolean |
isLabelProperty(Object element,
String property) |
protected void |
refreshViewer(org.eclipse.emf.ecore.EObject element)
Called in order to update the cache.
|
void |
removeListener(org.eclipse.jface.viewers.ILabelProviderListener listener) |
protected void |
updateViewer(org.eclipse.emf.ecore.EObject element)
Called in order to update the cache.
|
public ECPValidationServiceLabelDecorator(org.eclipse.jface.viewers.TreeViewer viewer, org.eclipse.emf.common.notify.Notifier input, DiagnosticCache cache)
viewer
- the TreeViewer
input
- the input notifiercache
- the DiagnosticCache
public org.eclipse.swt.graphics.Image decorateImage(org.eclipse.swt.graphics.Image image, Object element)
decorateImage
in interface org.eclipse.jface.viewers.ILabelDecorator
protected void refreshViewer(org.eclipse.emf.ecore.EObject element)
element
- The element which changedprotected void updateViewer(org.eclipse.emf.ecore.EObject element)
element
- The element which changedpublic String decorateText(String text, Object element)
decorateText
in interface org.eclipse.jface.viewers.ILabelDecorator
public void addListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
addListener
in interface org.eclipse.jface.viewers.IBaseLabelProvider
public boolean isLabelProperty(Object element, String property)
isLabelProperty
in interface org.eclipse.jface.viewers.IBaseLabelProvider
public void removeListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
removeListener
in interface org.eclipse.jface.viewers.IBaseLabelProvider
public void dispose()
dispose
in interface org.eclipse.jface.viewers.IBaseLabelProvider
Copyright © 2019. All rights reserved.