myModel = null; if (_selection instanceof IStructuredSelection) { Object selectedObject = ((IStructuredSelection) _selection).getFirstElement(); if (selectedObject instanceof EOModel) { myModel = (EOModel) selectedObject; } else if (selectedObject instanceof IEOEntityRelative) { myModel = ((IEOEntityRelative) selectedObject).getEntity().getModel(); } }
  public void selectionChanged(IAction _action, ISelection _selection) {    // DO NOTHING  }