org.eclipse.emf.emfstore.internal.client.ui.views.changes
Class DefaultOperationLabelProvider

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.ui.views.changes.DefaultOperationLabelProvider
All Implemented Interfaces:
OperationCustomLabelProvider, ESDisposable

public class DefaultOperationLabelProvider
extends Object
implements OperationCustomLabelProvider

Default label provider for operations.

Author:
emueller

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.emfstore.internal.client.ui.common.OperationCustomLabelProvider
OperationCustomLabelProvider.CanRender
 
Field Summary
 
Fields inherited from interface org.eclipse.emf.emfstore.internal.client.ui.common.OperationCustomLabelProvider
ID
 
Constructor Summary
DefaultOperationLabelProvider()
          Constructor.
 
Method Summary
 OperationCustomLabelProvider.CanRender canRender(AbstractOperation operation)
          Checks if this provider can render the given operation.
 void dispose()
          Marker method for classes that need to perform clean-up tasks.
 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 class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOperationLabelProvider

public DefaultOperationLabelProvider()
Constructor.

Method Detail

getDescription

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

Specified by:
getDescription in interface OperationCustomLabelProvider
Parameters:
operation - the operation which needs to be visualized by the image
Returns:
the description of the operation
See Also:
OperationCustomLabelProvider.getDescription(org.eclipse.emf.emfstore.internal.server.model.versioning.operations.AbstractOperation)

getImage

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

Specified by:
getImage in interface OperationCustomLabelProvider
Parameters:
operation - the operation which needs to be visualized by the image
Returns:
the image of the operation
See Also:
OperationCustomLabelProvider.getImage(org.eclipse.emf.emfstore.internal.server.model.versioning.operations.AbstractOperation)

canRender

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

Specified by:
canRender in interface OperationCustomLabelProvider
Parameters:
operation - the operation which should be checked
Returns:
whether the label provider can render the given operation
See Also:
OperationCustomLabelProvider.canRender(org.eclipse.emf.emfstore.internal.server.model.versioning.operations.AbstractOperation)

getModelElementName

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

Specified by:
getModelElementName in interface OperationCustomLabelProvider
Parameters:
modelElement - the model element whose name should be determined
Returns:
the name of the given model element
See Also:
OperationCustomLabelProvider.getModelElementName(org.eclipse.emf.ecore.EObject)

dispose

public void dispose()
Marker method for classes that need to perform clean-up tasks.

Specified by:
dispose in interface ESDisposable
See Also:
ESDisposable.dispose()


Copyright © 2015. All Rights Reserved.