private void updateCallBlock(final CallNode node, final ListEntry entry) {

    final TransactionalEditingDomain editingDomain =
        TransactionUtil.getEditingDomain(diagramEditPart.getModel());

    AbstractTransactionalCommand command =
        new AbstractTransactionalCommand(editingDomain, "Update CallNode", Collections.EMPTY_LIST) {
          protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info)
              throws ExecutionException {

            String startNode = entry.getMessage();
            ListEntry parent = entry.getParent();
            String callFlow = parent.getMessage() + "-" + startNode;
            node.setName(callFlow.substring(callFlow.lastIndexOf("-") + 1));
            node.setFlowName(callFlow);

            return CommandResult.newOKCommandResult();
          }
        };

    try {
      OperationHistoryFactory.getOperationHistory()
          .execute(command, new SubProgressMonitor(new NullProgressMonitor(), 1), null);
    } catch (ExecutionException e) {
      Neuro4jDiagramEditorPlugin.getInstance()
          .logError("Unable to update call node", e); // $NON-NLS-1$
    }
  }
 /**
  * {@inheritDoc}
  *
  * @see org.eclipse.jface.viewers.ColumnLabelProvider#getImage(java.lang.Object)
  */
 @Override
 public Image getImage(Object element) {
   Image result = null;
   if (columnIndex == 0 && diagramPart != null) {
     final DiagramEditPart diaEditPart = diagramPart.getDiagramEditPart();
     final Object obj = diaEditPart.getModel();
     if (obj instanceof View) {
       final EObject designerElement = ((View) obj).getElement();
       if (designerElement instanceof DDiagram) {
         final List<Layer> activatedLayers = ((DDiagram) designerElement).getActivatedLayers();
         Image img = null;
         if (EqualityHelper.contains(activatedLayers, (EObject) element)) {
           img = DiagramUIPlugin.getPlugin().getBundledImage(DiagramImagesPath.ACTIVE_LAYER_ICON);
         } else {
           img =
               DiagramUIPlugin.getPlugin().getBundledImage(DiagramImagesPath.INACTIVE_LAYER_ICON);
         }
         result = img;
       }
     }
   } else if (columnIndex == 1) {
     if (element instanceof Layer) {
       Layer layer = (Layer) element;
       if (!StringUtil.isEmpty(layer.getIcon())) {
         result = ImageProvider.getImageFromPath(layer.getIcon());
       }
     }
   }
   return result;
 }