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