ref #8613: using default reference also when adding new source in distribution editor
authorKatja Luther <k.luther@bgbm.org>
Thu, 24 Oct 2019 08:06:10 +0000 (10:06 +0200)
committerKatja Luther <k.luther@bgbm.org>
Thu, 24 Oct 2019 08:06:10 +0000 (10:06 +0200)
eu.etaxonomy.taxeditor.editor/META-INF/MANIFEST.MF
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionEditor.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionEditorPart.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/IDistributionEditorPart.java [new file with mode: 0755]

index 76ec834a679282e8e34f031e6aafcba9b8631cd3..bececcb6a26749e3888195104631e0abb2441537 100644 (file)
@@ -16,6 +16,7 @@ Export-Package: eu.etaxonomy.taxeditor.editor,
  eu.etaxonomy.taxeditor.editor.name.e4,
  eu.etaxonomy.taxeditor.editor.name.handler,
  eu.etaxonomy.taxeditor.editor.name.operation,
+ eu.etaxonomy.taxeditor.editor.view.checklist.e4,
  eu.etaxonomy.taxeditor.editor.view.concept,
  eu.etaxonomy.taxeditor.editor.view.derivate,
  eu.etaxonomy.taxeditor.editor.view.descriptive,
index 9b2940453249c4f4012962f5abdfa695135f1c9d..c9a49d66c814fc680dffa00cc5b0c1081658df95 100755 (executable)
@@ -92,6 +92,7 @@ import eu.etaxonomy.cdm.model.term.TermLanguageComparator;
 import eu.etaxonomy.cdm.model.term.TermType;
 import eu.etaxonomy.cdm.model.term.TermVocabulary;
 import eu.etaxonomy.taxeditor.editor.EditorUtil;
+import eu.etaxonomy.taxeditor.editor.IDistributionEditor;
 import eu.etaxonomy.taxeditor.editor.l10n.Messages;
 import eu.etaxonomy.taxeditor.model.AbstractUtility;
 import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
@@ -106,7 +107,7 @@ import eu.etaxonomy.taxeditor.ui.dialog.selection.ReferenceSelectionDialog;
  * @since 27.11.2018
  *
  */
-public class DistributionEditor extends Composite {
+public class DistributionEditor extends Composite implements IDistributionEditor{
 
 
     private static final String DISTRIBUTION_EDITOR = "Distribution Editor"; //$NON-NLS-1$
index 660e877064fad14e808d9d3e7c7531a36c4efa06..bbc23539f27d7280103ddbe34dba903a63eb9ff1 100755 (executable)
@@ -44,7 +44,7 @@ import eu.etaxonomy.cdm.model.description.TaxonDescription;
 import eu.etaxonomy.cdm.model.taxon.Taxon;
 import eu.etaxonomy.cdm.persistence.dto.MergeResult;
 import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
-import eu.etaxonomy.taxeditor.editor.IDistributionEditor;
+import eu.etaxonomy.taxeditor.editor.IDistributionEditorPart;
 import eu.etaxonomy.taxeditor.model.IDirtyMarkable;
 import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
 import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
@@ -59,7 +59,7 @@ import eu.etaxonomy.taxeditor.workbench.part.IE4SavablePart;
  *
  */
 public class DistributionEditorPart implements IE4SavablePart, IConversationEnabled, IDirtyMarkable,
-ICdmEntitySessionEnabled, IPartContentHasSupplementalData, IPartContentHasDetails, IDistributionEditor{
+ICdmEntitySessionEnabled, IPartContentHasSupplementalData, IPartContentHasDetails, IDistributionEditorPart{
 
     private static final List<String> TAXONNODE_PROPERTY_PATH = Arrays.asList(new String[] {
             "taxon", //$NON-NLS-1$
@@ -139,7 +139,7 @@ ICdmEntitySessionEnabled, IPartContentHasSupplementalData, IPartContentHasDetail
         }
     }
 
-
+    @Override
     public DistributionEditor getEditor() {
         return editor;
     }
diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/IDistributionEditorPart.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/IDistributionEditorPart.java
new file mode 100755 (executable)
index 0000000..368986a
--- /dev/null
@@ -0,0 +1,18 @@
+/**
+* Copyright (C) 2019 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;
+
+/**
+ * @author k.luther
+ * @since 24.10.2019
+ */
+public interface IDistributionEditorPart {
+    public IDistributionEditor getEditor();
+
+}