org.eclipse.emf.emfstore.internal.client.ui.common
Interface OperationCustomLabelProvider

All Superinterfaces:
ESDisposable
All Known Implementing Classes:
DefaultOperationLabelProvider

public interface OperationCustomLabelProvider
extends ESDisposable

Interface for a custom LabelProvider for AbstractOperations.

Author:
Michael Kagel, emueller

Nested Class Summary
static class OperationCustomLabelProvider.CanRender
          Enum specifying whether a renderer is able to render an element or not.
 
Field Summary
static String ID
          ID of the label provider.
 
Method Summary
 OperationCustomLabelProvider.CanRender canRender(AbstractOperation operation)
          Checks if this provider can render the given operation.
 String getDescription(AbstractOperation operation)
          Returns the description of an operation.
 Object getImage(AbstractOperation operation)
          Returns the image of an operation.
 String getModelElementName(org.eclipse.emf.ecore.EObject modelElement)
          Returns the name of the given model element.
 
Methods inherited from interface org.eclipse.emf.emfstore.internal.common.ESDisposable
dispose
 

Field Detail

ID

static final String ID
ID of the label provider.

See Also:
Constant Field Values
Method Detail

getModelElementName

String getModelElementName(org.eclipse.emf.ecore.EObject modelElement)
Returns the name of the given model element.

Parameters:
modelElement - the model element whose name should be determined
Returns:
the name of the given model element

getDescription

String getDescription(AbstractOperation operation)
Returns the description of an operation.

Parameters:
operation - the operation which needs to be visualized by the image
Returns:
the description of the operation

getImage

Object getImage(AbstractOperation operation)
Returns the image of an operation.

Parameters:
operation - the operation which needs to be visualized by the image
Returns:
the image of the operation

canRender

OperationCustomLabelProvider.CanRender canRender(AbstractOperation operation)
Checks if this provider can render the given operation.

Parameters:
operation - the operation which should be checked
Returns:
whether the label provider can render the given operation


Copyright © 2015. All Rights Reserved.