- added missing @Override
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / dataimport / DataImportEditor.java
index ade771dc047acf51cc4be31fa65f55a487b0df0f..9cf41e4d99770e6b5a4c7da6e22002412920e257 100644 (file)
@@ -82,6 +82,7 @@ IConversationEnabled, IPartContentHasDetails, IPartContentHasSupplementalData, I
      */
     @Override
     public void setFocus() {
+        tableViewer.getControl().setFocus();
         //make sure to bind again if maybe in another view the conversation was unbound
         if(!conversation.isBound()){
             conversation.bind();
@@ -162,7 +163,7 @@ IConversationEnabled, IPartContentHasDetails, IPartContentHasSupplementalData, I
      */
     @Override
     public void workbenchShutdown(IMemento memento, IProgressMonitor monitor) {
-        if(conversation!=null &&!conversation.isClosed()) {
+        if(conversation!=null && conversation.isBound() && !conversation.isClosed()) {
             conversation.close();
         }
     }