int index = e.getCells().length; Object lastModified = e.getCells()[index - 1]; if(lastModified instanceof WorkflowCell || lastModified instanceof WorkflowEdge)
Object lastAdded = null; for(int i = e.getCells().length-1; i >= 0; i--) { if(e.isAddedCell(i)) { lastAdded = e.getCells()[i]; break; } } if(lastAdded instanceof WorkflowCell || lastAdded instanceof WorkflowEdge)
  public void valueChanged(GraphSelectionEvent e)  {    int index = e.getCells().length;    Object lastModified = e.getCells()[index - 1];    if(lastModified instanceof WorkflowCell || lastModified instanceof WorkflowEdge)    {      if(e.isAddedCell(index - 1))      {        showDetails(lastModified);      }    }    else if(lastModified != null)    {      log.debug("unhandled selection:" + lastModified.getClass());    }  }