Object selectedObj = ((IStructuredSelection) _selection).getFirstElement(); if (selectedObj instanceof EORelationshipPath) { myRelationshipPath = (EORelationshipPath) selectedObj;
Object selectedObject = ((IStructuredSelection) _selection).getFirstElement(); if (selectedObject instanceof EORelationshipPath) { myRelationshipPath = (EORelationshipPath) selectedObject;
  public void selectionChanged(IAction _action, ISelection _selection) {    myRelationshipPath = null;    if (_selection instanceof IStructuredSelection) {      Object selectedObj = ((IStructuredSelection) _selection).getFirstElement();      if (selectedObj instanceof EORelationshipPath) {        myRelationshipPath = (EORelationshipPath) selectedObj;      }    }  }