/**
  * Returns the element contained in the EditorInput
  *
  * @param input the editor input
  * @return the input element
  */
 Object getElementOfInput(IEditorInput input) {
   if (input instanceof IFileEditorInput) return ((IFileEditorInput) input).getFile();
   if (input != null) return DLTKUIPlugin.getEditorInputModelElement(input);
   return null;
 }