void showAndLogError(String message, Exception e) {
   IStatus status = new Status(IStatus.ERROR, JEViewPlugin.getPluginId(), 0, message, e);
   JEViewPlugin.log(status);
   ErrorDialog.openError(getSite().getShell(), "JavaElement View", null, status); // $NON-NLS-1$
 }
 private IJavaModel getJavaModel() {
   return JavaCore.create(JEViewPlugin.getWorkspace().getRoot());
 }
 void showAndLogError(String message, CoreException e) {
   JEViewPlugin.log(message, e);
   ErrorDialog.openError(
       getSite().getShell(), "JavaElement View", message, e.getStatus()); // $NON-NLS-1$
 }