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
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
*
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>