Package org.eclipse.debug.ui
Class PrototypeDecorator
- java.lang.Object
-
- org.eclipse.debug.ui.PrototypeDecorator
-
- All Implemented Interfaces:
IBaseLabelProvider,ILightweightLabelDecorator
public class PrototypeDecorator extends Object implements ILightweightLabelDecorator
Decorator forILaunchConfigurationprototypes.- Since:
- 3.13
-
-
Constructor Summary
Constructors Constructor Description PrototypeDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(ILabelProviderListener listener)Adds a listener to this label provider.voiddecorate(Object element, IDecoration decoration)Calculates decorations based on element.voiddispose()Disposes of this label provider.booleanisLabelProperty(Object element, String property)Returns whether the label would be affected by a change to the given property of the given element.voidremoveListener(ILabelProviderListener listener)Removes a listener to this label provider.
-
-
-
Method Detail
-
addListener
public void addListener(ILabelProviderListener listener)
Description copied from interface:IBaseLabelProviderAdds a listener to this label provider. Has no effect if an identical listener is already registered.Label provider listeners are informed about state changes that affect the rendering of the viewer that uses this label provider.
- Specified by:
addListenerin interfaceIBaseLabelProvider- Parameters:
listener- a label provider listener
-
dispose
public void dispose()
Description copied from interface:IBaseLabelProviderDisposes of this label provider. When a label provider is attached to a viewer, the viewer will automatically call this method when the viewer is being closed. When label providers are used outside of the context of a viewer, it is the client's responsibility to ensure that this method is called when the provider is no longer needed.- Specified by:
disposein interfaceIBaseLabelProvider
-
isLabelProperty
public boolean isLabelProperty(Object element, String property)
Description copied from interface:IBaseLabelProviderReturns whether the label would be affected by a change to the given property of the given element. This can be used to optimize a non-structural viewer update. If the property mentioned in the update does not affect the label, then the viewer need not update the label.- Specified by:
isLabelPropertyin interfaceIBaseLabelProvider- Parameters:
element- the elementproperty- the property- Returns:
trueif the label would be affected, andfalseif it would be unaffected
-
removeListener
public void removeListener(ILabelProviderListener listener)
Description copied from interface:IBaseLabelProviderRemoves a listener to this label provider. Has no effect if an identical listener is not registered.- Specified by:
removeListenerin interfaceIBaseLabelProvider- Parameters:
listener- a label provider listener
-
decorate
public void decorate(Object element, IDecoration decoration)
Description copied from interface:ILightweightLabelDecoratorCalculates decorations based on element.- Specified by:
decoratein interfaceILightweightLabelDecorator- Parameters:
element- the element to decoratedecoration- the decoration to set
-
-