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

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.ui.views.changes.ChangePackageVisualizationHelper

public class ChangePackageVisualizationHelper
extends Object

A helper class for the visualization of change packages.

Author:
koegel, shterev, emueller

Constructor Summary
ChangePackageVisualizationHelper(ModelElementIdToEObjectMapping idToEObjectMapping)
          Constructor.
 
Method Summary
 String getDescription(AbstractOperation op)
          Returns a description for the given operation.
 org.eclipse.swt.graphics.Image getImage(org.eclipse.jface.viewers.ILabelProvider emfProvider, AbstractOperation operation)
          Get an image for the operation.
 org.eclipse.emf.ecore.EObject getModelElement(ModelElementId modelElementId)
          Get a model element instance from the project for the given id.
 org.eclipse.jface.resource.ImageDescriptor getOverlayImage(AbstractOperation operation)
          Get the overlay image for an operation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangePackageVisualizationHelper

public ChangePackageVisualizationHelper(ModelElementIdToEObjectMapping idToEObjectMapping)
Constructor.

Parameters:
idToEObjectMapping - the ID to EObject mapping that is holding the EObjects that are going to be visualized as part of the change packages
Method Detail

getOverlayImage

public org.eclipse.jface.resource.ImageDescriptor getOverlayImage(AbstractOperation operation)
Get the overlay image for an operation.

Parameters:
operation - the operation
Returns:
the ImageDescriptor

getImage

public org.eclipse.swt.graphics.Image getImage(org.eclipse.jface.viewers.ILabelProvider emfProvider,
                                               AbstractOperation operation)
Get an image for the operation.

Parameters:
emfProvider - the label provider
operation - the operation
Returns:
an image

getDescription

public String getDescription(AbstractOperation op)
Returns a description for the given operation.

Parameters:
op - the operation to generate a description for
Returns:
the description for the given operation

getModelElement

public org.eclipse.emf.ecore.EObject getModelElement(ModelElementId modelElementId)
Get a model element instance from the project for the given id.

Parameters:
modelElementId - the id
Returns:
the model element instance


Copyright © 2015. All Rights Reserved.