Merged refactoring from development branch.
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / editor / EditorUtil.java
index ed249d9420501f13c7c56debb0dcbedb65980c5c..a781c7afe926cdaebf0ce6295053184625eacffc 100644 (file)
@@ -29,10 +29,10 @@ import org.eclipse.ui.handlers.HandlerUtil;
 import eu.etaxonomy.taxeditor.editor.internal.TaxeditorEditorPlugin;
 import eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyEditor;
 import eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyEditorInput;
-import eu.etaxonomy.taxeditor.editor.view.AbstractCdmDataViewer;
-import eu.etaxonomy.taxeditor.editor.view.detail.DetailsViewPart;
-import eu.etaxonomy.taxeditor.editor.view.supplementaldata.SupplementalDataViewPart;
 import eu.etaxonomy.taxeditor.model.AbstractUtility;
+import eu.etaxonomy.taxeditor.view.AbstractCdmDataViewer;
+import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart;
+import eu.etaxonomy.taxeditor.view.supplementaldata.SupplementalDataViewPart;
 
 /**
  * Utility for the editor package
@@ -163,15 +163,6 @@ public class EditorUtil extends AbstractUtility{
                return taxonEditors;
        }
        
-       /**
-        * <p>getActiveEditor</p>
-        *
-        * @return a {@link org.eclipse.ui.IEditorPart} object.
-        */
-       public static IEditorPart getActiveEditor(){
-               return getActivePage() != null ? getActivePage().getActiveEditor() : null;
-       }
-       
        /**
         * Returns the currently active taxon editor
         *
@@ -251,46 +242,7 @@ public class EditorUtil extends AbstractUtility{
                        editor.doSave(EditorUtil.getMonitor());
                }
                return true;
-       }
-       
-       /**
-        * <p>getDetailsView</p>
-        *
-        * @return a {@link eu.etaxonomy.taxeditor.editor.view.detail.DetailsViewPart} object.
-        */
-       public static DetailsViewPart getDetailsView(){
-               return  (DetailsViewPart) EditorUtil.getView(DetailsViewPart.ID, false);
-       }
-       
-       /**
-        * <p>refreshDetailsViewer</p>
-        */
-       public static void refreshDetailsViewer(){
-               if(getDetailsView() != null){
-                       ((AbstractCdmDataViewer) getDetailsView().getViewer()).refresh();
-               }
-       }
-       
-       /**
-        * <p>reflowDetailsViewer</p>
-        */
-       public static void reflowDetailsViewer(){
-               if(getDetailsView() != null){
-                       ((AbstractCdmDataViewer) getDetailsView().getViewer()).reflow();
-               }
-       }
-       
-       public static SupplementalDataViewPart getSupplementalDataView(){
-               return (SupplementalDataViewPart) EditorUtil.getView(SupplementalDataViewPart.ID, false);
-       }
-       
-       public static void reflowSupplementalViewer(){
-               if(getSupplementalDataView() != null){
-                       ((AbstractCdmDataViewer) getSupplementalDataView().getViewer()).reflow();
-               }
-       }
-       
-       
+       }       
        
        /**
         * <p>getSelection</p>