cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Mon, 18 Jan 2021 16:26:52 +0000 (17:26 +0100)
committerAndreas Müller <a.mueller@bgbm.org>
Mon, 18 Jan 2021 16:27:18 +0000 (17:27 +0100)
82 files changed:
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/IBulkEditorConstants.java
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/IBulkEditorSortProvider.java
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/NameRelationshipEditorInput.java
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/operation/SetMarkerFlagOperation.java
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/preference/BulkEditorGeneralPreferencePage.java
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/preference/BulkEditorMarkerPreferencePage.java
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/session/ICdmEntitySessionEnabled.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/ChooseFromMultipleTaxonNodesDialog.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/EditorUtil.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/IPolytomousKeyEditorPage.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/PolytomousKeyGraphContentProvider.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/PolytomousKeyLabelProvider.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/PolytomousKeyListContentProvider.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/PolytomousKeyListLabelProvider.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/e4/handler/DeleteNodeHandlerE4.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/IContainerConstants.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/LineBreakListener.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/LineWrapSupport.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/ChecklistEditorComparator.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/edit/CdmComboBoxViewerCellEditor.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/ConceptContentProvider.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/ConceptLabelProvider.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptionElementDragListener.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptionElementDropAdapter.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptionElementTransfer.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptiveViewerSorter.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/operation/AddDerivedUnitFacadeMediaOperation.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/operation/DeleteDescriptionElementOperation.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/operation/DeleteSpecimenDescriptionOperation.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/operation/DeleteTaxonDescriptionOperation.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/operation/DeleteTaxonNameDescriptionOperation.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/operation/MoveDescriptionElementsOperation.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/handler/MoveImageDownInListHandler.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/handler/MoveImageUpInListHandler.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/operation/MoveMediaInListOperation.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/uses/UsesContentProvider.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/uses/operation/CreateUseRecordOperation.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/uses/operation/CreateUseSummaryOperation.java
eu.etaxonomy.taxeditor.editor/src/test/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeConceptRelationshipTypeOperationTest.java
eu.etaxonomy.taxeditor.editor/src/test/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeConceptToSynonymOperationTest.java
eu.etaxonomy.taxeditor.editor/src/test/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeHomotypicGroupOperationTest.java
eu.etaxonomy.taxeditor.editor/src/test/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeHomotypicalGroupBasionymOperationTest.java
eu.etaxonomy.taxeditor.editor/src/test/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeSynonymToConceptOperationTest.java
eu.etaxonomy.taxeditor.editor/src/test/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeSynonymToMisapplicationOperationTest.java
eu.etaxonomy.taxeditor.editor/src/test/java/eu/etaxonomy/taxeditor/editor/name/operation/CreateConceptRelationOperationTest.java
eu.etaxonomy.taxeditor.editor/src/test/java/eu/etaxonomy/taxeditor/editor/name/operation/CreateSynonymInNewGroupOperationTest.java
eu.etaxonomy.taxeditor.editor/src/test/java/eu/etaxonomy/taxeditor/editor/name/operation/DeleteConceptRelationOperationTest.java
eu.etaxonomy.taxeditor.editor/src/test/java/eu/etaxonomy/taxeditor/editor/name/operation/DeleteDescriptionElementOperationTest.java
eu.etaxonomy.taxeditor.editor/src/test/java/eu/etaxonomy/taxeditor/editor/name/operation/DeleteMisapplicationOperationTest.java
eu.etaxonomy.taxeditor.local/src/main/java/eu/etaxonomy/taxeditor/local/datasource/wizard/CdmDataSourceCredentialsWizardPage.java
eu.etaxonomy.taxeditor.local/src/main/java/eu/etaxonomy/taxeditor/local/datasource/wizard/CdmDataSourceSQLServerWizardPage.java
eu.etaxonomy.taxeditor.local/src/main/java/eu/etaxonomy/taxeditor/local/datasource/wizard/CdmDataSourceTypeSelectionWizardPage.java
eu.etaxonomy.taxeditor.local/src/main/java/eu/etaxonomy/taxeditor/local/datasource/wizard/CdmDataSourceWizard.java
eu.etaxonomy.taxeditor.local/src/main/java/eu/etaxonomy/taxeditor/local/view/datasource/CdmMetaDataAwareDataSourceContainer.java
eu.etaxonomy.taxeditor.local/src/main/java/eu/etaxonomy/taxeditor/local/view/datasource/handler/DataSourceMenuPropertyTester.java
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/operation/CreateTaxonNode.java
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/search/SearchBar.java
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/PrintUtil.java
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/internal/PrintpublisherPlugin.java
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/wizard/AbstractPublishWizardPage.java
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/wizard/DirectPublishingWizard.java
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/wizard/PublishWizardODF.java
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/wizard/PublishWizardPDF.java
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/wizard/PublishWizardTaxPub.java
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/wizard/PublishWizardXML.java
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/wizard/SelectDirectoryWizardPage.java
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/wizard/SelectFeatureTreeWizardPage.java
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/wizard/SelectOptionsWizardPage.java
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/wizard/SelectServiceWizardPage.java
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/wizard/SelectTaxaWizardPage.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/operation/AddFeatureOperation.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/operation/AddOntologyTermOperation.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/operation/CreateFeatureTreeOperation.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/operation/MoveFeatureOperation.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/operation/AbstractDescriptionPostOperation.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/operation/AbstractPostOperation.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/operation/AbstractPostTaxonOperation.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/LanguageEditorPreferencePage.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/operation/DeleteTypeDesignationOperation.java
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/operation/BaseOperationTest.java
eu.etaxonomy.taxeditor.workbench/src/main/java/eu/etaxonomy/taxeditor/workbench/OpenExternalAboutPlatformHandler.java
eu.etaxonomy.taxeditor.workbench/src/main/java/eu/etaxonomy/taxeditor/workbench/OpenExternalParserHelpHandler.java

index 149f93ef4e3c7852cc127532e48059211c34537a..04eecd3a20d932fab0bdf9d43197caa45a3a7625 100644 (file)
@@ -6,18 +6,16 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.bulkeditor;
 
-
 /**
  * <p>IBulkEditorConstants interface.</p>
  *
  * @author p.ciardelli
  * @created 03.07.2009
- * @version 1.0
  */
 public interface IBulkEditorConstants {
+       
        /** Constant <code>TYPE_MERGE_TARGET="merge_target_annotation"</code> */
        public static final String TYPE_MERGE_TARGET = "merge_target_annotation";
        /** Constant <code>TYPE_MERGE_CANDIDATE="merge_candidate_annotation"</code> */
@@ -31,4 +29,4 @@ public interface IBulkEditorConstants {
        public static final String DYNAMIC_OPEN_OBJECT_ID = "taxeditor-bulkeditor.dynamicnewobjectcommand";
        /** Constant <code>DYNAMIC_DELETE_OBJECT_ID="taxeditor-bulkeditor.dynamicdeleteobjec"{trunked}</code> */
        public static final String DYNAMIC_DELETE_OBJECT_ID = "taxeditor-bulkeditor.dynamicdeleteobjectcommand";
-}
+}
\ No newline at end of file
index 3c9798d36a8449bf0df874d6e3700d32291ad1cd..d54758a8c15e5b60fe936c585ed9f8bb115aeb7c 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.bulkeditor;
 
 import java.util.Comparator;
@@ -16,16 +15,12 @@ import java.util.Set;
 /**
  * @author n.hoffmann
  * @created Dec 14, 2010
- * @version 1.0
  */
 public interface IBulkEditorSortProvider<T> {
 
-       /**
-        * 
-        */
        public Map<String, Comparator<T>> getComparators();     
        
        public Set<String> getComparatorNames();
        
        public Comparator<T> getComparatorByName(String name);
-}
+}
\ No newline at end of file
index 5673019d83a5e01312340f3afef122b67f009771..60d6b698b82c7ad35ed5793031cbbc78b7d778eb 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.bulkeditor.input;
 
 import java.util.ArrayList;
@@ -24,12 +23,9 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
 /**
  * @author n.hoffmann
  * @created Oct 19, 2010
- * @version 1.0
  */
 public class NameRelationshipEditorInput extends AbstractBulkEditorInput<NameRelationship> {
 
-       private static final long serialVersionUID = -7453923697752787687L;
-
        public static final String ID = "bulkeditor.input.nameRelationship";
 
        private static NameRelationshipEditorInput instance;
@@ -102,5 +98,4 @@ public class NameRelationshipEditorInput extends AbstractBulkEditorInput<NameRel
     public void merge() {
 
     }
-
-}
+}
\ No newline at end of file
index 4c30e13fb595c242560211a73e622e8c711a8661..aaa7a234a7822e670359aecb3fa782d9f9fdfa96 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.bulkeditor.operation;
 
 import java.util.Set;
@@ -26,7 +25,6 @@ import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
 /**
  * @author n.hoffmann
  * @created Dec 13, 2010
- * @version 1.0
  */
 public class SetMarkerFlagOperation extends AbstractPostTaxonOperation {
 
@@ -34,11 +32,6 @@ public class SetMarkerFlagOperation extends AbstractPostTaxonOperation {
        private MarkerType markerType;
        private boolean value;
 
-       /**
-        * @param label
-        * @param undoContext
-        * @param postOperationEnabled
-        */
        public SetMarkerFlagOperation(String label, IUndoContext undoContext,
                        Set<IAnnotatableEntity> annotatableEntities, MarkerType markerType, boolean value,
                        IPostOperationEnabled postOperationEnabled) {
@@ -48,9 +41,6 @@ public class SetMarkerFlagOperation extends AbstractPostTaxonOperation {
                this.value = value;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
        @Override
        public IStatus execute(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -64,18 +54,12 @@ public class SetMarkerFlagOperation extends AbstractPostTaxonOperation {
                return postExecute(null);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
        @Override
        public IStatus redo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
                return execute(monitor, info);
        }
-
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
+       
        @Override
        public IStatus undo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -87,5 +71,4 @@ public class SetMarkerFlagOperation extends AbstractPostTaxonOperation {
                
                return postExecute(null);
        }
-
-}
+}
\ No newline at end of file
index c75e94cac608640ee9cebed142319fe8f7819512..925cd2c69e3629d1b4f99043e72af807ee613e8c 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.bulkeditor.preference;
 
 import org.eclipse.jface.preference.BooleanFieldEditor;
@@ -19,7 +18,6 @@ import eu.etaxonomy.taxeditor.preference.menu.FieldEditorPreferencePageE4;
 /**
  * @author n.hoffmann
  * @created Dec 13, 2010
- * @version 1.0
  */
 public class BulkEditorGeneralPreferencePage extends FieldEditorPreferencePageE4 {
 
@@ -29,5 +27,4 @@ public class BulkEditorGeneralPreferencePage extends FieldEditorPreferencePageE4
                 Messages.BulkEditorGeneralPreferencePage,
                 getFieldEditorParent()));
     }
-
-}
+}
\ No newline at end of file
index 0c0d8786708bf0c07355a9f74c9dfd45e21eac37..18ba123bfcdfdf8dfa0da4a24396870ac11fd8af 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.bulkeditor.preference;
 
 import org.eclipse.jface.preference.BooleanFieldEditor;
@@ -21,11 +20,9 @@ import eu.etaxonomy.taxeditor.store.TermStore;
 /**
  * @author p.ciardelli
  * @created 17.08.2009
- * @version 1.0
  */
 public class BulkEditorMarkerPreferencePage extends FieldEditorPreferencePageE4 {
 
-
     @Override
     protected void createFieldEditors() {
         if(CdmStore.isActive()){
@@ -37,4 +34,4 @@ public class BulkEditorMarkerPreferencePage extends FieldEditorPreferencePageE4
         }
 
     }
-}
+}
\ No newline at end of file
index 4dfb84a8cf9d1e5fee8c7d1f801e950bf42e0a2a..dde25175c537d563eb3926e61f37d36ca0f3f6ca 100644 (file)
@@ -13,8 +13,9 @@ import java.util.List;
 import java.util.Map;
 
 import eu.etaxonomy.cdm.model.common.CdmBase;
+import eu.etaxonomy.cdm.model.common.ICdmBase;
 
-public interface ICdmEntitySessionEnabled<T extends CdmBase> {
+public interface ICdmEntitySessionEnabled<T extends ICdmBase> {
 
     public ICdmEntitySession getCdmEntitySession();
 
index 3cef27580de37047ac1a5ef5b15a4c6fc4061306..a28be226d741090e231ed6396a10cacfc612d7bd 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor;
 
 import java.util.ArrayList;
@@ -29,7 +28,6 @@ import eu.etaxonomy.taxeditor.editor.l10n.Messages;
  *
  * @author n.hoffmann
  * @created 19.03.2009
- * @version 1.0
  */
 public class ChooseFromMultipleTaxonNodesDialog extends ListDialog {
 
@@ -71,7 +69,7 @@ public class ChooseFromMultipleTaxonNodesDialog extends ListDialog {
                public Object[] getElements(Object inputElement) {
                        Set<TaxonNode> taxonNodes = (Set<TaxonNode>) inputElement;
                                
-                               List<Classification> classifications = new ArrayList<Classification>(); 
+                               List<Classification> classifications = new ArrayList<>(); 
                                
                                for(TaxonNode node : taxonNodes){
                                        classifications.add(node.getClassification());
@@ -90,4 +88,4 @@ public class ChooseFromMultipleTaxonNodesDialog extends ListDialog {
                        
                }               
        }
-}
+}
\ No newline at end of file
index 695c5f684b277ce6e8ea9f89c5f3df339ec69137..9b9bd9f1a36c7a409220204083a7fb91d4e085f2 100644 (file)
@@ -6,7 +6,6 @@
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
-
 package eu.etaxonomy.taxeditor.editor;
 
 import java.util.Collection;
@@ -66,7 +65,6 @@ import eu.etaxonomy.taxeditor.workbench.part.IE4SavablePart;
  *
  * @author n.hoffmann
  * @created 20.01.2009
- * @version 1.0
  */
 public class EditorUtil extends AbstractUtility {
 
@@ -236,7 +234,6 @@ public class EditorUtil extends AbstractUtility {
             }
         }
 
-
         Collection<MPart> parts = partService.getParts();
         //check if part is already opened
         for (MPart part : parts) {
@@ -266,8 +263,6 @@ public class EditorUtil extends AbstractUtility {
             showMedia(modelService, partService);
             mediaVisible = false;
         }
-
-
     }
 
     public static void showMedia(EModelService modelService, EPartService partService) {
@@ -527,7 +522,6 @@ public class EditorUtil extends AbstractUtility {
         }
     }
 
-
     public static void closeObsoleteDescriptiveDatasetEditor(UUID datasetUuid, EPartService partService){
 
         Collection<MPart> parts = partService.getParts();
@@ -547,7 +541,6 @@ public class EditorUtil extends AbstractUtility {
         }
     }
 
-
     public static void closePart(String partID, EPartService partService){
 
         Collection<MPart> parts = partService.getParts();
@@ -567,5 +560,4 @@ public class EditorUtil extends AbstractUtility {
                editor.init(input);
         }
     }
-
-}
+}
\ No newline at end of file
index 8444e3a866f21a5af77fc4839850d73f86cf3f2b..9f1a0b444404657f4a11a2f83bdcecdc9d443730 100644 (file)
@@ -6,7 +6,6 @@
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
-
 package eu.etaxonomy.taxeditor.editor.key.polytomous;
 
 import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
@@ -14,8 +13,7 @@ import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
 /**
  * @author n.hoffmann
  * @created Apr 20, 2011
- * @version 1.0
  */
 public interface IPolytomousKeyEditorPage extends IPostOperationEnabled {
 
-}
+}
\ No newline at end of file
index 8fdae73ce74d023c4fc1dd2a268e04b8e0fceb14..b8d99052c3739d85f443925759b76671c761e302 100644 (file)
@@ -6,7 +6,6 @@
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
-
 package eu.etaxonomy.taxeditor.editor.key.polytomous;
 
 import java.util.ArrayList;
@@ -21,10 +20,8 @@ import eu.etaxonomy.taxeditor.editor.l10n.Messages;
 import eu.etaxonomy.taxeditor.model.PolytomousKeyRelationship;
 
 /**
- *
  * @author n.hoffmann
  * @created Mar 30, 2011
- * @version 1.0
  */
 public class PolytomousKeyGraphContentProvider implements IGraphContentProvider {
 
@@ -81,5 +78,4 @@ public class PolytomousKeyGraphContentProvider implements IGraphContentProvider
        public Object getDestination(Object relationship) {
                return ((PolytomousKeyRelationship) relationship).getDestination();
        }
-
-}
+}
\ No newline at end of file
index 069b08036826cf7cd3283ae0f89bb038bb6cfba0..971d871469fc7aff72735d60372ae0f7c0678752 100644 (file)
@@ -6,7 +6,6 @@
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
-
 package eu.etaxonomy.taxeditor.editor.key.polytomous;
 
 import java.util.Map;
@@ -30,7 +29,6 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  *
  * @author n.hoffmann
  * @created Mar 30, 2011
- * @version 1.0
  */
 public class PolytomousKeyLabelProvider extends LabelProvider implements
                IEntityStyleProvider {
@@ -95,105 +93,49 @@ public class PolytomousKeyLabelProvider extends LabelProvider implements
                return EMPTY;
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * org.eclipse.zest.core.viewers.IEntityStyleProvider#fisheyeNode(java.lang
-        * .Object)
-        */
        @Override
        public boolean fisheyeNode(Object arg0) {
                // TODO Auto-generated method stub
                return false;
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * org.eclipse.zest.core.viewers.IEntityStyleProvider#getBackgroundColour
-        * (java.lang.Object)
-        */
        @Override
        public Color getBackgroundColour(Object arg0) {
                // TODO Auto-generated method stub
                return null;
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * org.eclipse.zest.core.viewers.IEntityStyleProvider#getBorderColor(java
-        * .lang.Object)
-        */
        @Override
        public Color getBorderColor(Object arg0) {
                // TODO Auto-generated method stub
                return null;
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * org.eclipse.zest.core.viewers.IEntityStyleProvider#getBorderHighlightColor
-        * (java.lang.Object)
-        */
        @Override
        public Color getBorderHighlightColor(Object arg0) {
                // TODO Auto-generated method stub
                return null;
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * org.eclipse.zest.core.viewers.IEntityStyleProvider#getBorderWidth(java
-        * .lang.Object)
-        */
        @Override
        public int getBorderWidth(Object arg0) {
                return 0;
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * org.eclipse.zest.core.viewers.IEntityStyleProvider#getForegroundColour
-        * (java.lang.Object)
-        */
        @Override
        public Color getForegroundColour(Object arg0) {
                // TODO Auto-generated method stub
                return null;
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * org.eclipse.zest.core.viewers.IEntityStyleProvider#getNodeHighlightColor
-        * (java.lang.Object)
-        */
        @Override
        public Color getNodeHighlightColor(Object arg0) {
                // TODO Auto-generated method stub
                return null;
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * org.eclipse.zest.core.viewers.IEntityStyleProvider#getTooltip(java.lang
-        * .Object)
-        */
        @Override
        public IFigure getTooltip(Object arg0) {
                return null;
        }
-}
+}
\ No newline at end of file
index 52e84529d8395576560e6aacc3f980cc71066469..01452c5523dd2fb8a52e776f59da08a4635a957b 100644 (file)
@@ -6,7 +6,6 @@
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
-
 package eu.etaxonomy.taxeditor.editor.key.polytomous;
 
 import java.util.ArrayList;
@@ -21,38 +20,18 @@ import eu.etaxonomy.cdm.model.description.PolytomousKeyNode;
 /**
  * @author n.hoffmann
  * @created Apr 4, 2011
- * @version 1.0
  */
 public class PolytomousKeyListContentProvider implements
                IStructuredContentProvider {
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see org.eclipse.jface.viewers.IContentProvider#dispose()
-        */
        @Override
        public void dispose() {
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface
-        * .viewers.Viewer, java.lang.Object, java.lang.Object)
-        */
        @Override
        public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java
-        * .lang.Object)
-        */
        @Override
        public Object[] getElements(Object inputElement) {
                if (inputElement instanceof PolytomousKeyEditorInput) {
@@ -80,4 +59,4 @@ public class PolytomousKeyListContentProvider implements
                        }
                }
        }
-}
+}
\ No newline at end of file
index 8e865047b105f855cdc295ca99629f9797d04a39..cff206b25b9b24b40840d4bda6267670260fd0b6 100644 (file)
@@ -6,7 +6,6 @@
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
-
 package eu.etaxonomy.taxeditor.editor.key.polytomous;
 
 import java.util.Map;
@@ -33,7 +32,6 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
 /**
  * @author n.hoffmann
  * @created Apr 18, 2011
- * @version 1.0
  */
 public class PolytomousKeyListLabelProvider extends StyledCellLabelProvider {
 
@@ -209,5 +207,4 @@ public class PolytomousKeyListLabelProvider extends StyledCellLabelProvider {
        private boolean isParentRoot(PolytomousKeyNode node) {
                return getParent(node) == null;
        }
-
-}
+}
\ No newline at end of file
index 641d8b2b175bedafec831d79abdc922fdad9da49..3e726b6db9666872e2737790396ec73926e7de60 100644 (file)
@@ -35,7 +35,6 @@ import eu.etaxonomy.taxeditor.operation.e4.RemotingCdmHandlerE4;
 /**
  * @author n.hoffmann
  * @created Dec 6, 2010
- * @version 1.0
  */
 public class DeleteNodeHandlerE4 extends RemotingCdmHandlerE4 {
 
@@ -136,9 +135,6 @@ public class DeleteNodeHandlerE4 extends RemotingCdmHandlerE4 {
     public void onComplete() {
     }
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     protected Object getTrigger() {
         return this;
@@ -152,5 +148,4 @@ public class DeleteNodeHandlerE4 extends RemotingCdmHandlerE4 {
         menuItem.setVisible(canExecute);
         return canExecute;
     }
-
 }
\ No newline at end of file
index 550ec6f7e60a297aab11260375735dcc3cc12e62..ae606c645ebc0911970f4d66011b93d88ef1cca3 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.name.container;
 
 import org.eclipse.swt.graphics.Image;
@@ -17,12 +16,9 @@ import eu.etaxonomy.taxeditor.model.ImageResources;
 /**
  * @author n.hoffmann
  * @created Jan 20, 2011
- * @version 1.0
  */
 public interface IContainerConstants {
-       /**
-        *
-        */
+
        public static final int SELECTED_FOCUS = 1;
        /** Constant <code>SELECTED_NO_FOCUS=2</code> */
        public static final int SELECTED_NO_FOCUS = 2;
index 969e7ae7b9482ea54618ac22055555198a6a03e5..f47fbbeed4c6315e32d38e82ccd4e45dbc95d479 100644 (file)
@@ -6,15 +6,11 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.name.container;
 
-import java.util.ArrayList;
-import java.util.Collection;
 import java.util.Scanner;
 
 import org.eclipse.swt.custom.StyledText;
-import org.eclipse.swt.events.KeyListener;
 import org.eclipse.swt.events.VerifyEvent;
 import org.eclipse.swt.events.VerifyListener;
 
@@ -42,12 +38,9 @@ import org.eclipse.swt.events.VerifyListener;
  *
  * @author p.ciardelli
  * @created 19.05.2008
- * @version 1.0
  */
-
 public abstract class LineBreakListener implements VerifyListener{
 
-
        private static String LINE_BREAK = System.getProperty("line.separator"); //$NON-NLS-1$
        
        
@@ -108,4 +101,4 @@ public abstract class LineBreakListener implements VerifyListener{
         * @param text a {@link java.lang.String} object.
         */
        abstract public void handleSplitText(String text);
-}
+}
\ No newline at end of file
index ec83e5f59cc787ae378fac2f606f87cbc7957c51..670ca6c319da0ad6c11669c7af47253087233c77 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.name.container;
 
 import org.apache.log4j.Logger;
@@ -27,7 +26,6 @@ import org.eclipse.ui.forms.widgets.ScrolledForm;
  *
  * @author p.ciardelli
  * @created 19.05.2008
- * @version 1.0
  */
 public class LineWrapSupport {
        private static final Logger logger = Logger
@@ -84,7 +82,6 @@ public class LineWrapSupport {
         * 
         * @author p.ciardelli
         * @created 21.05.2008
-        * @version 1.0
         */
        class LineWrapListener implements ModifyListener {
 
@@ -92,4 +89,4 @@ public class LineWrapSupport {
                        checkLineCount();
                }
        }
-}
+}
\ No newline at end of file
index 0cb60348c3ad622c4746976a9c3db15a0934757c..e65ac197c54643748003aa42a51d348e93c655ed 100755 (executable)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.view.checklist;
 
 import org.eclipse.jface.viewers.Viewer;
@@ -17,7 +16,6 @@ import eu.etaxonomy.cdm.model.taxon.Taxon;
 /**
  * @author a.oppermann
  * @created 30.04.2014
- * @version 1.0
  */
 public class ChecklistEditorComparator extends ViewerComparator {
 
@@ -42,9 +40,6 @@ public class ChecklistEditorComparator extends ViewerComparator {
                }
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.viewers.ViewerComparator#compare(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
-        */
        @Override
        public int compare(Viewer viewer, Object e1, Object e2) {
          Taxon d1 = (Taxon) e1;
@@ -64,4 +59,4 @@ public class ChecklistEditorComparator extends ViewerComparator {
                }
                return result;
        }
-}
+}
\ No newline at end of file
index d8e4ffaddaa76c0a769f753e1b3ac004b5cb1799..3f34fa898651df0522d49c1663e62a52efe79acb 100755 (executable)
@@ -1,3 +1,11 @@
+/**
+* Copyright (C) 2007 EDIT
+* European Distributed Institute of Taxonomy
+* http://www.e-taxonomy.eu
+*
+* The contents of this file are subject to the Mozilla Public License Version 1.1
+* See LICENSE.TXT at the top of this package for the full license terms.
+*/
 package eu.etaxonomy.taxeditor.editor.view.checklist.edit;
 
 import org.eclipse.e4.ui.model.application.ui.basic.MPart;
@@ -13,14 +21,11 @@ import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
  *
  * @author k.luther
  * @created 26.09.2017
- * @version 1.0
  */
 public class CdmComboBoxViewerCellEditor extends ComboBoxViewerCellEditor implements ISelectionListener, IPartContentHasDetails{
 
-       
        public CdmComboBoxViewerCellEditor(Composite parent, int style) {
                super(parent, style);
-               
        }
 
        @Override
@@ -28,5 +33,4 @@ public class CdmComboBoxViewerCellEditor extends ComboBoxViewerCellEditor implem
                System.out.println(selection.toString());
                
        }
-
-}
+}
\ No newline at end of file
index 1a7834a95ede66d53b392c8c8420ac7345567018..016a1cc3285cb659c50c05ce97b273102faea153 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.view.concept;
 
 import java.util.HashMap;
@@ -22,7 +21,6 @@ import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType;
 /**
  * @author n.hoffmann
  * @created Jan 24, 2011
- * @version 1.0
  */
 public class ConceptContentProvider implements IStructuredContentProvider {
 
@@ -54,5 +52,4 @@ public class ConceptContentProvider implements IStructuredContentProvider {
                }
                return new Object[0];
        }
-
-}
+}
\ No newline at end of file
index 4bcecf9e3f25afe7467177f7e5e95f94cf92b217..daa5ab54c870248f997fcbe34df569eb275ec028 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.view.concept;
 
 import java.util.Map.Entry;
@@ -24,8 +23,6 @@ import eu.etaxonomy.taxeditor.model.TaxonRelationshipTypeInverseContainer;
 
 /**
  * @author n.hoffmann
- * @created Jan 24, 2011
- * @version 1.0
  */
 public class ConceptLabelProvider extends LabelProvider implements IStyledLabelProvider {
 
index c11d0c582d6ba5a7218a11853815daaca3480fa5..b545754c64269d0eb0fbe61a64f2be4c9774bdde 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.view.descriptive;
 
 import java.util.ArrayList;
@@ -26,12 +25,11 @@ import eu.etaxonomy.taxeditor.model.FeatureNodeContainer;
 /**
  * @author n.hoffmann
  * @created Feb 8, 2011
- * @version 1.0
  */
 public class DescriptionElementDragListener extends DragSourceAdapter {
 
        private FactualDataPartE4 part;
-       private DescriptionBase description;
+       private DescriptionBase<?> description;
 
        public DescriptionElementDragListener(FactualDataPartE4 part){
                this.part = part;
@@ -83,7 +81,6 @@ public class DescriptionElementDragListener extends DragSourceAdapter {
                        }
 
                }
-
        }
 
        /**
@@ -93,5 +90,4 @@ public class DescriptionElementDragListener extends DragSourceAdapter {
     public void dragStart(DragSourceEvent event) {
                event.doit = !part.getViewer().getSelection().isEmpty();
        }
-
-}
+}
\ No newline at end of file
index 88e3ca67b797c1a858895500e3102b7b65979302..9cb456f0f1f82650e7f5e3b25ac0c49159a27118 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.view.descriptive;
 
 import java.util.ArrayList;
@@ -34,24 +33,15 @@ import eu.etaxonomy.taxeditor.ui.EditViewerDropAdapter;
 /**
  * @author n.hoffmann
  * @created Feb 8, 2011
- * @version 1.0
  */
 public class DescriptionElementDropAdapter extends EditViewerDropAdapter {
 
     private static final String OPERATION_NOT_SUPPORTED_YET = Messages.DescriptionElementDropAdapter_NOT_SUPPORTED;
 
-
-
-    /**
-        * @param viewer
-        */
        public DescriptionElementDropAdapter(Viewer viewer) {
                super(viewer);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.viewers.ViewerDropAdapter#performDrop(java.lang.Object)
-        */
        @Override
        public boolean performDrop(Object data) {
                DescriptionBase target = (DescriptionBase) getCurrentTarget();
@@ -132,9 +122,6 @@ public class DescriptionElementDropAdapter extends EditViewerDropAdapter {
 
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.viewers.ViewerDropAdapter#validateDrop(java.lang.Object, int, org.eclipse.swt.dnd.TransferData)
-        */
        @Override
        public boolean validateDrop(Object target, int operation,
                        TransferData transferData) {
@@ -142,5 +129,4 @@ public class DescriptionElementDropAdapter extends EditViewerDropAdapter {
                                transferData);
                return target instanceof DescriptionBase && transferDataIsSupported;
        }
-
-}
+}
\ No newline at end of file
index 005f1199ff6435fa53fdd8887a226273b45975d1..7513d3e815198fb0b8ebce06739e0be10d87a5d7 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.view.descriptive;
 
 import java.util.UUID;
@@ -19,7 +18,6 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
 /**
  * @author n.hoffmann
  * @created Feb 8, 2011
- * @version 1.0
  */
 public class DescriptionElementTransfer extends CdmObjectTransfer<DescriptionElementBase> {
 
@@ -33,27 +31,18 @@ public class DescriptionElementTransfer extends CdmObjectTransfer<DescriptionEle
        
        private DescriptionElementTransfer(){}
        
-       /* (non-Javadoc)
-        * @see org.eclipse.swt.dnd.Transfer#getTypeIds()
-        */
        @Override
        protected int[] getTypeIds() {
                return new int[] { TYPEID };
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.swt.dnd.Transfer#getTypeNames()
-        */
        @Override
        protected String[] getTypeNames() {
                return new String[] { TYPE_NAME };
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.model.CdmObjectTransfer#loadElement(java.util.UUID)
-        */
        @Override
        public DescriptionElementBase loadElement(UUID uuid) {
                return CdmStore.getService(IDescriptionService.class).loadDescriptionElement(uuid, null);
        }
-}
+}
\ No newline at end of file
index 14c46798d7d86f55da4a2209158cde0133070a65..cf908d5847ff105c40f72e357d94089c6354d9f8 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.view.descriptive;
 
 import org.eclipse.jface.viewers.Viewer;
@@ -18,13 +17,9 @@ import eu.etaxonomy.taxeditor.model.DescriptionHelper;
 /**
  * @author n.hoffmann
  * @created Dec 2, 2010
- * @version 1.0
  */
 public class DescriptiveViewerSorter extends ViewerSorter {
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.viewers.ViewerComparator#compare(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
-        */
        @Override
        public int compare(Viewer viewer, Object e1, Object e2) {
                if((e1 instanceof DescriptionElementBase) && (e2 instanceof DescriptionElementBase)){
@@ -32,5 +27,4 @@ public class DescriptiveViewerSorter extends ViewerSorter {
                }
                return super.compare(viewer, e1, e2);
        }
-       
-}
+}
\ No newline at end of file
index ef29bffed076698158c4892c3fdb9b3e9121ecf3..97a7daf059f67a221f9f24da4474810ec0dd0a14 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.view.descriptive.operation;
 
 import org.eclipse.core.commands.ExecutionException;
@@ -30,7 +29,6 @@ import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
 /**
  * @author n.hoffmann
  * @created Feb 11, 2011
- * @version 1.0
  */
 public class AddDerivedUnitFacadeMediaOperation extends AbstractPostTaxonOperation {
 
@@ -50,9 +48,6 @@ public class AddDerivedUnitFacadeMediaOperation extends AbstractPostTaxonOperati
                this.specimen = specimen;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
        @Override
        public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
                DerivedUnitFacade facade;
@@ -84,10 +79,6 @@ public class AddDerivedUnitFacadeMediaOperation extends AbstractPostTaxonOperati
                return postExecute(specimen);
        }
 
-
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
        @Override
        public IStatus redo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -95,14 +86,10 @@ public class AddDerivedUnitFacadeMediaOperation extends AbstractPostTaxonOperati
                return null;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
        @Override
        public IStatus undo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
                // TODO Auto-generated method stub
                return null;
        }
-
-}
+}
\ No newline at end of file
index 9ee81413a730cb0377e2c2ca154e4f4f9e1c3389..6eebbbb8c379b023e9a87fed9c1f4c2db0582484 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.view.descriptive.operation;
 
 import org.eclipse.core.commands.ExecutionException;
@@ -28,12 +27,11 @@ import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
  *
  * @author p.ciardelli
  * @created 05.02.2009
- * @version 1.0
  */
 public class DeleteDescriptionElementOperation extends AbstractPostTaxonOperation {
 
        private final DescriptionElementBase element;
-       private DescriptionBase description = null;
+       private DescriptionBase<?> description = null;
 
        /**
         * <p>Constructor for DeleteDescriptionElementOperation.</p>
@@ -45,16 +43,12 @@ public class DeleteDescriptionElementOperation extends AbstractPostTaxonOperatio
         */
        public DeleteDescriptionElementOperation(String label, IUndoContext undoContext,
                        DescriptionElementBase element, IPostOperationEnabled postOperationEnabled,
-                       ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
+                       ICdmEntitySessionEnabled<DescriptionElementBase> cdmEntitySessionEnabled) {
                super(label, undoContext, postOperationEnabled, cdmEntitySessionEnabled);
 
                this.element = element;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus execute(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -75,20 +69,12 @@ public class DeleteDescriptionElementOperation extends AbstractPostTaxonOperatio
                return postExecute(description);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus redo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
                return execute(monitor, info);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus undo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -97,4 +83,4 @@ public class DeleteDescriptionElementOperation extends AbstractPostTaxonOperatio
 
                return postExecute(element);
        }
-}
+}
\ No newline at end of file
index b7cdab8299de056030b023f51bc375eff1cb83e1..d043668455530a35dfeed1ba95bacc162c28d7be 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.view.descriptive.operation;
 
 import org.eclipse.core.commands.ExecutionException;
@@ -24,12 +23,11 @@ import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 
 /**
- *
  * @author pplitzner
  * @date Jan 15, 2015
- *
  */
-public class DeleteSpecimenDescriptionOperation extends AbstractPostOperation<SpecimenOrObservationBase<?>> {
+public class DeleteSpecimenDescriptionOperation 
+               extends AbstractPostOperation<SpecimenOrObservationBase<?>> {
 
        private final SpecimenDescription description;
 
@@ -37,15 +35,11 @@ public class DeleteSpecimenDescriptionOperation extends AbstractPostOperation<Sp
                IUndoContext undoContext,
                SpecimenDescription description,
                IPostOperationEnabled postOperationEnabled,
-               ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
+               ICdmEntitySessionEnabled<SpecimenOrObservationBase<?>> cdmEntitySessionEnabled) {
                super(label, undoContext, description.getDescribedSpecimenOrObservation(), postOperationEnabled, cdmEntitySessionEnabled);
                this.description = description;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus execute(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -56,20 +50,12 @@ public class DeleteSpecimenDescriptionOperation extends AbstractPostOperation<Sp
                return postExecute(description);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus redo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
                return execute(monitor, info);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus undo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -78,4 +64,4 @@ public class DeleteSpecimenDescriptionOperation extends AbstractPostOperation<Sp
 
                return postExecute(null);
        }
-}
+}
\ No newline at end of file
index 76e00cf0579189bf095c5bf7df075f34e4bff7b0..ddfa372d31fd6f432e42945cbb5aa0bfa9878d38 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.view.descriptive.operation;
 
 import org.eclipse.core.commands.ExecutionException;
@@ -29,7 +28,6 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  * @author p.ciardelli
  * @author n.hoffmann
  * @created 05.02.2009
- * @version 1.0
  */
 public class DeleteTaxonDescriptionOperation extends AbstractPostTaxonOperation {
 
@@ -54,10 +52,6 @@ public class DeleteTaxonDescriptionOperation extends AbstractPostTaxonOperation
                element = description.getTaxon();
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus execute(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -76,20 +70,12 @@ public class DeleteTaxonDescriptionOperation extends AbstractPostTaxonOperation
 
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus redo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
                return execute(monitor, info);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus undo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -98,4 +84,4 @@ public class DeleteTaxonDescriptionOperation extends AbstractPostTaxonOperation
 
                return postExecute(null);
        }
-}
+}
\ No newline at end of file
index 035f741740b8dc5c37e003e30b9324ed2d627ba1..1d87533501313927c3e79bece732501eb1f883a9 100755 (executable)
@@ -26,27 +26,17 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
 /**
  * @author k.luther
  * @since 4 Mar 2019
- *
  */
 public class DeleteTaxonNameDescriptionOperation extends AbstractPostOperation<TaxonName> {
-    private final TaxonNameDescription description;
-    /**
-     * @param label
-     * @param undoContext
-     * @param element
-     * @param postOperationEnabled
-     * @param cdmEntitySessionEnabled
-     */
+    
+       private final TaxonNameDescription description;
+
     public DeleteTaxonNameDescriptionOperation(String label, IUndoContext undoContext, TaxonNameDescription description,
-            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
+            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled<TaxonName> cdmEntitySessionEnabled) {
         super(label, undoContext, description.getTaxonName(), postOperationEnabled, cdmEntitySessionEnabled);
         this.description = description;
-
     }
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
 
@@ -63,22 +53,15 @@ public class DeleteTaxonNameDescriptionOperation extends AbstractPostOperation<T
         return null;
     }
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     public IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
         return execute(monitor, info);
     }
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
         element.addDescription(description);
 
         return postExecute(null);
     }
-
-}
+}
\ No newline at end of file
index e446a9858a2a66a438bb9b489ffd6d28ee84c683..98803f235aad0d6e1e388170c2b2b9ba942b4f84 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.view.descriptive.operation;
 
 import java.util.Collection;
@@ -32,13 +31,12 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
 /**
  * @author n.hoffmann
  * @created Feb 8, 2011
- * @version 1.0
  */
 public class MoveDescriptionElementsOperation extends AbstractPostTaxonOperation{
 
        private Collection<DescriptionElementBase> descriptionElements;
-       private DescriptionBase targetDescription;
-       private DescriptionBase sourceDescription;
+       private DescriptionBase<?> targetDescription;
+       private DescriptionBase<?> sourceDescription;
        private IDescriptionService service;
        private UUID targetTaxonUuid;
 
@@ -47,15 +45,6 @@ public class MoveDescriptionElementsOperation extends AbstractPostTaxonOperation
        private UISynchronize sync;
        private boolean setNameInSource;
 
-       /**
-        *
-        * @param label
-        * @param undoContext
-        * @param targetDescription
-        * @param descriptionElements
-        * @param isCopy
-        * @param postOperationEnabled
-        */
        public MoveDescriptionElementsOperation(String label,
                        IUndoContext undoContext, DescriptionBase targetDescription, DescriptionBase sourceDescription,
                        Collection<DescriptionElementBase> descriptionElements, boolean isCopy,
@@ -84,9 +73,6 @@ public class MoveDescriptionElementsOperation extends AbstractPostTaxonOperation
            service = CdmStore.getService(IDescriptionService.class);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
        @Override
        public IStatus execute(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -113,9 +99,6 @@ public class MoveDescriptionElementsOperation extends AbstractPostTaxonOperation
                return postExecute(null);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
        @Override
        public IStatus redo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -123,16 +106,10 @@ public class MoveDescriptionElementsOperation extends AbstractPostTaxonOperation
                return null;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
        @Override
        public IStatus undo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
                // TODO Auto-generated method stub
                return null;
        }
-
-
-
-}
+}
\ No newline at end of file
index 9ddbb58903693483d753eff0c10584bd1aa31dbc..bfe5c1767667b8e4f990e896c5f9bd1c8d78c3a2 100644 (file)
@@ -7,13 +7,12 @@
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
 package eu.etaxonomy.taxeditor.editor.view.media.handler;
+
 import eu.etaxonomy.taxeditor.editor.view.media.operation.MoveMediaInListOperation;
 
 /**
- *
  * @author p.ciardelli
  * @created 11.08.2009
- * @version 1.0
  */
 public class MoveImageDownInListHandler extends AbstractMoveImageHandler{
 
@@ -21,5 +20,4 @@ public class MoveImageDownInListHandler extends AbstractMoveImageHandler{
     public int moveImageOperation() {
         return MoveMediaInListOperation.DOWN;
     }
-
-}
+}
\ No newline at end of file
index 07f1a9d9b1dbe71e1e86feec0a8137828939c483..f217b0cf50af8289571ed28adf065426f4f7948a 100644 (file)
@@ -11,10 +11,8 @@ package eu.etaxonomy.taxeditor.editor.view.media.handler;
 import eu.etaxonomy.taxeditor.editor.view.media.operation.MoveMediaInListOperation;
 
 /**
- *
  * @author p.ciardelli
  * @created 11.08.2009
- * @version 1.0
  */
 public class MoveImageUpInListHandler extends AbstractMoveImageHandler{
 
@@ -22,5 +20,4 @@ public class MoveImageUpInListHandler extends AbstractMoveImageHandler{
     public int moveImageOperation() {
         return MoveMediaInListOperation.UP;
     }
-
-}
+}
\ No newline at end of file
index 0123b0a8911aa8860615647e971145689e41f54b..3364c641ddcf1ea2ece8e9b5d0293c6eb181c352 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.view.media.operation;
 
 import java.util.Collections;
@@ -33,7 +32,6 @@ import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
  *
  * @author p.ciardelli
  * @created 05.02.2009
- * @version 1.0
  */
 public class MoveMediaInListOperation extends AbstractPostTaxonOperation {
 
@@ -42,7 +40,7 @@ public class MoveMediaInListOperation extends AbstractPostTaxonOperation {
        /** Constant <code>DOWN=-1</code> */
        public static final int DOWN = 1;
 
-       private DescriptionBase description;
+       private DescriptionBase<?> description;
        private Media media;
        private int direction;
 
@@ -67,10 +65,6 @@ public class MoveMediaInListOperation extends AbstractPostTaxonOperation {
                this.direction = direction;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus execute(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -83,20 +77,12 @@ public class MoveMediaInListOperation extends AbstractPostTaxonOperation {
                return postExecute(media);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus redo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
                return execute(monitor, info);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus undo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -104,7 +90,7 @@ public class MoveMediaInListOperation extends AbstractPostTaxonOperation {
                return postExecute(media);
        }
 
-       private void moveMedia(DescriptionBase description, Media media, int direction){
+       private void moveMedia(DescriptionBase<?> description, Media media, int direction){
                Set<DescriptionElementBase> elements = description.getElements();
 
                if(elements.size() != 1){
@@ -130,4 +116,4 @@ public class MoveMediaInListOperation extends AbstractPostTaxonOperation {
                        }
                }
        }
-}
+}
\ No newline at end of file
index 17c3fadf4ada3ed4310e0d58e38f00efa9f72b16..ac47d9c717d2bc3f6f5793c142d852bbef9fec73 100644 (file)
@@ -28,11 +28,10 @@ import eu.etaxonomy.taxeditor.store.UsageTermCollection;
  * The class provides the required content to the Uses View\r
  * @author a.theys\r
  * @created mar 13, 2012\r
- * @version 1.0\r
  */\r
 public class UsesContentProvider extends DescriptiveContentProvider {\r
 \r
-       Set<MarkerType> markerTypes = new HashSet<MarkerType>();\r
+       Set<MarkerType> markerTypes = new HashSet<>();\r
 \r
        /**\r
         * <p>Constructor for DescriptiveContentProvider.</p>\r
@@ -52,7 +51,7 @@ public class UsesContentProvider extends DescriptiveContentProvider {
         */\r
        @Override\r
        protected List<DescriptionBase<?>> getDescriptions(IDescribable<?> parentElement) {\r
-           List<DescriptionBase<?>> descriptions = new ArrayList<DescriptionBase<?>>();\r
+           List<DescriptionBase<?>> descriptions = new ArrayList<>();\r
            if(parentElement instanceof Taxon){\r
                Taxon taxon = (Taxon) parentElement;\r
                this.markerTypes.addAll(CdmStore.getTermManager().getPreferredTerms(MarkerType.class));\r
@@ -71,5 +70,4 @@ public class UsesContentProvider extends DescriptiveContentProvider {
            }\r
                return descriptions;\r
        }\r
-\r
-}\r
+}
\ No newline at end of file
index 97056743b8c5d93d51f7ff226e20dfca73538cc7..942b54b92e7da720e477af82ab954696a357fabd 100644 (file)
@@ -24,14 +24,12 @@ import eu.etaxonomy.cdm.model.taxon.Taxon;
 import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
 import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
 
-
 /**
  * CreateUseRecordOperation Class
  * @author a.theys
  * @created mar 13, 2012
- * @version 1.0
  */
-public class CreateUseRecordOperation extends AbstractPostOperation {
+public class CreateUseRecordOperation extends AbstractPostOperation<Taxon> {
 
        /** Constant <code>ID="eu.etaxonomy.taxeditor.editor.view.use."{trunked}</code> */
        public static final String ID = "eu.etaxonomy.taxeditor.editor.use.createUseRecord"; //$NON-NLS-1$
@@ -57,7 +55,6 @@ public class CreateUseRecordOperation extends AbstractPostOperation {
            this.feature = feature;
        }
 
-
        /**
         * <p>Constructor for CreateUseRecordOperation.</p>
         *
index ac2d6e9d98c3c2fc9c55db57cc540a36be9c5d3c..e360c2eda93f9c34e690c67982818034a52b08c8 100644 (file)
@@ -23,14 +23,12 @@ import eu.etaxonomy.cdm.model.taxon.Taxon;
 import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;\r
 import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;\r
 \r
-\r
 /**\r
  * CreateUseSummaryOperation Class\r
  * @author a.theys\r
  * @created mar 13, 2012\r
- * @version 1.0\r
  */\r
-public class CreateUseSummaryOperation extends AbstractPostOperation {\r
+public class CreateUseSummaryOperation extends AbstractPostOperation<Taxon> {\r
 \r
        public static final String ID = "eu.etaxonomy.taxeditor.editor.use.createUseRecord"; //$NON-NLS-1$\r
 \r
@@ -38,7 +36,6 @@ public class CreateUseSummaryOperation extends AbstractPostOperation {
        private final Feature feature;\r
        private DescriptionElementBase element;\r
 \r
-\r
        /**\r
         * <p>Constructor for CreateUseSummaryOperation.</p>\r
         *\r
@@ -58,35 +55,24 @@ public class CreateUseSummaryOperation extends AbstractPostOperation {
 \r
        /**\r
         * <p>Constructor for CreateUseSummaryOperation.</p>\r
-        *\r
-        * @param undoContext a {@link org.eclipse.core.commands.operations.IUndoContext} object.\r
-        * @param taxon a {@link eu.etaxonomy.cdm.model.taxon.Taxon} object.\r
-        * @param description a {@link eu.etaxonomy.cdm.model.description.TaxonDescription} object.\r
-        * @param feature a {@link eu.etaxonomy.cdm.model.description.Feature} object.\r
-        * @param element a {@link eu.etaxonomy.cdm.model.description.DescriptionElementBase} object.\r
-        * @param postOperationEnabled a {@link eu.etaxonomy.taxeditor.operation.IPostOperationEnabled} object.\r
-        * @param label a {@link java.lang.String} object.\r
         */\r
        public CreateUseSummaryOperation(String label,\r
                        IUndoContext undoContext, Taxon taxon,\r
                        TaxonDescription description, Feature feature,\r
                        DescriptionElementBase element, IPostOperationEnabled postOperationEnabled) {\r
-                       this(label, undoContext, description, feature, postOperationEnabled);\r
-\r
+                       \r
+               this(label, undoContext, description, feature, postOperationEnabled);\r
                this.element = element;\r
        }\r
 \r
-       /** {@inheritDoc} */\r
        @Override\r
        public IStatus execute(IProgressMonitor monitor, IAdaptable info)\r
                        throws ExecutionException {\r
                monitor.worked(20);\r
                if (element == null) {\r
-\r
                                element = TextData.NewInstance();\r
                }\r
 \r
-\r
                element.setFeature(feature);\r
                description.addElement(element);\r
                monitor.worked(40);\r
index 1b1f33ec17255a568c72fece81a493271388c1a6..d6e8627ea3f7570efd19030f3887828c4a962403 100644 (file)
@@ -1,9 +1,8 @@
 
 package eu.etaxonomy.taxeditor.editor.name.operation;
 
-import junit.framework.Assert;
-
 import org.eclipse.core.commands.ExecutionException;
+import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Ignore;
 import org.junit.Test;
@@ -19,7 +18,6 @@ import eu.etaxonomy.taxeditor.store.operations.AbstractTaxeditorOperationTestBas
  * 
  * @author n.hoffmann
  * @created 07.04.2009
- * @version 1.0
  */
 public class ChangeConceptRelationshipTypeOperationTest extends AbstractTaxeditorOperationTestBase {
        
@@ -70,5 +68,4 @@ public class ChangeConceptRelationshipTypeOperationTest extends AbstractTaxedito
                Assert.assertEquals(relatedTaxon, taxon.getRelationsFromThisTaxon().toArray(a)[0].getFromTaxon());
                Assert.assertEquals(newRelationshipType, taxon.getRelationsFromThisTaxon().toArray(a)[0].getType());
        }
-
-}
+}
\ No newline at end of file
index dac789ae618663bed6a387fadcab3e13429d14f1..e55c22831e04fc9324b06516073a664e46a1b049 100644 (file)
@@ -9,10 +9,9 @@
 
 package eu.etaxonomy.taxeditor.editor.name.operation;
 
-import junit.framework.Assert;
-
 import org.apache.log4j.Logger;
 import org.eclipse.core.commands.ExecutionException;
+import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
@@ -31,11 +30,9 @@ import eu.etaxonomy.taxeditor.store.operations.AbstractTaxeditorOperationTestBas
 /**
  * @author n.hoffmann
  * @created 07.04.2009
- * @version 1.0
  */
 public class ChangeConceptToSynonymOperationTest extends AbstractTaxeditorOperationTestBase {
-       private static final Logger logger = Logger
-                       .getLogger(ChangeConceptToSynonymOperationTest.class);
+       private static final Logger logger = Logger.getLogger(ChangeConceptToSynonymOperationTest.class);
        
        private static Taxon taxon;
        
index 27573e33137f9a99761a3e93f4b895f0fa235449..ba39062f278d55bb6144043e1cd3c4dfc0824570 100644 (file)
@@ -9,10 +9,9 @@
 
 package eu.etaxonomy.taxeditor.editor.name.operation;
 
-import junit.framework.Assert;
-
 import org.apache.log4j.Logger;
 import org.eclipse.core.commands.ExecutionException;
+import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
@@ -30,30 +29,18 @@ import eu.etaxonomy.taxeditor.store.operations.AbstractTaxeditorOperationTestBas
 /**
  * @author n.hoffmann
  * @created 02.04.2009
- * @version 1.0
  */
 public class ChangeHomotypicGroupOperationTest extends AbstractTaxeditorOperationTestBase {
-       private static final Logger logger = Logger
-                       .getLogger(ChangeHomotypicGroupOperationTest.class);
-
        
-       private static AbstractPostOperation operation;
-
+       private static final Logger logger = Logger.getLogger(ChangeHomotypicGroupOperationTest.class);
 
+       private static AbstractPostOperation<Taxon> operation;
+       
        private static Taxon taxon;
-
-
        private static Synonym synonym;
-
-
        private static HomotypicalGroup newHomotypicalGroup;
-
-
        private static HomotypicalGroup oldHomotypicalGroup;
        
-       /**
-        * @throws java.lang.Exception
-        */
        @BeforeClass
        public static void setUpBeforeClass() throws Exception {
                
@@ -68,11 +55,6 @@ public class ChangeHomotypicGroupOperationTest extends AbstractTaxeditorOperatio
                operation = new ChangeHomotypicGroupOperation("Change Homotypical Group", null, taxon, synonym, newHomotypicalGroup, postOperation);
        }
 
-
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeHomotypicGroupOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testExecute() throws ExecutionException {
                operation.execute(null, null);
index 5263f9a9f496b01dc68b871f13c7023babb2fa89..f6097550ef33fff970630014c61e380557fd6664 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.name.operation;
 
 import org.apache.log4j.Logger;
@@ -24,7 +23,6 @@ import eu.etaxonomy.taxeditor.store.operations.AbstractTaxeditorOperationTestBas
 /**
  * @author n.hoffmann
  * @created 08.04.2009
- * @version 1.0
  */
 public class ChangeHomotypicalGroupBasionymOperationTest extends AbstractTaxeditorOperationTestBase {
        private static final Logger logger = Logger
@@ -34,25 +32,18 @@ public class ChangeHomotypicalGroupBasionymOperationTest extends AbstractTaxedit
 
        private static HomotypicalGroup homotypicalGroup;
        
-       /**
-        * @throws java.lang.Exception
-        */
        @BeforeClass
        public static void setUpBeforeClass() throws Exception {
                
                taxon = Taxon.NewInstance(null, null);
                synonym = Synonym.NewInstance(null, null);
                homotypicalGroup = HomotypicalGroup.NewInstance();
-               // FIXME homotypical group and basionym related maethods are not implemented in the library
+               // FIXME homotypical group and basionym related methods are not implemented in the library
                // wait till this gets done before implementing the test
                
                operation = new ChangeHomotypicalGroupBasionymOperation("", undoContext, taxon, synonym, postOperation);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeHomotypicalGroupBasionymOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
                operation.execute(monitor, info);
index 5e58755ce01ba24536381ee0ba01fc24ea4c2a35..0197df9a3fd3023dffa63d717665565f91b6f8e2 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.name.operation;
 
 import org.apache.log4j.Logger;
@@ -16,8 +15,6 @@ import org.junit.BeforeClass;
 import org.junit.Test;
 
 import eu.etaxonomy.cdm.model.common.ICdmBase;
-import eu.etaxonomy.cdm.model.name.INonViralName;
-import eu.etaxonomy.cdm.model.name.TaxonName;
 import eu.etaxonomy.cdm.model.name.TaxonNameFactory;
 import eu.etaxonomy.cdm.model.taxon.Synonym;
 import eu.etaxonomy.cdm.model.taxon.SynonymType;
@@ -30,20 +27,14 @@ import eu.etaxonomy.taxeditor.store.operations.AbstractTaxeditorOperationTestBas
 /**
  * @author n.hoffmann
  * @created 07.04.2009
- * @version 1.0
  */
 public class ChangeSynonymToConceptOperationTest extends AbstractTaxeditorOperationTestBase{
-       private static final Logger logger = Logger
-                       .getLogger(ChangeSynonymToConceptOperationTest.class);
+       
+       private static final Logger logger = Logger.getLogger(ChangeSynonymToConceptOperationTest.class);
 
        private static TaxonRelationshipType taxonRelationshipType;
-
        private static Synonym synonym;
 
-       
-       /**
-        * @throws java.lang.Exception
-        */
        @BeforeClass
        public static void setUpBeforeClass() throws Exception {
                
@@ -56,10 +47,6 @@ public class ChangeSynonymToConceptOperationTest extends AbstractTaxeditorOperat
                operation = new ChangeSynonymToConceptOperation("Change Synonym To Concept", null, taxon, synonym, taxonRelationshipType, postOperation);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeSynonymToConceptOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
                operation.execute(monitor, info);
@@ -70,10 +57,6 @@ public class ChangeSynonymToConceptOperationTest extends AbstractTaxeditorOperat
                Assert.assertEquals("Name of synonym and newly created related taxon should be equal", synonym.getName(), taxon.getTaxonRelations().toArray(new TaxonRelationship[0])[0].getFromTaxon().getName());
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeSynonymToConceptOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.undo(monitor, info);
@@ -83,10 +66,6 @@ public class ChangeSynonymToConceptOperationTest extends AbstractTaxeditorOperat
                Assert.assertTrue("There should not be taxon relationships.", taxon.getRelationsToThisTaxon().size() == 0);
        }
        
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeSynonymToConceptOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.redo(monitor, info);
@@ -97,13 +76,10 @@ public class ChangeSynonymToConceptOperationTest extends AbstractTaxeditorOperat
                Assert.assertEquals("Name of synonym and newly created related taxon should be equal", synonym.getName(), taxon.getTaxonRelations().toArray(new TaxonRelationship[0])[0].getFromTaxon().getName());
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation#postExecute(ICdmBase)}.
-        */
        @Test
        public void testPostExecute() {
                // TODO there is not post operation functionality for this class
                // at the moment. Implement test when there is.
                logger.warn("No post operation functionality for this class");
        }
-}
+}
\ No newline at end of file
index 0a8f3708c97455e869e61654e9442e06e2467229..1d6d6dfcf6bef4af19eb20cac725f653f65e5593 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.name.operation;
 
 import org.apache.log4j.Logger;
@@ -16,8 +15,6 @@ import org.junit.BeforeClass;
 import org.junit.Test;
 
 import eu.etaxonomy.cdm.model.common.ICdmBase;
-import eu.etaxonomy.cdm.model.name.INonViralName;
-import eu.etaxonomy.cdm.model.name.TaxonName;
 import eu.etaxonomy.cdm.model.name.TaxonNameFactory;
 import eu.etaxonomy.cdm.model.taxon.Synonym;
 import eu.etaxonomy.cdm.model.taxon.SynonymType;
@@ -28,23 +25,17 @@ import eu.etaxonomy.taxeditor.store.operations.AbstractTaxeditorOperationTestBas
 /**
  * @author n.hoffmann
  * @created 07.04.2009
- * @version 1.0
  */
 public class ChangeSynonymToMisapplicationOperationTest extends AbstractTaxeditorOperationTestBase {
-       private static final Logger logger = Logger
-                       .getLogger(ChangeSynonymToMisapplicationOperationTest.class);
+       
+       private static final Logger logger = Logger.getLogger(ChangeSynonymToMisapplicationOperationTest.class);
 
+       private static AbstractPostOperation<Taxon> operation;
+       
        private static Synonym synonym;
-
        private static Taxon taxon;
-
-       private static AbstractPostOperation operation;
-
        private static SynonymType synonymType;
        
-       /**
-        * @throws java.lang.Exception
-        */
        @BeforeClass
        public static void setUpBeforeClass() throws Exception {
                taxon = Taxon.NewInstance(null, null);
@@ -55,10 +46,6 @@ public class ChangeSynonymToMisapplicationOperationTest extends AbstractTaxedito
                operation = new ChangeSynonymToMisapplicationOperation("Change Synonym To Misapplication", null, taxon, synonym, postOperation);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeSynonymToMisapplicationOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
                operation.execute(null, null);
@@ -68,10 +55,6 @@ public class ChangeSynonymToMisapplicationOperationTest extends AbstractTaxedito
                Assert.assertEquals("The name of synonym and misapplication should be equal", synonym.getName(), taxon.getMisappliedNames(false).toArray(new Taxon[0])[0].getName());
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeSynonymToMisapplicationOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.undo(null, null);
@@ -82,10 +65,6 @@ public class ChangeSynonymToMisapplicationOperationTest extends AbstractTaxedito
                Assert.assertEquals("SynonymType is not the expected.", synonymType, taxon.getSynonyms().iterator().next().getType());
        }
        
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeSynonymToMisapplicationOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.redo(null, null);
@@ -95,13 +74,10 @@ public class ChangeSynonymToMisapplicationOperationTest extends AbstractTaxedito
                Assert.assertEquals("The name of synonym and misapplication should be equal", synonym.getName(), taxon.getMisappliedNames(false).toArray(new Taxon[0])[0].getName());
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation#postExecute(ICdmBase)}.
-        */
        @Test
        public void testPostExecute() {
                // TODO there is not post operation functionality for this class
                // at the moment. Implement test when there is.
                logger.warn("No post operation functionality for this class");
        }
-}
+}
\ No newline at end of file
index bae4539dcc6ec7adec57687aadd432b21d017f14..a9adab84fe5016ad7272c763b83e103ded109a39 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.name.operation;
 
 import org.apache.log4j.Logger;
@@ -25,19 +24,14 @@ import eu.etaxonomy.taxeditor.store.operations.AbstractTaxeditorOperationTestBas
 /**
  * @author n.hoffmann
  * @created 07.04.2009
- * @version 1.0
  */
 public class CreateConceptRelationOperationTest extends AbstractTaxeditorOperationTestBase {
-       private static final Logger logger = Logger
-                       .getLogger(CreateConceptRelationOperationTest.class);
+       
+       private static final Logger logger = Logger.getLogger(CreateConceptRelationOperationTest.class);
 
        private static TaxonRelationshipType taxonRelationshipType;
-
        private static Taxon concept;
 
-       /**
-        * @throws java.lang.Exception
-        */
        @BeforeClass
        public static void setUpBeforeClass() throws Exception {
                
@@ -48,10 +42,6 @@ public class CreateConceptRelationOperationTest extends AbstractTaxeditorOperati
                operation = new CreateConceptRelationOperation("Create Concept Relation", null, taxon, concept, taxonRelationshipType, postOperation);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.view.concept.operation.CreateConceptRelationOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
                operation.execute(monitor, info);
@@ -60,10 +50,6 @@ public class CreateConceptRelationOperationTest extends AbstractTaxeditorOperati
                Assert.assertEquals("Relationship type is not the expected", taxonRelationshipType, taxon.getRelationsToThisTaxon().toArray(new TaxonRelationship[0])[0].getType());
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.view.concept.operation.CreateConceptRelationOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.undo(monitor, info);
@@ -71,10 +57,6 @@ public class CreateConceptRelationOperationTest extends AbstractTaxeditorOperati
                Assert.assertTrue("There should not be taxon relationships", taxon.getTaxonRelations().size() == 0);
        }
        
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.view.concept.operation.CreateConceptRelationOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.redo(monitor, info);
@@ -83,13 +65,10 @@ public class CreateConceptRelationOperationTest extends AbstractTaxeditorOperati
                Assert.assertEquals("Relationship type is not the expected", taxonRelationshipType, taxon.getRelationsToThisTaxon().toArray(new TaxonRelationship[0])[0].getType());
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation#postExecute(ICdmBase)}.
-        */
        @Test
        public void testPostExecute() {
                // TODO there is not post operation functionality for this class
                // at the moment. Implement test when there is.
                logger.warn("No post operation functionality for this class");
        }
-}
+}
\ No newline at end of file
index d22aff7d07db3c0f8029d4942c62ab12438fbc5d..7126019bb563a0025d258326f26ab6c06ba5b55f 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.name.operation;
 
 import org.eclipse.core.commands.ExecutionException;
@@ -23,15 +22,11 @@ import eu.etaxonomy.taxeditor.store.operations.AbstractTaxeditorOperationTestBas
 /**
  * @author n.hoffmann
  * @created 07.04.2009
- * @version 1.0
  */
 public class CreateSynonymInNewGroupOperationTest extends AbstractTaxeditorOperationTestBase { 
        
        private static TaxonName newSynonymName;
        
-       /**
-        * @throws java.lang.Exception
-        */
        @BeforeClass
        public static void setUpBeforeClass() throws Exception {
                
@@ -41,10 +36,6 @@ public class CreateSynonymInNewGroupOperationTest extends AbstractTaxeditorOpera
                operation = new CreateSynonymInNewGroupOperation("Create Synonyma In New Group",  undoContext, taxon, newSynonymName, postOperation);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.CreateSynonymInNewGroupOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
                operation.execute(monitor, info);
@@ -53,10 +44,6 @@ public class CreateSynonymInNewGroupOperationTest extends AbstractTaxeditorOpera
                Assert.assertTrue("Taxon should have a homotypical group now.", taxon.getHomotypicSynonymyGroups().size() > 0);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.CreateSynonymInNewGroupOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.undo(monitor, info);
@@ -64,16 +51,11 @@ public class CreateSynonymInNewGroupOperationTest extends AbstractTaxeditorOpera
                Assert.assertTrue("Taxon should not have synonyms now.", taxon.getSynonyms().size() == 0);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.CreateSynonymInNewGroupOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.redo(monitor, info);
                
                Assert.assertTrue("Taxon should have synonyms now.", taxon.getSynonyms().size() > 0);
                Assert.assertTrue("Taxon should have a homotypical group now.", taxon.getHomotypicSynonymyGroups().size() > 0);
-
        }
-}
+}
\ No newline at end of file
index b560f95f6975d427c806682615b962199821dff1..4a2d31f49f46e71e3a6a8780d161f016a6ed9b52 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.name.operation;
 
 import org.apache.log4j.Logger;
@@ -23,19 +22,14 @@ import eu.etaxonomy.taxeditor.store.operations.AbstractTaxeditorOperationTestBas
 /**
  * @author n.hoffmann
  * @created 08.04.2009
- * @version 1.0
  */
 public class DeleteConceptRelationOperationTest extends AbstractTaxeditorOperationTestBase{
-       private static final Logger logger = Logger
-                       .getLogger(DeleteConceptRelationOperationTest.class);
+       
+       private static final Logger logger = Logger.getLogger(DeleteConceptRelationOperationTest.class);
 
        private static TaxonRelationshipType relationshipType;
-
        private static Taxon relatedTaxon;
-       
-       /**
-        * @throws java.lang.Exception
-        */
+
        @BeforeClass
        public static void setUpBeforeClass() throws Exception {
                
@@ -50,10 +44,6 @@ public class DeleteConceptRelationOperationTest extends AbstractTaxeditorOperati
 //             operation = new DeleteConceptRelationOperation("", undoContext, taxon, relatedTaxon, postOperation);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.view.concept.operation.DeleteConceptRelationOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
                operation.execute(monitor, info);
@@ -61,10 +51,6 @@ public class DeleteConceptRelationOperationTest extends AbstractTaxeditorOperati
                Assert.assertTrue(taxon.getTaxonRelations().size() == 0);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.view.concept.operation.DeleteConceptRelationOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.undo(monitor, info);
@@ -72,10 +58,6 @@ public class DeleteConceptRelationOperationTest extends AbstractTaxeditorOperati
                Assert.assertTrue(taxon.getTaxonRelations().size() > 0);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.view.concept.operation.DeleteConceptRelationOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException 
-        */
        @Test
        public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.redo(monitor, info);
@@ -83,13 +65,10 @@ public class DeleteConceptRelationOperationTest extends AbstractTaxeditorOperati
                Assert.assertTrue(taxon.getTaxonRelations().size() == 0);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation#postExecute(ICdmBase)}.
-        */
        @Test
        public void testPostExecute() {
                // TODO there is not post operation functionality for this class
                // at the moment. Implement test when there is.
                logger.warn("No post operation functionality for this class");
        }
-}
+}
\ No newline at end of file
index b9f991a57f706cfb65f257ff19b177b496915b91..dd0178269e8297f85d429b6b7b54b3ed47e60478 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.name.operation;
 
 import org.eclipse.core.commands.ExecutionException;
@@ -24,47 +23,29 @@ import eu.etaxonomy.taxeditor.store.operations.AbstractTaxeditorOperationTestBas
 /**
  * @author n.hoffmann
  * @created 08.04.2009
- * @version 1.0
  */
 public class DeleteDescriptionElementOperationTest extends AbstractTaxeditorOperationTestBase {
 
        private static DescriptionElementBase descriptionElement;
-
        private static TaxonDescription description;
 
-       /**
-        * @throws java.lang.Exception
-        */
        @BeforeClass
        public static void setUpBeforeClass() throws Exception {
                taxon = Taxon.NewInstance(null, null);
                descriptionElement = TextData.NewInstance();
-
                description = TaxonDescription.NewInstance();
-
                description.addElement(descriptionElement);
-
                taxon.addDescription(description);
 
-
                operation = new DeleteDescriptionElementOperation("", undoContext, descriptionElement, postOperation, cdmEntitySessionEnabled);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.view.descriptive.operation.DeleteDescriptionElementOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException
-        */
        @Test
        public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
                operation.execute(monitor, info);
-
                Assert.assertTrue(taxon.getDescriptions().toArray(new TaxonDescription[0])[0].getElements().size() == 0);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.view.descriptive.operation.DeleteDescriptionElementOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException
-        */
        @Test
        public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.undo(monitor, info);
@@ -73,14 +54,9 @@ public class DeleteDescriptionElementOperationTest extends AbstractTaxeditorOper
                Assert.assertEquals(descriptionElement, taxon.getDescriptions().toArray(new TaxonDescription[0])[0].getElements().toArray(new DescriptionElementBase[0])[0]);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.view.descriptive.operation.DeleteDescriptionElementOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException
-        */
        @Test
        public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.redo(monitor, info);
-
                Assert.assertTrue(taxon.getDescriptions().toArray(new TaxonDescription[0])[0].getElements().size() == 0);
        }
-}
+}
\ No newline at end of file
index b10d2ba38d3743cefd95817b1a39a30cba449f40..226045272b0ec94d60f3893c57debbd7ccff83a6 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.editor.name.operation;
 
 import org.apache.log4j.Logger;
@@ -22,19 +21,14 @@ import eu.etaxonomy.taxeditor.store.operations.AbstractTaxeditorOperationTestBas
 /**
  * @author n.hoffmann
  * @created 08.04.2009
- * @version 1.0
  */
 public class DeleteMisapplicationOperationTest extends AbstractTaxeditorOperationTestBase{
-       private static final Logger logger = Logger
-                       .getLogger(DeleteMisapplicationOperationTest.class);
+       
+       private static final Logger logger = Logger.getLogger(DeleteMisapplicationOperationTest.class);
 
        private static Taxon taxon;
-
        private static Taxon misapplication;
 
-       /**
-        * @throws java.lang.Exception
-        */
        @BeforeClass
        public static void setUpBeforeClass() throws Exception {
 
@@ -47,10 +41,6 @@ public class DeleteMisapplicationOperationTest extends AbstractTaxeditorOperatio
 
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.DeleteMisapplicationOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException
-        */
        @Test
        public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
                operation.execute(monitor, info);
@@ -58,10 +48,6 @@ public class DeleteMisapplicationOperationTest extends AbstractTaxeditorOperatio
                Assert.assertTrue(taxon.getMisappliedNames(false).size() == 0);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.DeleteMisapplicationOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException
-        */
        @Test
        public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.undo(monitor, info);
@@ -69,10 +55,6 @@ public class DeleteMisapplicationOperationTest extends AbstractTaxeditorOperatio
                Assert.assertEquals(misapplication, taxon.getMisappliedNames(false).toArray(new Taxon[0])[0]);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.DeleteMisapplicationOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
-        * @throws ExecutionException
-        */
        @Test
        public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.redo(monitor, info);
@@ -80,13 +62,10 @@ public class DeleteMisapplicationOperationTest extends AbstractTaxeditorOperatio
                Assert.assertTrue(taxon.getMisappliedNames(false).size() == 0);
        }
 
-       /**
-        * Test method for {@link eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation#postExecute(ICdmBase)}.
-        */
        @Test
        public void testPostExecute() {
                // TODO there is not post operation functionality for this class
                // at the moment. Implement test when there is.
                logger.warn("No post operation functionality for this class");
        }
-}
+}
\ No newline at end of file
index b198d459ffc9cf649c8615d4a8b00240cd0c1ef6..07ae4fd5db893f4372916d549087f538bc2883b8 100644 (file)
@@ -36,7 +36,6 @@ import eu.etaxonomy.taxeditor.local.datasource.common.CdmDataSourceRepository;
  *
  * @author n.hoffmann
  * @created 19.05.2009
- * @version 1.0
  */
 public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage implements ModifyListener {
        private ICdmDataSource dataSource;
@@ -89,7 +88,6 @@ public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage impl
                }
        }
 
-       /** {@inheritDoc} */
        @Override
     public void createControl(Composite parent) {
                this.parent = parent;
@@ -102,8 +100,6 @@ public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage impl
                formLayout.numColumns = 2;
                composite.setLayout(formLayout);
 
-
-
                // Create composite for data source name
                Composite editDatasourceComposite = new Composite(composite, SWT.NONE);
                GridData datasourceGridData = new GridData(SWT.FILL, SWT.TOP, true, true,2,1);
@@ -149,9 +145,7 @@ public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage impl
                });
 
                setControl(composite);
-
                init();
-
        }
 
        /**
@@ -189,7 +183,6 @@ public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage impl
                // Create password input
                text_password = new Text(authenticationGroup, SWT.BORDER | SWT.PASSWORD);
                text_password.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
-
        }
 
        /**
@@ -215,7 +208,6 @@ public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage impl
                } else {
                        name = text_dataSourceName.getText();
                }
-
        }
 
        private void addListeners() {
@@ -289,8 +281,6 @@ public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage impl
                this.setPageComplete(complete);
        }
 
-
-
        /**
         * updates the current datasource with form values
         */
@@ -300,26 +290,15 @@ public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage impl
                password = text_password.getText();
        }
 
-       /** {@inheritDoc} */
        @Override
        public IWizardPage getNextPage() {
                return null;
        }
 
-       /**
-        * <p>Setter for the field <code>dataSource</code>.</p>
-        *
-        * @param dataSource the dataSource to set
-        */
        public void setDataSource(ICdmDataSource dataSource) {
                this.dataSource = dataSource;
        }
 
-       /**
-        * <p>Getter for the field <code>dataSource</code>.</p>
-        *
-        * @return the dataSource
-        */
        public ICdmDataSource getUpdatedDataSource() {
                updateDataSource();
                return dataSource;
@@ -329,16 +308,10 @@ public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage impl
                return dataSource;
        }
 
-       /**
-        * <p>getDataSourceName</p>
-        *
-        * @return a {@link java.lang.String} object.
-        */
        public String getDataSourceName() {
                return name;
        }
 
-       /** {@inheritDoc} */
        @Override
     public void modifyText(ModifyEvent e) {
 
@@ -385,7 +358,6 @@ public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage impl
                }
        }
 
-
        private void updateAndCheck() {
                updateLocation();
                updateAuthentication();
@@ -403,4 +375,4 @@ public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage impl
                text.setText(string);
                text.addModifyListener(listener);
        }
-}
+}
\ No newline at end of file
index 1f34eacd255616d4122f55db275f9bb69c2ff1d9..5fc13ebcfd5bb9a58a7e7cece4ecb330ec5b0ad9 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.local.datasource.wizard;
 
 import org.eclipse.swt.SWT;
@@ -25,7 +24,6 @@ import eu.etaxonomy.cdm.database.ICdmDataSource;
  *
  * @author n.hoffmann
  * @created 19.05.2009
- * @version 1.0
  */
 public class CdmDataSourceSQLServerWizardPage extends CdmDataSourceCredentialsWizardPage {
 
@@ -62,10 +60,6 @@ public class CdmDataSourceSQLServerWizardPage extends CdmDataSourceCredentialsWi
                this.setDataSource(dataSource);
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.store.datasource.CdmDataSourceCredentialsWizardPage#createDatabaseForm()
-        */
-       /** {@inheritDoc} */
        @Override
        public void createDatabaseForm() {
                // Create group composite for location data
@@ -96,10 +90,6 @@ public class CdmDataSourceSQLServerWizardPage extends CdmDataSourceCredentialsWi
                text_port.addModifyListener(this);
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.store.datasource.CdmDataSourceCredentialsWizardPage#updateLocation()
-        */
-       /** {@inheritDoc} */
        @Override
        public void updateLocation() {
                server = text_server.getText();
@@ -113,10 +103,6 @@ public class CdmDataSourceSQLServerWizardPage extends CdmDataSourceCredentialsWi
                }
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.webapp.datasource.common.wizard.CdmDataSourceCredentialsWizardPage#updateDataSource()
-        */
-       /** {@inheritDoc} */
        @Override
        public void updateDataSource() {
 
@@ -140,10 +126,6 @@ public class CdmDataSourceSQLServerWizardPage extends CdmDataSourceCredentialsWi
                }
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.webapp.datasource.common.wizard.CdmDataSourceCredentialsWizardPage#checkPageComplete()
-        */
-       /** {@inheritDoc} */
        @Override
        public void checkPageComplete() {
                // check if widgets of this component are complete
@@ -160,10 +142,6 @@ public class CdmDataSourceSQLServerWizardPage extends CdmDataSourceCredentialsWi
                super.checkPageComplete();
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.webapp.datasource.common.wizard.CdmDataSourceCredentialsWizardPage#init()
-        */
-       /** {@inheritDoc} */
        @Override
        public void init() {
                super.init();
@@ -175,7 +153,6 @@ public class CdmDataSourceSQLServerWizardPage extends CdmDataSourceCredentialsWi
                        // for the initial value
                        addListeners();
                }
-
        }
 
        private void addListeners() {
@@ -187,6 +164,4 @@ public class CdmDataSourceSQLServerWizardPage extends CdmDataSourceCredentialsWi
                text_server.removeModifyListener(this);
                text_port.removeModifyListener(this);
        }
-
-
-}
+}
\ No newline at end of file
index cdd21d4b28cdeb8b88ba35b049e371e34f9cc1a4..2b6fa05cb6b34832168b560d6fce38ecb71bdf58 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.local.datasource.wizard;
 
 import java.util.ArrayList;
@@ -36,7 +35,6 @@ import eu.etaxonomy.taxeditor.local.datasource.common.CdmDataSourceRepository;
  *
  * @author n.hoffmann
  * @created 18.05.2009
- * @version 1.0
  */
 public class CdmDataSourceTypeSelectionWizardPage extends WizardPage implements ModifyListener{
 
@@ -47,7 +45,6 @@ public class CdmDataSourceTypeSelectionWizardPage extends WizardPage implements
                /*DatabaseTypeEnum.SqlServer2005*/
        };
 
-
        private ArrayList<DatabaseTypeEnum> databaseTypes;
 
        private Text datasourceNameText;
@@ -83,10 +80,6 @@ public class CdmDataSourceTypeSelectionWizardPage extends WizardPage implements
                setTitle(pageName);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
-        */
-       /** {@inheritDoc} */
        @Override
     public void createControl(Composite parent) {
 
@@ -153,9 +146,6 @@ public class CdmDataSourceTypeSelectionWizardPage extends WizardPage implements
                }
        }
 
-       /**
-        * @param type
-        */
        private void addDatabasePage(DatabaseTypeEnum type) {
                // add credentials wizard page according to selection
                Wizard wizard = (Wizard) getWizard();
@@ -186,20 +176,11 @@ public class CdmDataSourceTypeSelectionWizardPage extends WizardPage implements
                getContainer().updateButtons();
        }
 
-
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.wizard.WizardPage#getNextPage()
-        */
-       /** {@inheritDoc} */
        @Override
        public IWizardPage getNextPage() {
                return nextPage;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)
-        */
-       /** {@inheritDoc} */
        @Override
     public void modifyText(ModifyEvent e) {
                String name = datasourceNameText.getText();
@@ -218,12 +199,6 @@ public class CdmDataSourceTypeSelectionWizardPage extends WizardPage implements
                checkPageComplete();
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.wizard.WizardPage#canFlipToNextPage()
-        */
-       /**
-        * <p>checkPageComplete</p>
-        */
        public void checkPageComplete() {
                boolean complete = isDataBaseTypeSelected();
                complete &= isDataSourceNameSet();
@@ -231,68 +206,31 @@ public class CdmDataSourceTypeSelectionWizardPage extends WizardPage implements
                setPageComplete(complete);
        }
 
-       /**
-        * <p>Getter for the field <code>dataSourceName</code>.</p>
-        *
-        * @return a {@link java.lang.String} object.
-        */
        public String getDataSourceName() {
                return dataSourceName;
        }
 
-       /**
-        * <p>Getter for the field <code>credentialsWizardPage</code>.</p>
-        *
-        * @return the credentialsWizardPage
-        */
        public CdmDataSourceCredentialsWizardPage getCredentialsWizardPage() {
                return credentialsWizardPage;
        }
 
-       /**
-        * <p>isDataBaseTypeSelected</p>
-        *
-        * @return the dataBaseTypeSelected
-        */
        public boolean isDataBaseTypeSelected() {
                return dataBaseTypeSelected;
        }
 
-       /**
-        * <p>Setter for the field <code>dataBaseTypeSelected</code>.</p>
-        *
-        * @param dataBaseTypeSelected the dataBaseTypeSelected to set
-        */
        public void setDataBaseTypeSelected(boolean dataBaseTypeSelected) {
                this.dataBaseTypeSelected = dataBaseTypeSelected;
        }
 
-       /**
-        * <p>isDataSourceNameSet</p>
-        *
-        * @return the dataSourceNameSet
-        */
        public boolean isDataSourceNameSet() {
                return dataSourceNameSet;
        }
 
-       /**
-        * <p>Setter for the field <code>dataSourceNameSet</code>.</p>
-        *
-        * @param dataSourceNameSet the dataSourceNameSet to set
-        */
        public void setDataSourceNameSet(boolean dataSourceNameSet) {
                this.dataSourceNameSet = dataSourceNameSet;
        }
 
-       /**
-        * <p>Getter for the field <code>nomenclaturalCode</code>.</p>
-        *
-        * @return the nomenclaturalCode
-        */
        public NomenclaturalCode getNomenclaturalCode() {
                return nomenclaturalCode;
        }
-
-
-}
+}
\ No newline at end of file
index ec441252d634890549e24eb1b36a96a4bf55d103..54a2d1c683de3f90e562ddaa6fb48539a395dff8 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.local.datasource.wizard;
 
 import org.eclipse.jface.wizard.Wizard;
@@ -20,7 +19,6 @@ import eu.etaxonomy.taxeditor.local.datasource.common.CdmDataSourceRepository;
  *
  * @author n.hoffmann
  * @created 18.05.2009
- * @version 1.0
  */
 public class CdmDataSourceWizard extends Wizard {
 
@@ -51,10 +49,8 @@ public class CdmDataSourceWizard extends Wizard {
                this.mode = Mode.CREATE;
                setForcePreviousAndNextButtons(true);
                setWindowTitle("Datasource Dialog");
-
        }
 
-
        /**
         * <p>Constructor for CdmDataSourceWizard.</p>
         *
@@ -71,11 +67,6 @@ public class CdmDataSourceWizard extends Wizard {
                setWindowTitle("Datasource Dialog");
        }
 
-
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.wizard.Wizard#addPages()
-        */
-       /** {@inheritDoc} */
        @Override
        public void addPages() {
                switch(mode) {
@@ -100,13 +91,8 @@ public class CdmDataSourceWizard extends Wizard {
                default:
 
                }
-
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.wizard.Wizard#performFinish()
-        */
-       /** {@inheritDoc} */
        @Override
        public boolean performFinish() {
                ICdmDataSource dataSource;
@@ -137,10 +123,6 @@ public class CdmDataSourceWizard extends Wizard {
 
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.wizard.Wizard#canFinish()
-        */
-       /** {@inheritDoc} */
        @Override
        public boolean canFinish() {
                switch(mode) {
@@ -157,6 +139,5 @@ public class CdmDataSourceWizard extends Wizard {
                default:
                        return false;
                }
-
        }
-}
+}
\ No newline at end of file
index 5fcc43e2d3397affdec30cd778e789b12ab1b09d..173f418a260e691f608f62bd8d13b04e0c97fc8b 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.local.view.datasource;
 
 import java.util.HashMap;
@@ -23,12 +22,9 @@ import eu.etaxonomy.taxeditor.model.MessagingUtils;
  *
  * @author n.hoffmann
  * @created Sep 22, 2010
- * @version 1.0
  */
 public class CdmMetaDataAwareDataSourceContainer {
 
-
-
        /** Constant <code>DEFAULT_ENTRY="-"</code> */
        public static final String DEFAULT_ENTRY = "-";
 
@@ -48,21 +44,11 @@ public class CdmMetaDataAwareDataSourceContainer {
                this.cdmSource = cdmSource;
 
                metaDataMap = getDefaultMetaDataMap();
-
        }
 
-//     /**
-//      * <p>Getter for the field <code>dataSource</code>.</p>
-//      *
-//      * @return the dataSource
-//      */
-//     public ICdmDataSource getDataSource() {
-//             return dataSource;
-//     }
-
        public ICdmSource getCdmSource() {
-       return cdmSource;
-}
+               return cdmSource;
+       }
 
        public void getMetaDataFromDataSource(){
                try {
@@ -104,48 +90,26 @@ public class CdmMetaDataAwareDataSourceContainer {
                return resultMap;
        }
 
-       /**
-        * <p>Getter for the field <code>metaDataMap</code>.</p>
-        *
-        * @return the metaDataMap
-        */
        public Map<CdmMetaDataPropertyName, String> getMetaDataMap() {
                return metaDataMap;
        }
 
-       /**
-        * <p>isDataSourceCompatible</p>
-        *
-        * @return a boolean.
-        */
        public boolean isDataSourceCompatible(){
                String version = metaDataMap.get(CdmMetaDataPropertyName.DB_SCHEMA_VERSION);
                return version == null || version.equals(DEFAULT_ENTRY) ? false : CdmMetaData.isDbSchemaVersionCompatible(version);
        }
 
-       /**
-        * <p>getMetaData</p>
-        *
-        * @param metaDataPropertyName a {@link eu.etaxonomy.cdm.model.common.CdmMetaData.MetaDataPropertyName} object.
-        * @return a {@link java.lang.String} object.
-        */
        public String getMetaData(CdmMetaDataPropertyName metaDataPropertyName){
                String property = metaDataMap.get(metaDataPropertyName);
                return property != null ? property : DEFAULT_ENTRY;
        }
 
-       /**
-        * <p>isRunning</p>
-        *
-        * @return the running
-        */
        public boolean isRunning() {
                return running;
        }
 
-       /** {@inheritDoc} */
        @Override
        public String toString() {
                return cdmSource.getName();
        }
-}
+}
\ No newline at end of file
index 179d77e2552e18f192c813347c4fbc22b4931070..5e19b175b7b48eda401b2c12691539ac85ef2205 100644 (file)
@@ -6,7 +6,6 @@
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
-
 package eu.etaxonomy.taxeditor.local.view.datasource.handler;
 
 import org.eclipse.core.expressions.PropertyTester;
@@ -18,7 +17,6 @@ import eu.etaxonomy.taxeditor.local.view.datasource.CdmMetaDataAwareDataSourceCo
 /**
  * @author n.hoffmann
  * @created Sep 23, 2010
- * @version 1.0
  */
 public class DataSourceMenuPropertyTester extends PropertyTester {
 
@@ -50,24 +48,22 @@ public class DataSourceMenuPropertyTester extends PropertyTester {
                return false;
        }
 
-          private boolean hasDataModel(Object[] selectedElements) {
-
-               if (selectedElements.length == 0 ) {
-                   // nothing selected so all tests should fail
-                   return false;
-               }
-               for (Object object : selectedElements) {
+    private boolean hasDataModel(Object[] selectedElements) {
 
-                   if (object instanceof CdmMetaDataAwareDataSourceContainer) {
-                       CdmMetaDataAwareDataSourceContainer container = (CdmMetaDataAwareDataSourceContainer) object;
-                       String schemaVersion = container.getMetaData(CdmMetaDataPropertyName.DB_SCHEMA_VERSION);
-                    return !schemaVersion.equals(CdmMetaDataAwareDataSourceContainer.DEFAULT_ENTRY);
-                   }
-               }
-               return false;
-
-           }
+        if (selectedElements.length == 0 ) {
+            // nothing selected so all tests should fail
+            return false;
+        }
+        for (Object object : selectedElements) {
 
+            if (object instanceof CdmMetaDataAwareDataSourceContainer) {
+                CdmMetaDataAwareDataSourceContainer container = (CdmMetaDataAwareDataSourceContainer) object;
+                String schemaVersion = container.getMetaData(CdmMetaDataPropertyName.DB_SCHEMA_VERSION);
+                return !schemaVersion.equals(CdmMetaDataAwareDataSourceContainer.DEFAULT_ENTRY);
+            }
+        }
+        return false;
+    }
 
        private boolean isCompatible(Object[] selectedElements) {
 
@@ -83,6 +79,5 @@ public class DataSourceMenuPropertyTester extends PropertyTester {
                        }
                }
                return false;
-
        }
-}
+}
\ No newline at end of file
index 8c496fd2101e0dfaa9a5f86dabe12ad7197bea35..67f4a13486f9fb7ef66e9fba646ae991e2ed4939 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.navigation.operation;
 
 import org.eclipse.core.commands.ExecutionException;
@@ -34,7 +33,6 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  *
  * @author n.hoffmann
  * @created 08.05.2009
- * @version 1.0
  */
 @Deprecated // we do not undo creation of elements
 public class CreateTaxonNode extends AbstractPersistentPostOperation {
@@ -86,11 +84,6 @@ public class CreateTaxonNode extends AbstractPersistentPostOperation {
                this.newTaxon = taxon;
        }
 
-
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus execute(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -113,20 +106,12 @@ public class CreateTaxonNode extends AbstractPersistentPostOperation {
                }
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus redo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
                return execute(monitor, info);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
-       /** {@inheritDoc} */
        @Override
        public IStatus undo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
@@ -134,4 +119,4 @@ public class CreateTaxonNode extends AbstractPersistentPostOperation {
                MessagingUtils.warn(this.getClass(), "Not yet implemented."); //$NON-NLS-1$
                return null;
        }
-}
+}
\ No newline at end of file
index 363ce8a297be6dddd7f955e297e4c975efe1bd26..82ac11db9258b430a43a8544e31fe99b6c14fbd6 100644 (file)
@@ -6,7 +6,6 @@
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
-
 package eu.etaxonomy.taxeditor.navigation.search;
 
 import java.util.List;
@@ -61,7 +60,6 @@ import eu.etaxonomy.taxeditor.workbench.WorkbenchUtility;
  * @author n.hoffmann
  * @author e.-m.lee
  * @created 15.04.2009
- * @version 1.0
  */
 public class SearchBar implements IContextListener{
 
@@ -281,7 +279,6 @@ public class SearchBar implements IContextListener{
         *
         * @author n.hoffmann
         * @created Feb 2, 2010
-        * @version 1.0
         */
        class DropdownSelectionListener extends SelectionAdapter {
 
index 048aed78dc5d6ff87eddfc5e8819dfe9330f584b..f686c8e2d5d9291e0fb5903d91b7c11500f744d9 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.printpublisher;
 
 import eu.etaxonomy.taxeditor.model.AbstractUtility;
@@ -16,8 +15,7 @@ import eu.etaxonomy.taxeditor.model.AbstractUtility;
  *
  * @author n.hoffmann
  * @created Oct 14, 2010
- * @version 1.0
  */
 public class PrintUtil extends AbstractUtility {
 
-}
+}
\ No newline at end of file
index 67c38c512385eafcf896690eaca2edaf1ac9c6e4..4c56cc684f3dc7e36e0c6586316e4824521c1ee7 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.printpublisher.internal;
 
 import org.eclipse.ui.plugin.AbstractUIPlugin;
@@ -17,7 +16,6 @@ import org.osgi.framework.BundleContext;
  *
  * @author n.hoffmann
  * @created Jul 15, 2010
- * @version 1.0
  */
 public class PrintpublisherPlugin extends AbstractUIPlugin {
        
@@ -34,21 +32,11 @@ public class PrintpublisherPlugin extends AbstractUIPlugin {
        public PrintpublisherPlugin() {
        }
 
-       /*
-        * (non-Javadoc)
-        * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
-        */
-       /** {@inheritDoc} */
        public void start(BundleContext context) throws Exception {
                super.start(context);
                plugin = this;
        }
 
-       /*
-        * (non-Javadoc)
-        * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
-        */
-       /** {@inheritDoc} */
        public void stop(BundleContext context) throws Exception {
                plugin = null;
                super.stop(context);
@@ -62,4 +50,4 @@ public class PrintpublisherPlugin extends AbstractUIPlugin {
        public static PrintpublisherPlugin getDefault() {
                return plugin;
        }
-}
+}
\ No newline at end of file
index ab0cdc8866ee99c105dbc8d9a438c0b1c57ff7a8..716bd2c4e93ec9631c32880de2253134d865f5b7 100644 (file)
@@ -6,11 +6,9 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.printpublisher.wizard;
 
 import java.net.URL;
-import java.nio.channels.IllegalSelectorException;
 
 import org.eclipse.jface.dialogs.IDialogSettings;
 import org.eclipse.jface.wizard.WizardPage;
@@ -24,42 +22,21 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  *
  * @author n.hoffmann
  * @created Apr 27, 2010
- * @version 1.0
  */
 public abstract class AbstractPublishWizardPage extends WizardPage {
 
-       /**
-        * <p>Constructor for AbstractPublishWizardPage.</p>
-        *
-        * @param pageName a {@link java.lang.String} object.
-        */
        protected AbstractPublishWizardPage(String pageName) {
                super(pageName);
        }
        
-       /**
-        * <p>getConfigurator</p>
-        *
-        * @return a {@link eu.etaxonomy.cdm.print.PublishConfigurator} object.
-        */
        public PublishConfigurator getConfigurator(){
                return ((AbstractPublishWizard) getWizard()).getConfigurator();
        }
-       
-       /**
-        * <p>setConfigurator</p>
-        *
-        * @param configurator a {@link eu.etaxonomy.cdm.print.PublishConfigurator} object.
-        */
+
        public void setConfigurator(PublishConfigurator configurator){
                ((AbstractPublishWizard) getWizard()).setConfigurator(configurator);
        }
-       
-       /**
-        * <p>getOutputModule</p>
-        *
-        * @return a {@link eu.etaxonomy.cdm.print.out.IPublishOutputModule} object.
-        */
+
        public IPublishOutputModule getOutputModule(){
                IPublishOutputModule outputModule = ((AbstractPublishWizard) getWizard()).getOutputModule();
                if(outputModule == null)
index 1b5aa0bb6ebdeceb4e2afbf8bf4451e7b625969d..3340c265620d2791c03107e6767332d51c6d8d64 100644 (file)
@@ -6,12 +6,8 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.printpublisher.wizard;
 
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.ui.IWorkbench;
-
 import eu.etaxonomy.cdm.print.PublishConfigurator;
 import eu.etaxonomy.cdm.print.out.IPublishOutputModule;
 
@@ -20,51 +16,37 @@ import eu.etaxonomy.cdm.print.out.IPublishOutputModule;
  *
  * @author n.hoffmann
  * @created Aug 6, 2010
- * @version 1.0
  */
 public class DirectPublishingWizard extends AbstractPublishWizard {
-       
-       /**
-        * <p>Constructor for DirectPublishingWizard.</p>
-        *
-        * @param configurator a {@link eu.etaxonomy.cdm.print.PublishConfigurator} object.
-        */
+
        public DirectPublishingWizard(PublishConfigurator configurator) {
                setConfigurator(configurator);
                IPublishOutputModule module = configurator.getOutputModules().iterator().next();
                setOutputModule(module);
        }
-
-       /** {@inheritDoc} */
+       
        @Override
        public void addPages() {
                pageOptions = new SelectOptionsWizardPage(PAGE_OPTIONS);
                addPage(pageOptions);
-               
+
                pageFeatureTree = new SelectFeatureTreeWizardPage(PAGE_FEATURETREE);
                addPage(pageFeatureTree);
-               
+
                pageStylesheet = new SelectStylesheetWizardPage(PAGE_STYLESHEET);
                addPage(pageStylesheet);
-               
+
                pageFolder = new SelectDirectoryWizardPage(PAGE_FOLDER);
                addPage(pageFolder);
-               
        }
-               
-       /** {@inheritDoc} */
+
        @Override
        public boolean performFinish() {
                return super.performFinish();
        }
-       
-       /**
-        * <p>canFinish</p>
-        *
-        * @return a boolean.
-        */
+
        public boolean canFinish() {
                return pageFeatureTree.isPageComplete()
                        && pageFolder.isPageComplete();
        }
-}
+}
\ No newline at end of file
index 868d72f34e4d00807d6d5748182238d902a00ab7..dde57025b1d9e3c1df33481692e9e6889308b201 100644 (file)
@@ -1,17 +1,20 @@
 /**
- * 
- */
+* Copyright (C) 2007 EDIT
+* European Distributed Institute of Taxonomy 
+* http://www.e-taxonomy.eu
+* 
+* The contents of this file are subject to the Mozilla Public License Version 1.1
+* See LICENSE.TXT at the top of this package for the full license terms.
+*/
 package eu.etaxonomy.taxeditor.printpublisher.wizard;
 
 import eu.etaxonomy.cdm.print.out.odf.OdfOutputModule;
 
-
 /**
  * <p>PublishWizardODF class.</p>
  *
  * @author n.hoffmann
  * @created Apr 1, 2010
- * @version 1.0
  */
 public class PublishWizardODF extends AbstractPublishWizard  {
 
index 1835026709c0c786e43d7e6214d9936d2b554e3f..ade92f0be5cf1f76a5c991860e2c467dcb7ff443 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.printpublisher.wizard;
 
 import org.eclipse.ui.IExportWizard;
@@ -18,11 +17,10 @@ import eu.etaxonomy.cdm.print.out.pdf.PdfOutputModule;
  *
  * @author n.hoffmann
  * @created Aug 4, 2010
- * @version 1.0
  */
 public class PublishWizardPDF extends AbstractPublishWizard implements
                IExportWizard {
-       
+
        /**
         * <p>Constructor for PublishWizardPDF.</p>
         */
@@ -30,4 +28,4 @@ public class PublishWizardPDF extends AbstractPublishWizard implements
                setOutputModule(new PdfOutputModule());
                setWindowTitle("Publish PDF");
        }
-}
+}
\ No newline at end of file
index 9ce936f76311a17474750cb54fe71de7c81b3ebf..34d154fad4f70e5b903e40406a19a9f69394bb7f 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.printpublisher.wizard;
 
 import org.eclipse.ui.IExportWizard;
@@ -18,16 +17,12 @@ import eu.etaxonomy.cdm.print.out.taxpub.TaxPubOutputModule;
  *
  * @author n.hoffmann
  * @created Aug 4, 2010
- * @version 1.0
  */
 public class PublishWizardTaxPub extends AbstractPublishWizard implements
                IExportWizard {
-       
-       /**
-        * <p>Constructor for PublishWizardTaxPub.</p>
-        */
+
        public PublishWizardTaxPub(){
                setOutputModule(new TaxPubOutputModule());
                setWindowTitle("Publish TaxPub");
        }
-}
+}
\ No newline at end of file
index 7e9c4c011b9199a546358a29c2d84b37d5929984..bae7c2b1ed10b4084c608c123d2e59274e4d8ed6 100644 (file)
@@ -1,22 +1,25 @@
 /**
- * 
- */
+* Copyright (C) 2007 EDIT
+* European Distributed Institute of Taxonomy 
+* http://www.e-taxonomy.eu
+* 
+* The contents of this file are subject to the Mozilla Public License Version 1.1
+* See LICENSE.TXT at the top of this package for the full license terms.
+*/
 package eu.etaxonomy.taxeditor.printpublisher.wizard;
 
 import org.eclipse.ui.IExportWizard;
 
 import eu.etaxonomy.cdm.print.out.xml.XMLOutputModule;
 
-
-
 /**
  * <p>PublishWizardXML class.</p>
  *
  * @author n.hoffmann
  * @created Apr 1, 2010
- * @version 1.0
  */
 public class PublishWizardXML extends AbstractPublishWizard implements IExportWizard{
+
        /**
         * <p>Constructor for PublishWizardXML.</p>
         */
@@ -24,4 +27,4 @@ public class PublishWizardXML extends AbstractPublishWizard implements IExportWi
                setOutputModule(new XMLOutputModule());
                setWindowTitle("Publish XML");
        }
-}
+}
\ No newline at end of file
index bd25732e2cadfc80436f3b2343fcded0ad6188e3..da2f701e985518b2d29d2ff93357fdc2ae7bb24f 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.printpublisher.wizard;
 
 import java.io.File;
@@ -27,7 +26,6 @@ import org.eclipse.swt.widgets.Text;
  *
  * @author n.hoffmann
  * @created Apr 7, 2010
- * @version 1.0
  */
 public class SelectDirectoryWizardPage extends AbstractPublishWizardPage implements IHasPersistableSettings {
        private static final String DIALOG_SETTING_OUTPUT_DIRECTORY = "dialogSettingOutputDirectory";
@@ -35,20 +33,11 @@ public class SelectDirectoryWizardPage extends AbstractPublishWizardPage impleme
        private DirectoryDialog folderDialog;
        private Text text_folder;
 
-       /**
-        * <p>Constructor for SelectFolderWizardPage.</p>
-        *
-        * @param pageName a {@link java.lang.String} object.
-        */
        public SelectDirectoryWizardPage(String pageName) {
                super(pageName);
                setTitle("Select a folder");
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
-        */
-       /** {@inheritDoc} */
        public void createControl(Composite parent) {
 //             configurator = ((IPublishConfigurer) getWizard()).getConfigurator();
                
@@ -63,14 +52,12 @@ public class SelectDirectoryWizardPage extends AbstractPublishWizardPage impleme
                text_folder = new Text(composite, SWT.BORDER);
                text_folder.setEditable(false);
                text_folder.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
-
+               
                Button button = new Button(composite, SWT.PUSH);
                button.setText("Browse...");
 
                button.addSelectionListener(new SelectionAdapter(){
-                       /* (non-Javadoc)
-                       * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
-                       */
+                       
                        @Override
                        public void widgetSelected(SelectionEvent e) {
                                super.widgetSelected(e);
@@ -80,12 +67,12 @@ public class SelectDirectoryWizardPage extends AbstractPublishWizardPage impleme
                                }
                        }
                });
-               
+
                loadSettings();
-               
+
                setControl(composite);
        }
-       
+
        @Override
        public void loadSettings() {
                String directory = getDialogSettingValue(DIALOG_SETTING_OUTPUT_DIRECTORY);
@@ -94,7 +81,7 @@ public class SelectDirectoryWizardPage extends AbstractPublishWizardPage impleme
                        setDirectory(directory);
                }
        }
-       
+
        private void setDirectory(String directory){
                text_folder.setText(directory);
                getConfigurator().setExportFolder(new File(directory));
@@ -103,10 +90,9 @@ public class SelectDirectoryWizardPage extends AbstractPublishWizardPage impleme
                
                setPageComplete(true);
        }
-       
-       /** {@inheritDoc} */
+
        @Override
        public boolean isPageComplete() {
                return getConfigurator().getExportFolder() != null;
        }
-}
+}
\ No newline at end of file
index 7ab82d065652613c7f60a25d678188cb32698717..e9c66ccbacd4b6eb2b434e4f762b79fa2078e06f 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.printpublisher.wizard;
 
 import java.util.ArrayList;
@@ -38,7 +37,6 @@ import eu.etaxonomy.cdm.print.XMLHelper;
  *
  * @author n.hoffmann
  * @created Aug 6, 2010
- * @version 1.0
  */
 public class SelectFeatureTreeWizardPage extends AbstractPublishWizardPage
        implements ISelectionChangedListener, IHasPersistableSettings{
@@ -46,20 +44,11 @@ public class SelectFeatureTreeWizardPage extends AbstractPublishWizardPage
        private static final String DIALOG_SETTING_FEATURE_TREE_UUID = "dialogSettingFeatureTreeUuid";
        private ListViewer viewer;
 
-       /**
-        * <p>Constructor for SelectFeatureTreeWizardPage.</p>
-        *
-        * @param pageName a {@link java.lang.String} object.
-        */
        protected SelectFeatureTreeWizardPage(String pageName) {
                super(pageName);
                setTitle("Select Feature Tree");
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
-        */
-       /** {@inheritDoc} */
        @Override
        public void createControl(Composite parent) {
                setPageComplete(false);
@@ -115,7 +104,6 @@ public class SelectFeatureTreeWizardPage extends AbstractPublishWizardPage
                }
        }
 
-       /** {@inheritDoc} */
        @Override
        public void selectionChanged(SelectionChangedEvent event) {
                IStructuredSelection selection = (IStructuredSelection) event.getSelection();
@@ -126,7 +114,6 @@ public class SelectFeatureTreeWizardPage extends AbstractPublishWizardPage
 
                setPageComplete(true);
 
-
                Element featureTreeElement = (Element) selection.getFirstElement();
 
                UUID featureTreeUuid = XMLHelper.getUuid(featureTreeElement);
@@ -153,7 +140,6 @@ public class SelectFeatureTreeWizardPage extends AbstractPublishWizardPage
                setPageComplete(featureTreeUuid != null);
        }
 
-       /** {@inheritDoc} */
        @Override
        public boolean canFlipToNextPage() {
                return isPageComplete();
@@ -190,15 +176,10 @@ public class SelectFeatureTreeWizardPage extends AbstractPublishWizardPage
                        }
                        return new Object[0];
                }
-
        }
 
        private class TermTreeLabelProvider extends LabelProvider {
 
-               /*
-                * (non-Javadoc)
-                * @see org.eclipse.jface.viewers.LabelProvider#getText(java.lang.Object)
-                */
                @Override
                public String getText(Object element) {
                        if(element instanceof Element){
@@ -207,6 +188,5 @@ public class SelectFeatureTreeWizardPage extends AbstractPublishWizardPage
                        }
                        return "no title cache";
                }
-
        }
-}
+}
\ No newline at end of file
index 3528e831b7fb5ba7f819a1559b92d6dbcac1cd89..7a1fffb8ee7feac5208a4fd3f56a95449efe0551 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.printpublisher.wizard;
 
 import org.eclipse.swt.SWT;
@@ -21,7 +20,6 @@ import org.eclipse.swt.widgets.Composite;
  *
  * @author n.hoffmann
  * @created Jul 26, 2010
- * @version 1.0
  */
 public class SelectOptionsWizardPage extends AbstractPublishWizardPage 
        implements SelectionListener, IHasPersistableSettings{
@@ -41,17 +39,11 @@ public class SelectOptionsWizardPage extends AbstractPublishWizardPage
        private Boolean doSynonymy;
        private Boolean entireBranches;
 
-       /**
-        * <p>Constructor for OptionsWizardPage.</p>
-        *
-        * @param pageName a {@link java.lang.String} object.
-        */
        protected SelectOptionsWizardPage(String pageName) {
                super(pageName);
                setTitle("Select options");
        }
        
-       /** {@inheritDoc} */
        @Override
        public void createControl(Composite parent) {
                
@@ -109,7 +101,6 @@ public class SelectOptionsWizardPage extends AbstractPublishWizardPage
                widgetSelected(null);
        }
 
-       /** {@inheritDoc} */
        @Override
        public void widgetSelected(SelectionEvent e) {
                entireBranches = button_doPublishEntireBranches.getSelection();
@@ -129,7 +120,6 @@ public class SelectOptionsWizardPage extends AbstractPublishWizardPage
                putDialogSettingValue(DIALOG_SETTING_DO_IMAGES, doImages.toString());
        }
 
-       /** {@inheritDoc} */
        @Override
        public void widgetDefaultSelected(SelectionEvent e) {}
 }
index 043f7eb2c59e071bab02e715e54b724c54b6d721..ce974cc920fab1b240b096ccaacdba840b3bb36c 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.printpublisher.wizard;
 
 import java.lang.reflect.InvocationTargetException;
@@ -53,7 +52,6 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  *
  * @author n.hoffmann
  * @created Apr 6, 2010
- * @version 1.0
  */
 public class SelectServiceWizardPage extends AbstractPublishWizardPage {
 
@@ -61,42 +59,31 @@ public class SelectServiceWizardPage extends AbstractPublishWizardPage {
        private Button button_local;
        private Button button_remote;
        private Text text_serviceUrl;
-       
+
        private TreeViewer treeViewer;
 
-       /**
-        * <p>Constructor for SelectServiceWizardPage.</p>
-        *
-        * @param pageName a {@link java.lang.String} object.
-        */
        protected SelectServiceWizardPage(String pageName) {
                super(pageName);
                setTitle("Select a Service");
        }
-       
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
-        */
-       /** {@inheritDoc} */
+
        public void createControl(Composite parent) {
-               
+
                composite = new Composite(parent, SWT.NULL);
                composite.setLayout(new GridLayout());
-               
+
                RadioSelectionListener listener = new RadioSelectionListener();
-               
+
                Group radioGroup = new Group(composite, SWT.SHADOW_ETCHED_IN);
                radioGroup.setLayout(new GridLayout());
-               
+
                button_local = new Button(radioGroup, SWT.RADIO);
-                               
+
                button_local.setText("Local (By selecting this option the database you are currently " +
                                "connected to will be used to gather data.)");
-               
+
                button_local.addSelectionListener(listener);
-               
-               
-                                               
+                               
                button_remote = new Button(radioGroup, SWT.RADIO);
                button_remote.setText("Remote");
                button_remote.addSelectionListener(listener);
@@ -105,16 +92,16 @@ public class SelectServiceWizardPage extends AbstractPublishWizardPage {
                text_serviceUrl.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
                text_serviceUrl.setText("http://");     
                text_serviceUrl.addModifyListener(new ModifyListener() {
-                       
+
                        public void modifyText(ModifyEvent e) {
                                String text = text_serviceUrl.getText();
-                               
+
                                if(!text.endsWith("/")){
                                        SelectServiceWizardPage.this.setErrorMessage("Webservice URL has to end with \"/\"");
                                        setPageComplete(false);
                                        return;
                                }
-                               
+
                                URL url = null;
                                try {
                                        url = new URL(text);
@@ -123,35 +110,33 @@ public class SelectServiceWizardPage extends AbstractPublishWizardPage {
                                        setPageComplete(false);
                                        return;
                                }
-                               
+
                                getConfigurator().setWebserviceUrl(url);
-                               
+
                                SelectServiceWizardPage.this.setErrorMessage(null);
-                                       
+       
                        }
                });
-               
+
                treeViewer = new TreeViewer(composite);
-               
+
                treeViewer.setContentProvider(new ContentProvider());
                treeViewer.setLabelProvider(new LabelProvider());
-               
+
                treeViewer.addSelectionChangedListener(new SelectionChangedListener());
-               
+
                treeViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-               
-               
+
                if(CdmStore.isActive()){
                        enableLocal();
                }else{
                        enableRemote();
                        button_local.setEnabled(false);
                }
-               
+
                setControl(composite);
-               
        }
-       
+
        private class RadioSelectionListener extends SelectionAdapter{
                @Override
                public void widgetSelected(SelectionEvent e) {
@@ -162,45 +147,37 @@ public class SelectServiceWizardPage extends AbstractPublishWizardPage {
                        }
                }
        }
-       
+
        private void enableRemote() {
                button_local.setSelection(false);
                button_remote.setSelection(true);
-               
+
                text_serviceUrl.setEnabled(true);
-               
+
                setConfigurator(PublishConfigurator.NewRemoteInstance());
                getConfigurator().addOutputModule(getOutputModule());
        }
-
+       
        private void enableLocal() {
                button_remote.setSelection(false);
                button_local.setSelection(true);
-               
+
                text_serviceUrl.setEnabled(false);
-               
+
                setConfigurator(PublishConfigurator.NewLocalInstance((ICdmRepository) CdmStore.getCurrentApplicationConfiguration()));
                getConfigurator().addOutputModule(getOutputModule());
                refresh();
        }
-       
-       /*
-        * (non-Javadoc)
-        * @see org.eclipse.jface.wizard.WizardPage#canFlipToNextPage()
-        */
-       /** {@inheritDoc} */
+
        @Override
        public boolean canFlipToNextPage() {    
                return isPageComplete();
        }
        
-       /**
-        * <p>refresh</p>
-        */
        public void refresh(){
-               
+
                if(getConfigurator() != null){
-               
+
                        IRunnableWithProgress runnable = new IRunnableWithProgress(){
 
                                @Override
@@ -215,11 +192,11 @@ public class SelectServiceWizardPage extends AbstractPublishWizardPage {
                                                public void run() {
                                                        treeViewer.setInput(classifications);
                                                }
-                                               
+
                                        });
                                        monitor.done();
                                }
-                               
+
                        };
                        try {
                                getContainer().run(true, false, runnable);
@@ -231,11 +208,6 @@ public class SelectServiceWizardPage extends AbstractPublishWizardPage {
                }
        }
                
-       /*
-        * (non-Javadoc)
-        * @see org.eclipse.jface.wizard.WizardPage#isPageComplete()
-        */
-       /** {@inheritDoc} */
        @Override
        public boolean isPageComplete() {
                boolean complete = true;
@@ -306,8 +278,7 @@ public class SelectServiceWizardPage extends AbstractPublishWizardPage {
 
                public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
                        
-               }
-               
+               }       
        }
        
        private class LabelProvider  extends ColumnLabelProvider
@@ -324,8 +295,6 @@ public class SelectServiceWizardPage extends AbstractPublishWizardPage {
                                return XMLHelper.getTitleCache(xmlElement);
                        }
                        return "no title cache";
-               }
-               
+               }       
        }
-       
-}
+}
\ No newline at end of file
index 30d7d51c88227abc91b542a349a7b6c913a97dd5..f34ec33c4a993d53fb93f91a1466791556495ca9 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.printpublisher.wizard;
 
 import java.lang.reflect.InvocationTargetException;
@@ -25,7 +24,6 @@ import org.eclipse.jface.viewers.Viewer;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Display;
 import org.jdom.Element;
@@ -40,32 +38,18 @@ import eu.etaxonomy.taxeditor.model.MessagingUtils;
  *
  * @author n.hoffmann
  * @created Apr 6, 2010
- * @version 1.0
  */
 public class SelectTaxaWizardPage extends AbstractPublishWizardPage {
 
        private Composite composite;
 
        private TreeViewer treeViewer;
-       
-       private Button button_refresh;
 
-       /**
-        * <p>Constructor for SelectTaxaWizardPage.</p>
-        *
-        * @param pageName a {@link java.lang.String} object.
-        */
        public SelectTaxaWizardPage(String pageName) {
                super(pageName);
                setTitle("Select Taxa to export.");
-               
-               
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
-        */
-       /** {@inheritDoc} */
        public void createControl(Composite parent) {           
                composite = new Composite(parent, SWT.NULL);
                composite.setLayout(new GridLayout());
@@ -78,17 +62,14 @@ public class SelectTaxaWizardPage extends AbstractPublishWizardPage {
                treeViewer.addSelectionChangedListener(new SelectionChangedListener());
                
                treeViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-                               
+               
                setControl(composite);
        }
-               
-       /**
-        * <p>refresh</p>
-        */
+
        public void refresh(){
                
                if(getConfigurator() != null){
-               
+
                        IRunnableWithProgress runnable = new IRunnableWithProgress(){
 
                                @Override
@@ -97,15 +78,12 @@ public class SelectTaxaWizardPage extends AbstractPublishWizardPage {
                                        final List<Element> classifications = factory.getClassifications();
                                        
                                        Display.getDefault().asyncExec(new Runnable(){
-
                                                @Override
                                                public void run() {
                                                        treeViewer.setInput(classifications);
                                                }
-                                               
                                        });
                                }
-                               
                        };
                        try {
                                getContainer().run(true, false, runnable);
@@ -128,7 +106,6 @@ public class SelectTaxaWizardPage extends AbstractPublishWizardPage {
                                setPageComplete(true);
                        }
                }
-               
        }
        
        private class ContentProvider implements ITreeContentProvider{
@@ -143,7 +120,6 @@ public class SelectTaxaWizardPage extends AbstractPublishWizardPage {
                                IXMLEntityFactory factory = getConfigurator().getFactory();
                                
                                return factory != null ? factory.getChildNodes(element).toArray() : new Object[]{};
-                               
                        }
                        
                        return new Object[]{};
@@ -168,7 +144,6 @@ public class SelectTaxaWizardPage extends AbstractPublishWizardPage {
                public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
                        
                }
-               
        }
        
        private class LabelProvider  extends ColumnLabelProvider
@@ -189,15 +164,13 @@ public class SelectTaxaWizardPage extends AbstractPublishWizardPage {
                
        }
        
-       /** {@inheritDoc} */
        @Override
        public boolean canFlipToNextPage() {
                return isPageComplete();
        }
        
-       /** {@inheritDoc} */
        @Override
        public boolean isPageComplete() {
                return getConfigurator().getSelectedTaxonNodeElements() != null && getConfigurator().getSelectedTaxonNodeElements().size() > 0;
        }
-}
+}
\ No newline at end of file
index bb4d57b7f7c658847cea4919534e51d9674878c7..8130a07682e99c70b19bece78a15f31f3cba5f41 100644 (file)
@@ -41,11 +41,11 @@ public class AddFeatureOperation extends AbstractPostOperation<Feature> {
     private UUID featureUuid;
 
     public AddFeatureOperation(UUID featureUuid, TermNodeDto node,
-            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
+            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled<Feature> cdmEntitySessionEnabled) {
         this(featureUuid, node.getUuid(), 0, postOperationEnabled, cdmEntitySessionEnabled);
     }
     public AddFeatureOperation(UUID featureUuid, UUID nodeUuid, int position,
-            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
+            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled<Feature> cdmEntitySessionEnabled) {
         super("Add Feature", StoreUtil.getUndoContext(), null, postOperationEnabled, cdmEntitySessionEnabled);
 
         this.nodeUuid = nodeUuid;
@@ -73,5 +73,4 @@ public class AddFeatureOperation extends AbstractPostOperation<Feature> {
     public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
         return null;
     }
-
-}
+}
\ No newline at end of file
index 59341e0d4ccad9c20a39c5a79d1426c6528623f9..27f2e8f8bbcce12d760a29c6dae74e4b6a30801c 100644 (file)
@@ -39,7 +39,7 @@ public class AddOntologyTermOperation extends AbstractPostOperation<TermNode> {
     private TermVocabulary vocabulary;
 
     public AddOntologyTermOperation(OntologyTermWrapper wrapper, UUID targetUuid, TermVocabulary vocabulary,
-            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
+            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled<TermNode> cdmEntitySessionEnabled) {
         super("Add ontology term", StoreUtil.getUndoContext(), null, postOperationEnabled, cdmEntitySessionEnabled);
         this.wrapper = wrapper;
         this.targetUuid = targetUuid;
index 98f4ca1e14b5c80984522a5a674caaae3117f9db..da0336568617ff70e92da03facdc04760482ec76 100644 (file)
@@ -24,12 +24,11 @@ import eu.etaxonomy.taxeditor.store.StoreUtil;
 /**
  * @author pplitzner
  * @since Apr 30, 2018
- *
  */
 public class CreateFeatureTreeOperation extends AbstractPostOperation<TermTree>{
 
     public CreateFeatureTreeOperation(TermTree element,
-            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
+            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled<TermTree> cdmEntitySessionEnabled) {
         super("Create Feature Tree", StoreUtil.getUndoContext(), element, postOperationEnabled, cdmEntitySessionEnabled);
     }
 
@@ -48,5 +47,4 @@ public class CreateFeatureTreeOperation extends AbstractPostOperation<TermTree>{
     public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
         return null;
     }
-
-}
+}
\ No newline at end of file
index 4aac2b3260c6cb93be644e224faed60c8622a3b3..3e038431b9a6435db078ea8bf3a83ed9efe48435 100644 (file)
@@ -27,10 +27,8 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
 import eu.etaxonomy.taxeditor.store.StoreUtil;
 
 /**
- *
  * @author pplitzner
  * @date 21.01.2019
- *
  */
 public class MoveFeatureOperation extends AbstractPostOperation<TermNode>{
 
@@ -40,14 +38,9 @@ public class MoveFeatureOperation extends AbstractPostOperation<TermNode>{
     private int currentOperation;
     private int position;
 
-//    protected IPostOperationEnabled postOperationEnabled;
-
-    private ICdmEntitySessionEnabled cdmEntitySessionEnabled;
-
-
     public MoveFeatureOperation(UUID droppedNodeUuid, UUID termUuid, UUID targetUuid, int position,
             int currentOperation,
-            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
+            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled<TermNode> cdmEntitySessionEnabled) {
         super(currentOperation == DND.DROP_MOVE ? "Move Feature" : "Copy Feature",StoreUtil.getUndoContext(),null, postOperationEnabled, cdmEntitySessionEnabled);
         this.droppedNodeUuid = droppedNodeUuid;
         this.targetUuid = targetUuid;
index aa3c2b82ced1343c347a2f75ee0ff33c3dec628b..e55df30e69cd849b0898b58553803d0c347b1096 100644 (file)
@@ -24,9 +24,9 @@ import eu.etaxonomy.cdm.model.media.Media;
 /**
  * @author pplitzner
  * @date 04.12.2013
- *
  */
-public abstract class AbstractDescriptionPostOperation<T extends IDescribable, D extends DescriptionBase> extends AbstractPostOperation<T> {
+public abstract class AbstractDescriptionPostOperation<T extends IDescribable, D extends DescriptionBase> 
+               extends AbstractPostOperation<T> {
 
     protected D description;
     protected IdentifiableSource source;
index d324fb7193cbe8d55e30c7d1e983d7ab5e522f6c..13a51ee7dcb28329ccee5856e2fb0ebce4d79254 100644 (file)
@@ -15,17 +15,16 @@ import org.eclipse.core.commands.operations.IUndoContext;
 import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.Status;
 
+import eu.etaxonomy.cdm.model.common.CdmBase;
 import eu.etaxonomy.cdm.model.common.ICdmBase;
 import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
 
 /**
  * @author pplitzner
  * @date 03.12.2013
- *
  */
 public abstract class AbstractPostOperation<T extends ICdmBase> extends AbstractOperation {
 
-
     /**
      * A reference to the {@link ICdmBase} element the concrete operation is working on
      */
@@ -35,14 +34,8 @@ public abstract class AbstractPostOperation<T extends ICdmBase> extends Abstract
 
     protected IPostOperationEnabled postOperationEnabled;
 
-    private ICdmEntitySessionEnabled cdmEntitySessionEnabled;
-
+    private ICdmEntitySessionEnabled<T> cdmEntitySessionEnabled;
 
-    /**
-     * @param label
-     * @param element
-     * @param postOperationEnabled
-     */
     public AbstractPostOperation(String label, IUndoContext undoContext,
             T element, IPostOperationEnabled postOperationEnabled) {
         this(label, undoContext, element, postOperationEnabled, null);
@@ -50,7 +43,7 @@ public abstract class AbstractPostOperation<T extends ICdmBase> extends Abstract
 
     public AbstractPostOperation(String label, IUndoContext undoContext,
             T element, IPostOperationEnabled postOperationEnabled,
-            ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
+            ICdmEntitySessionEnabled<T> cdmEntitySessionEnabled) {
         super(label);
         addContext(undoContext);
         this.element = element;
@@ -129,7 +122,7 @@ public abstract class AbstractPostOperation<T extends ICdmBase> extends Abstract
 //        return Status.OK_STATUS;
 //    }
 
-    public ICdmEntitySessionEnabled getCdmEntitySessionEnabled() {
+    public ICdmEntitySessionEnabled<T> getCdmEntitySessionEnabled() {
         return cdmEntitySessionEnabled;
     }
 
index b3d19f906c11894256577d1231a1f21431d6ac29..abc1ed81958607c9b85c27592ee62e69dff39ab9 100644 (file)
@@ -6,7 +6,6 @@
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
-
 package eu.etaxonomy.taxeditor.operation;
 
 import java.util.UUID;
@@ -26,7 +25,6 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  * @author p.ciardelli
  * @author n.hoffmann
  * @created 14.01.2009
- * @version 1.0
  */
 public abstract class AbstractPostTaxonOperation extends AbstractPostOperation<Taxon> {
 
@@ -49,13 +47,13 @@ public abstract class AbstractPostTaxonOperation extends AbstractPostOperation<T
         this(label, undoContext, taxon, postOperationEnabled, null, null);
     }
     public AbstractPostTaxonOperation(String label, IUndoContext undoContext,
-            Taxon taxon, IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled, UISynchronize sync) {
+            Taxon taxon, IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled<Taxon> cdmEntitySessionEnabled, UISynchronize sync) {
         super(label, undoContext, taxon, postOperationEnabled, cdmEntitySessionEnabled);
         this.sync = sync;
     }
 
     public AbstractPostTaxonOperation(String label, IUndoContext undoContext,
-            Taxon taxon, IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
+            Taxon taxon, IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled<Taxon> cdmEntitySessionEnabled) {
         super(label, undoContext, taxon, postOperationEnabled, cdmEntitySessionEnabled);
 
     }
@@ -66,7 +64,7 @@ public abstract class AbstractPostTaxonOperation extends AbstractPostOperation<T
     }
 
     public AbstractPostTaxonOperation(String label, IUndoContext undoContext, TaxonNodeDto taxonNode,
-            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
+            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled<Taxon> cdmEntitySessionEnabled) {
         this(label, undoContext, (Taxon) CdmStore.getService(ITaxonService.class).find(taxonNode.getTaxonUuid()), postOperationEnabled, cdmEntitySessionEnabled, null);
         this.taxonNode = taxonNode;
     }
@@ -98,7 +96,7 @@ public abstract class AbstractPostTaxonOperation extends AbstractPostOperation<T
     }
 
     public AbstractPostTaxonOperation(String label, IUndoContext undoContext,
-            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
+            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled<Taxon> cdmEntitySessionEnabled) {
         super(label, undoContext, null, postOperationEnabled, cdmEntitySessionEnabled);
     }
 
@@ -106,7 +104,6 @@ public abstract class AbstractPostTaxonOperation extends AbstractPostOperation<T
         this(label, undoContext, taxonUuid, null);
     }
 
-
     public UISynchronize getSync() {
         return sync;
     }
@@ -114,5 +111,4 @@ public abstract class AbstractPostTaxonOperation extends AbstractPostOperation<T
     public void setSync(UISynchronize sync) {
         this.sync = sync;
     }
-
-}
+}
\ No newline at end of file
index 03b5e2e1375bd2da70de1d0656d96d2f58b0f02f..51ec49b0071034bb64adf7126a55bae84ee65968 100644 (file)
@@ -30,7 +30,6 @@ import eu.etaxonomy.taxeditor.preference.menu.CdmPreferencePage;
 /**
  * @author n.hoffmann
  * @created Dec 3, 2010
- * @version 1.0
  */
 public class LanguageEditorPreferencePage extends CdmPreferencePage {
 
@@ -153,5 +152,4 @@ public class LanguageEditorPreferencePage extends CdmPreferencePage {
         }
                return super.performOk();
        }
-
-}
+}
\ No newline at end of file
index ae3e4eba3e6f59ffc0d6cfb51e454d3cc114e24b..27dbf357fa5fd6ed21c247322ca242dfc10a0710 100755 (executable)
@@ -23,10 +23,8 @@ import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 
 /**
- *
  * @author pplitzner
  * @since Apr 10, 2019
- *
  */
 public class DeleteTypeDesignationOperation extends AbstractPostOperation<TaxonName> {
 
@@ -34,10 +32,9 @@ public class DeleteTypeDesignationOperation extends AbstractPostOperation<TaxonN
 
     public DeleteTypeDesignationOperation(String label, IUndoContext undoContext, TaxonName taxonName,
             TypeDesignationBase<?> typeDesignation, IPostOperationEnabled postOperationEnabled,
-            ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
+            ICdmEntitySessionEnabled<TaxonName> cdmEntitySessionEnabled) {
         super(label, undoContext, taxonName, postOperationEnabled, cdmEntitySessionEnabled);
         this.typeDesignation = typeDesignation;
-
     }
 
     @Override
@@ -65,5 +62,4 @@ public class DeleteTypeDesignationOperation extends AbstractPostOperation<TaxonN
         element.removeTypeDesignation(typeDesignation);
         return postExecute(element);
     }
-
-}
+}
\ No newline at end of file
index 691d75b60400a002f28fde5c4713865b0de66175..b25044ea69d3911a6929a962c2b7d913fbca23a9 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.operation;
 
 import org.eclipse.core.commands.operations.AbstractOperation;
@@ -26,7 +25,6 @@ import eu.etaxonomy.taxeditor.test.MockConversationEnabled;
 /**
  * @author n.hoffmann
  * @created 15.04.2009
- * @version 1.0
  */
 public abstract class BaseOperationTest extends RemotingSessionAwareTest {
 
@@ -44,5 +42,4 @@ public abstract class BaseOperationTest extends RemotingSessionAwareTest {
        public void initializeOperations() {
            RemotingCdmUpdateOperation.throwExceptions = true;
        }
-
-}
+}
\ No newline at end of file
index 6481a27da4f6bd42706fa7e0afb37ff042bac3c1..a95f20481a1a5dca1ee189ef33f2ab3839622de1 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.workbench;
 
 import java.io.IOException;
@@ -18,12 +17,10 @@ import org.eclipse.e4.core.di.annotations.Execute;
 /**
  * @author p.ciardelli
  * @created 04.09.2009
- * @version 1.0
  */
 public class OpenExternalAboutPlatformHandler {
        private static final Logger logger = Logger.getLogger(OpenExternalAboutPlatformHandler.class);
 
-
        @Execute
        public Object execute() {
                String url = "https://cybertaxonomy.eu/";
@@ -37,4 +34,4 @@ public class OpenExternalAboutPlatformHandler {
 
                return null;
        }
-}
+}
\ No newline at end of file
index 63cccdbbe6255921b6dedeff245824ccc7adf81e..b55ae3c88e8c69e5414c111dd9ae78437ace624b 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.workbench;
 
 import java.io.IOException;
@@ -20,9 +19,9 @@ import org.eclipse.e4.core.di.annotations.Execute;
  *
  * @author p.ciardelli
  * @created 04.09.2009
- * @version 1.0
  */
 public class OpenExternalParserHelpHandler {
+       
        private static final Logger logger = Logger.getLogger(OpenExternalParserHelpHandler.class);
 
        @Execute
@@ -39,4 +38,4 @@ public class OpenExternalParserHelpHandler {
 
                return null;
        }
-}
+}
\ No newline at end of file