Merge branch 'develop' into LibrAlign
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 23 Jan 2017 11:49:40 +0000 (12:49 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 23 Jan 2017 11:49:40 +0000 (12:49 +0100)
136 files changed:
eu.etaxonomy.taxeditor.application/META-INF/MANIFEST.MF
eu.etaxonomy.taxeditor.application/pom.xml
eu.etaxonomy.taxeditor.bulkeditor/META-INF/MANIFEST.MF
eu.etaxonomy.taxeditor.bulkeditor/pom.xml
eu.etaxonomy.taxeditor.cdmlib/.classpath
eu.etaxonomy.taxeditor.cdmlib/META-INF/MANIFEST.MF
eu.etaxonomy.taxeditor.cdmlib/build.properties
eu.etaxonomy.taxeditor.cdmlib/pom.xml
eu.etaxonomy.taxeditor.editor/META-INF/MANIFEST.MF
eu.etaxonomy.taxeditor.editor/pom.xml
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/handler/DeleteHandler.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/media/handler/DeleteMediaHandler.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/operation/DeleteMediaOperation.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/operation/RemoveImageFromDescriptionElementOperation.java
eu.etaxonomy.taxeditor.feature.jre.linux64/feature.xml
eu.etaxonomy.taxeditor.feature.jre.linux64/pom.xml
eu.etaxonomy.taxeditor.feature.platform/feature.xml
eu.etaxonomy.taxeditor.feature.platform/pom.xml
eu.etaxonomy.taxeditor.feature/feature.xml
eu.etaxonomy.taxeditor.feature/pom.xml
eu.etaxonomy.taxeditor.help/META-INF/MANIFEST.MF
eu.etaxonomy.taxeditor.help/pom.xml
eu.etaxonomy.taxeditor.molecular.lib/META-INF/MANIFEST.MF
eu.etaxonomy.taxeditor.molecular.lib/pom.xml
eu.etaxonomy.taxeditor.molecular/META-INF/MANIFEST.MF
eu.etaxonomy.taxeditor.molecular/pom.xml
eu.etaxonomy.taxeditor.navigation/META-INF/MANIFEST.MF
eu.etaxonomy.taxeditor.navigation/pom.xml
eu.etaxonomy.taxeditor.printpublisher/META-INF/MANIFEST.MF
eu.etaxonomy.taxeditor.printpublisher/pom.xml
eu.etaxonomy.taxeditor.store/META-INF/MANIFEST.MF
eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/messages.properties
eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/messages_de.properties
eu.etaxonomy.taxeditor.store/pom.xml
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/Messages.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/DefinedTermMenu.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/MessagingUtils.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/AbstractMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/ExtensionTypeMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/FeatureMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/LanguageMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/MarkerTypeMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/MeasurementUnitMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/NameRelationshipTypeMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/NameTypeDesignationStatusMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/NamedAreaTypeMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/NomenclaturalStatusTypeMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/PresenceAbsenceMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/PreservationMethodMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/RankMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/SpecimenTypeDesignationStatusMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/StageMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/TaxonRelationshipTypeMenuPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/deleteConfigurator/DeleteConfiguratorDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/deleteConfigurator/DeleteMediaConfiguratorComposite.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/AgentSelectionDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/ClassificationSelectionDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NameSelectionDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NomenclaturalAuthorSelectionDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NomenclaturalReferenceSelectionDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/ReferenceSelectionDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/SelectionDialogFactory.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/TaxonBaseSelectionDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/TaxonNodeSelectionDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractEntityCollectionElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractEntityCollectionSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/TeamMemberSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeAgentRelationCollectionSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescribedSpecimenSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionElementMediaSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionElementSourceSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionSourceSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/GeoScopeSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/ModifierSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/ScopeSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/StateDataSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/StatisticalMeasurementValueSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/grantedAuthority/GrantedAuthorityDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/group/MemberDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/key/ScopeRestrictionSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/key/TaxonomicScopeSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/media/MediaMetaElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/media/MediaRepresentationPartSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/media/MediaRepresentationSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/media/MediaSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameRelationshipDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NomenclaturalStatusSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NonViralNameDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/ProtologueSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/TypeDesignationSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/CollectingAreasDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/CurrentDeterminationDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DeterminationHistoryDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/GeoScopeDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/GeoScopePolyKeyDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/SourceCollectionDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/SpecimenCollectionDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/association/DerivedUnitTypeDesignationSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/derivedUnit/PreservedSpecimenCurrentDeterminationDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/derivedUnit/PreservedSpecimenSourceCollectionDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/AmplificationGelPhotoCollectionDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/CurrentSampleDesignationDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/SampleDesignationHistoryDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/SequenceContigFileCollectionDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/SequenceReferenceCollectionDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/SingleReadPherogramCollectionDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/AbstractOriginalSourceElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/AnnotationSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/CreditSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/ExtensionSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/MarkerSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/RightsSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/SourceSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/identifier/DerivedUnitFacadeIdentifierSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/identifier/IdentifierSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/user/GroupsByUserDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/MeasurementUnitCollectionElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/MeasurementUnitCollectionSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/RecommendedModifierVocabulariesCollectionSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/RecommendedModifierVocabulariesElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/StateVocabularyCollectionElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/StateVocabularyCollectionSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/StatisticalMeasureCollectionElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/StatisticalMeasureCollectionSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/selection/EntitySelectionElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/selection/NomenclaturalAuthorTeamSelectionElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/selection/TaxonNodeSelectionElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/supplementaldata/SupplementalDataViewer.java
eu.etaxonomy.taxeditor.webapp/META-INF/MANIFEST.MF
eu.etaxonomy.taxeditor.webapp/pom.xml
eu.etaxonomy.taxeditor/eu.etaxonomy.taxeditor.product
eu.etaxonomy.taxeditor/eu.etaxonomy.taxeditor.product.with.jre
eu.etaxonomy.taxeditor/pom.xml
pom.xml

index 8547ab2197eb4cf021fafcbc8fd21329db45d42d..65d8c101d8ef3dc303d7741bf859bbbe695d4cfd 100644 (file)
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: Application
 Bundle-SymbolicName: eu.etaxonomy.taxeditor.application;singleton:=true
-Bundle-Version: 4.5.0.qualifier
+Bundle-Version: 4.6.0.qualifier
 Bundle-Activator: eu.etaxonomy.taxeditor.TaxonomicEditorPlugin
 Bundle-Vendor: EDIT
 Bundle-Localization: OSGI-INF/l10n/plugin
index d10804cc1af541c27fe93b16525784e472aa8ce6..9cbf849207cd65c6d080413c05f0105cb4ab457b 100644 (file)
@@ -3,7 +3,7 @@
   <parent>
     <groupId>eu.etaxonomy</groupId>
     <artifactId>taxeditor-parent</artifactId>
-    <version>4.5.0-SNAPSHOT</version>
+    <version>4.6.0-SNAPSHOT</version>
   </parent>
 
   <modelVersion>4.0.0</modelVersion>
index ead5fedc07a41d2edd4e2af0087a4e0f84127f8d..e4d6fccef94f451519227b265aa97a2a2b0ad130 100644 (file)
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: Bulkeditor Bundle
 Bundle-SymbolicName: eu.etaxonomy.taxeditor.bulkeditor;singleton:=true
-Bundle-Version: 4.5.0.qualifier
+Bundle-Version: 4.6.0.qualifier
 Bundle-Activator: eu.etaxonomy.taxeditor.bulkeditor.internal.TaxeditorBulkeditorPlugin
 Bundle-Vendor: EDIT
 Export-Package: eu.etaxonomy.taxeditor.annotatedlineeditor,
index 9e1e8f514754cb8aac13cd2d36da073a5824d4f9..cb43dbd41a36ab80256cd07a372cdf82a0c31ff6 100644 (file)
@@ -3,7 +3,7 @@
        <parent>
                <groupId>eu.etaxonomy</groupId>
                <artifactId>taxeditor-parent</artifactId>
-               <version>4.5.0-SNAPSHOT</version>
+               <version>4.6.0-SNAPSHOT</version>
        </parent>
 
        <modelVersion>4.0.0</modelVersion>
index 8f6c238b5c847475d36edb9ef54a88aa71c0be34..86570a42443b2ffe641f618f3117774e9d32a783 100644 (file)
        <classpathentry exported="true" kind="lib" path="lib/batik-util-1.7.jar"/>\r
        <classpathentry exported="true" kind="lib" path="lib/batik-xml-1.7.jar"/>\r
        <classpathentry exported="true" kind="lib" path="lib/c3p0-0.9.5.2.jar"/>\r
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-commons-4.5.0-SNAPSHOT.jar"/>\r
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-ext-4.5.0-SNAPSHOT.jar" sourcepath="C:/Users/k.luther/.m2/repository/eu/etaxonomy/cdmlib-ext/4.3.0-SNAPSHOT/cdmlib-ext-4.5.0-SNAPSHOT-sources.jar"/>\r
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-io-4.5.0-SNAPSHOT.jar" sourcepath="C:/Users/k.luther/.m2/repository/eu/etaxonomy/cdmlib-io/4.3.0-SNAPSHOT/cdmlib-io-4.5.0-SNAPSHOT-sources.jar"/>\r
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-model-4.5.0-SNAPSHOT.jar" sourcepath="C:/Users/k.luther/.m2/repository/eu/etaxonomy/cdmlib-model/4.3.0-SNAPSHOT/cdmlib-model-4.5.0-SNAPSHOT-sources.jar"/>\r
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-4.5.0-SNAPSHOT.jar"/>\r
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-print-4.5.0-SNAPSHOT.jar"/>\r
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-remote-4.5.0-SNAPSHOT.jar"/>\r
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-services-4.5.0-SNAPSHOT.jar" sourcepath="C:/Users/k.luther/.m2/repository/eu/etaxonomy/cdmlib-services/4.3.0-SNAPSHOT/cdmlib-services-4.5.0-SNAPSHOT-sources.jar"/>\r
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-test-4.5.0-SNAPSHOT.jar"/>\r
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-commons-4.6.0-SNAPSHOT.jar"/>\r
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-ext-4.6.0-SNAPSHOT.jar" sourcepath="C:/Users/k.luther/.m2/repository/eu/etaxonomy/cdmlib-ext/4.3.0-SNAPSHOT/cdmlib-ext-4.6.0-SNAPSHOT-sources.jar"/>\r
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-io-4.6.0-SNAPSHOT.jar" sourcepath="C:/Users/k.luther/.m2/repository/eu/etaxonomy/cdmlib-io/4.3.0-SNAPSHOT/cdmlib-io-4.6.0-SNAPSHOT-sources.jar"/>\r
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-model-4.6.0-SNAPSHOT.jar" sourcepath="C:/Users/k.luther/.m2/repository/eu/etaxonomy/cdmlib-model/4.3.0-SNAPSHOT/cdmlib-model-4.6.0-SNAPSHOT-sources.jar"/>\r
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-4.6.0-SNAPSHOT.jar"/>\r
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-print-4.6.0-SNAPSHOT.jar"/>\r
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-remote-4.6.0-SNAPSHOT.jar"/>\r
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-services-4.6.0-SNAPSHOT.jar" sourcepath="C:/Users/k.luther/.m2/repository/eu/etaxonomy/cdmlib-services/4.3.0-SNAPSHOT/cdmlib-services-4.6.0-SNAPSHOT-sources.jar"/>\r
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-test-4.6.0-SNAPSHOT.jar"/>\r
        <classpathentry exported="true" kind="lib" path="lib/cglib-3.2.0.jar"/>\r
        <classpathentry exported="true" kind="lib" path="lib/cglib-nodep-3.2.0.jar"/>\r
        <classpathentry exported="true" kind="lib" path="lib/classmate-1.3.1.jar"/>\r
index 8459714a1efad926ae459fd9150e712c94258437..abadbf5bed95263506b55de439503277750f1105 100644 (file)
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: CDM Library Dependencies Plugin
 Bundle-SymbolicName: eu.etaxonomy.taxeditor.cdmlib;singleton:=true
-Bundle-Version: 4.5.0.qualifier
+Bundle-Version: 4.6.0.qualifier
 Eclipse-BundleShape: dir
 Export-Package: com.google.api,
  com.google.api.detect,
@@ -539,15 +539,15 @@ Bundle-ClassPath: .,
  lib/batik-util-1.7.jar,
  lib/batik-xml-1.7.jar,
  lib/c3p0-0.9.5.2.jar,
- lib/cdmlib-commons-4.5.0-SNAPSHOT.jar,
- lib/cdmlib-ext-4.5.0-SNAPSHOT.jar,
- lib/cdmlib-io-4.5.0-SNAPSHOT.jar,
- lib/cdmlib-model-4.5.0-SNAPSHOT.jar,
- lib/cdmlib-persistence-4.5.0-SNAPSHOT.jar,
- lib/cdmlib-print-4.5.0-SNAPSHOT.jar,
- lib/cdmlib-remote-4.5.0-SNAPSHOT.jar,
- lib/cdmlib-services-4.5.0-SNAPSHOT.jar,
- lib/cdmlib-test-4.5.0-SNAPSHOT.jar,
+ lib/cdmlib-commons-4.6.0-SNAPSHOT.jar,
+ lib/cdmlib-ext-4.6.0-SNAPSHOT.jar,
+ lib/cdmlib-io-4.6.0-SNAPSHOT.jar,
+ lib/cdmlib-model-4.6.0-SNAPSHOT.jar,
+ lib/cdmlib-persistence-4.6.0-SNAPSHOT.jar,
+ lib/cdmlib-print-4.6.0-SNAPSHOT.jar,
+ lib/cdmlib-remote-4.6.0-SNAPSHOT.jar,
+ lib/cdmlib-services-4.6.0-SNAPSHOT.jar,
+ lib/cdmlib-test-4.6.0-SNAPSHOT.jar,
  lib/cglib-3.2.0.jar,
  lib/cglib-nodep-3.2.0.jar,
  lib/classmate-1.3.1.jar,
index 2a3b698107c5ca022645096c8a4ef7226e6376bb..5b4e35ffe2a8757fc7fb45e1e852d284c5dcbcab 100644 (file)
@@ -25,15 +25,15 @@ bin.includes = META-INF/,\
                lib/batik-util-1.7.jar,\
                lib/batik-xml-1.7.jar,\
                lib/c3p0-0.9.5.2.jar,\
-               lib/cdmlib-commons-4.5.0-SNAPSHOT.jar,\
-               lib/cdmlib-ext-4.5.0-SNAPSHOT.jar,\
-               lib/cdmlib-io-4.5.0-SNAPSHOT.jar,\
-               lib/cdmlib-model-4.5.0-SNAPSHOT.jar,\
-               lib/cdmlib-persistence-4.5.0-SNAPSHOT.jar,\
-               lib/cdmlib-print-4.5.0-SNAPSHOT.jar,\
-               lib/cdmlib-remote-4.5.0-SNAPSHOT.jar,\
-               lib/cdmlib-services-4.5.0-SNAPSHOT.jar,\
-               lib/cdmlib-test-4.5.0-SNAPSHOT.jar,\
+               lib/cdmlib-commons-4.6.0-SNAPSHOT.jar,\
+               lib/cdmlib-ext-4.6.0-SNAPSHOT.jar,\
+               lib/cdmlib-io-4.6.0-SNAPSHOT.jar,\
+               lib/cdmlib-model-4.6.0-SNAPSHOT.jar,\
+               lib/cdmlib-persistence-4.6.0-SNAPSHOT.jar,\
+               lib/cdmlib-print-4.6.0-SNAPSHOT.jar,\
+               lib/cdmlib-remote-4.6.0-SNAPSHOT.jar,\
+               lib/cdmlib-services-4.6.0-SNAPSHOT.jar,\
+               lib/cdmlib-test-4.6.0-SNAPSHOT.jar,\
                lib/cglib-3.2.0.jar,\
                lib/cglib-nodep-3.2.0.jar,\
                lib/classmate-1.3.1.jar,\
index 2ebe5be1e72764150d8b0572cf933d60b0233b10..3d6fd92d281f244ff8f5818e2d02cc23f1cc72c2 100644 (file)
@@ -4,7 +4,7 @@
   <parent>\r
     <groupId>eu.etaxonomy</groupId>\r
     <artifactId>taxeditor-parent</artifactId>\r
-    <version>4.5.0-SNAPSHOT</version>\r
+    <version>4.6.0-SNAPSHOT</version>\r
   </parent>\r
   <modelVersion>4.0.0</modelVersion>\r
   <artifactId>eu.etaxonomy.taxeditor.cdmlib</artifactId>\r
index 4b3079d2ec5ed2f38cb853a70330d8ae989e3bf6..04008b3c569eece3a9b7418fe9fb0a440884ab8a 100644 (file)
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: Editor Bundle
 Bundle-SymbolicName: eu.etaxonomy.taxeditor.editor;singleton:=true
-Bundle-Version: 4.5.0.qualifier
+Bundle-Version: 4.6.0.qualifier
 Bundle-Activator: eu.etaxonomy.taxeditor.editor.internal.TaxeditorEditorPlugin
 Bundle-Vendor: %Bundle-Vendor.0
 Bundle-Localization: OSGI-INF/l10n/plugin
index 97338c6d15f319a2431ed16f4942556e8014d8b0..480f66df86d78610e85a8fd23b5ff318775be481 100644 (file)
@@ -4,7 +4,7 @@
   <parent>
        <groupId>eu.etaxonomy</groupId>
        <artifactId>taxeditor-parent</artifactId>
-    <version>4.5.0-SNAPSHOT</version>
+    <version>4.6.0-SNAPSHOT</version>
   </parent>
   
   <modelVersion>4.0.0</modelVersion>
index 7616eb9d27948f670f9d44b17982c58fde0a6326..49ce24e91c3677c9053895a13c4a88f8d108e7c4 100644 (file)
@@ -17,12 +17,15 @@ import org.eclipse.core.commands.ExecutionEvent;
 import org.eclipse.core.commands.ExecutionException;
 import org.eclipse.core.commands.common.NotDefinedException;
 import org.eclipse.core.commands.operations.IUndoContext;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.dialogs.MessageDialog;
 import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.jface.viewers.TreePath;
 import org.eclipse.jface.viewers.TreeSelection;
 import org.eclipse.ui.IWorkbenchPart;
 import org.eclipse.ui.handlers.HandlerUtil;
 
+import eu.etaxonomy.cdm.api.service.config.MediaDeletionConfigurator;
 import eu.etaxonomy.cdm.model.description.DescriptionBase;
 import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
 import eu.etaxonomy.cdm.model.description.SpecimenDescription;
@@ -33,12 +36,14 @@ import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.DeleteDescriptio
 import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.DeleteSpecimenDescriptionOperation;
 import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.DeleteTaxonDescriptionOperation;
 import eu.etaxonomy.taxeditor.editor.view.media.operation.DeleteMediaOperation;
+import eu.etaxonomy.taxeditor.editor.view.media.operation.RemoveImageFromDescriptionElementOperation;
 import eu.etaxonomy.taxeditor.model.AbstractUtility;
 import eu.etaxonomy.taxeditor.model.FeatureNodeContainer;
 import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
 import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
 import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
+import eu.etaxonomy.taxeditor.ui.dialog.deleteConfigurator.DeleteConfiguratorDialog;
 
 /**
  * <p>DeleteDescriptionHandler class.</p>
@@ -96,7 +101,26 @@ public class DeleteHandler extends AbstractHandler {
 
                                        DescriptionBase<?> imageGallery = (DescriptionBase<?>) path[0].getFirstSegment();
 
-                                       operations.add(new DeleteMediaOperation(label, undoContext, imageGallery, (Media) object, postOperationEnabled));
+                                       // TODO use undo context specific to editor
+                    MediaDeletionConfigurator config = new MediaDeletionConfigurator();
+
+                    DeleteConfiguratorDialog dialog;
+                    dialog = new DeleteConfiguratorDialog(config, HandlerUtil.getActiveShell(event), "Confirm Deletion",  null,  "Do you really want to delete the media?", MessageDialog.WARNING, new String[] { "Delete", "Skip" }, 0);
+                    int result_dialog= dialog.open();
+                    if (result_dialog != Status.OK){
+                        return null;
+                    }
+
+
+
+                    if (config.isOnlyRemoveFromGallery() || ((Media)object).getId() == 0){
+                        operations.add(new RemoveImageFromDescriptionElementOperation(label, undoContext,  (Media) object, imageGallery, postOperationEnabled));
+                    }else{
+                        operations.add(new DeleteMediaOperation(label, undoContext, imageGallery, (Media) object, config, postOperationEnabled));
+                    }
+
+
+
                                }
                                else{
                                        MessagingUtils.error(getClass(), "Selection is not valid for this delete handler", null);
index 4c87ecca134ea7fb30df7a71bfec462e6ae63203..681fd875ee7c5b7fbb3cfbe3109c52dd481a312f 100644 (file)
@@ -63,6 +63,7 @@ public class DeleteTaxonDescriptionOperation extends AbstractPostTaxonOperation
 
                monitor.worked(20);
                if (description != null){
+                   element.removeDescription(description);
                    CdmStore.getService(IDescriptionService.class).deleteDescription(description.getUuid());
                        return postExecute(description);
                }
index 1dfa1451dbbcbadfe3f2342c1a6ddb337e79ea53..cfb1c3afc8ae4dffc18690cfeec739b7403b50dc 100644 (file)
@@ -1,12 +1,13 @@
 /**
- * 
+ *
  */
 package eu.etaxonomy.taxeditor.editor.view.media.handler;
 
 import org.eclipse.core.commands.AbstractHandler;
 import org.eclipse.core.commands.ExecutionEvent;
 import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.commands.common.NotDefinedException;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.dialogs.MessageDialog;
 import org.eclipse.jface.viewers.ISelection;
 import org.eclipse.jface.viewers.TreePath;
 import org.eclipse.jface.viewers.TreeSelection;
@@ -16,15 +17,15 @@ import org.eclipse.ui.IWorkbenchPart;
 import org.eclipse.ui.forms.editor.FormEditor;
 import org.eclipse.ui.handlers.HandlerUtil;
 
+import eu.etaxonomy.cdm.api.service.config.MediaDeletionConfigurator;
 import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
 import eu.etaxonomy.cdm.model.media.ImageFile;
 import eu.etaxonomy.cdm.model.taxon.Taxon;
 import eu.etaxonomy.taxeditor.editor.EditorUtil;
 import eu.etaxonomy.taxeditor.editor.TaxonEditorInput;
-import eu.etaxonomy.taxeditor.editor.view.media.operation.RemoveImageFromDescriptionElementOperation;
-import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
 import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
+import eu.etaxonomy.taxeditor.ui.dialog.deleteConfigurator.DeleteConfiguratorDialog;
 
 /**
  * <p>DeleteMediaHandler class.</p>
@@ -38,10 +39,11 @@ public class DeleteMediaHandler extends AbstractHandler {
         * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
         */
        /** {@inheritDoc} */
-       public Object execute(ExecutionEvent event) throws ExecutionException {
+       @Override
+    public Object execute(ExecutionEvent event) throws ExecutionException {
                IWorkbenchPart part = HandlerUtil.getActivePart(event);
                IPostOperationEnabled postOperationEnabled = (part instanceof IPostOperationEnabled) ? (IPostOperationEnabled) part : null;
-                               
+
                IEditorPart editor = HandlerUtil.getActiveEditor(event);
                if (editor instanceof FormEditor) {
                        editor = ((FormEditor) editor).getActiveEditor();
@@ -49,11 +51,11 @@ public class DeleteMediaHandler extends AbstractHandler {
                IEditorInput input = editor.getEditorInput();
                if (input instanceof TaxonEditorInput) {
                        Taxon taxon = ((TaxonEditorInput) input).getTaxon();
-                       
+
                        ISelection selection = HandlerUtil.getCurrentSelection(event);
                        if (selection instanceof TreeSelection) {
                                TreePath[] paths = ((TreeSelection) selection).getPaths();
-                               
+
                                int count = paths[0].getSegmentCount();
                                DescriptionElementBase element = null;
                                for (int i = 0; i < count; i++ ) {
@@ -63,16 +65,27 @@ public class DeleteMediaHandler extends AbstractHandler {
                                        }
                                }
                                ImageFile image = (ImageFile) paths[0].getLastSegment();
-                               
+
                                AbstractPostOperation operation = null;
-                               try {
-                                       // TODO use undo context specific to editor
-                                       operation = new RemoveImageFromDescriptionElementOperation(event.getCommand().getName(), 
-                                                       EditorUtil.getUndoContext(), taxon, image, element, postOperationEnabled);
-                                       EditorUtil.executeOperation(operation);
-                               } catch (NotDefinedException e) {
-                                       MessagingUtils.warn(getClass(), "Command name not set.");
-                               }
+                               // TODO use undo context specific to editor
+                MediaDeletionConfigurator config = new MediaDeletionConfigurator();
+
+                DeleteConfiguratorDialog dialog;
+                dialog = new DeleteConfiguratorDialog(config, HandlerUtil.getActiveShell(event), "Confirm Deletion",  null,  "Do you really want to delete the media?", MessageDialog.WARNING, new String[] { "Delete", "Skip" }, 0);
+                int result_dialog= dialog.open();
+                if (result_dialog != Status.OK){
+                    return null;
+                }
+
+
+//
+//                                 if (config.isOnlyRemoveFromGallery()){
+//                                     operation = new RemoveImageFromDescriptionElementOperation(event.getCommand().getName(), EditorUtil.getUndoContext(), taxon, image, element, postOperationEnabled);
+//                                 }else{
+//                                     operation = new DeleteMediaOperation(event.getCommand().getName(), EditorUtil.getUndoContext(), element, image, config, postOperationEnabled);
+//                                 }
+
+                EditorUtil.executeOperation(operation);
                        }
                }
                return null;
index a85403497ca9337f6d70be3ff6297aa6062b48e6..cb52a8cb966a55157febfc46fcc57128c1381a59 100644 (file)
@@ -15,11 +15,14 @@ import org.eclipse.core.runtime.IAdaptable;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
 
+import eu.etaxonomy.cdm.api.service.IMediaService;
+import eu.etaxonomy.cdm.api.service.config.MediaDeletionConfigurator;
 import eu.etaxonomy.cdm.api.utility.ImagesUtility;
 import eu.etaxonomy.cdm.model.description.DescriptionBase;
 import eu.etaxonomy.cdm.model.media.Media;
 import eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation;
 import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
+import eu.etaxonomy.taxeditor.store.CdmStore;
 
 /**
  * <p>DeleteMediaOperation class.</p>
@@ -34,6 +37,8 @@ public class DeleteMediaOperation extends AbstractPostTaxonOperation {
 
        private final DescriptionBase<?> description;
 
+       private final MediaDeletionConfigurator config;
+
        /**
         * <p>Constructor for DeleteMediaOperation.</p>
         *
@@ -44,9 +49,9 @@ public class DeleteMediaOperation extends AbstractPostTaxonOperation {
         * @param postOperationEnabled a {@link eu.etaxonomy.taxeditor.operation.IPostOperationEnabled} object.
         */
        public DeleteMediaOperation(String label, IUndoContext undoContext,
-                       DescriptionBase<?> description, Media media, IPostOperationEnabled postOperationEnabled) {
+               DescriptionBase<?> description, Media media, MediaDeletionConfigurator config, IPostOperationEnabled postOperationEnabled) {
                super(label, undoContext, postOperationEnabled);
-
+               this.config = config;
                this.media = media;
                this.description = description;
        }
@@ -59,8 +64,10 @@ public class DeleteMediaOperation extends AbstractPostTaxonOperation {
        public IStatus execute(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
 
+           ImagesUtility.removeMediaFromGallery(description, media);
+
                monitor.worked(20);
-       ImagesUtility.removeMediaFromGallery(description, media);
+               CdmStore.getService(IMediaService.class).delete(media.getUuid(), config);
                monitor.worked(40);
 
                return postExecute(null);
index bef1115e9fc0151d14358211da1c3984192980d5..b79de0f78c9d3a66f6ae3dc8114bb38a7cf96125 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -16,9 +16,8 @@ import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
 
 import eu.etaxonomy.cdm.api.utility.ImagesUtility;
-import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
-import eu.etaxonomy.cdm.model.media.ImageFile;
-import eu.etaxonomy.cdm.model.taxon.Taxon;
+import eu.etaxonomy.cdm.model.description.DescriptionBase;
+import eu.etaxonomy.cdm.model.media.Media;
 import eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation;
 import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
 
@@ -31,9 +30,9 @@ import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
  * @version 1.0
  */
 public class RemoveImageFromDescriptionElementOperation extends AbstractPostTaxonOperation {
-       
-       private DescriptionElementBase element;
-       private ImageFile image;
+
+       private DescriptionBase element;
+       private Media media;
 
        /**
         * <p>Constructor for RemoveImageFromDescriptionElementOperation.</p>
@@ -43,14 +42,15 @@ public class RemoveImageFromDescriptionElementOperation extends AbstractPostTaxo
         * @param element a {@link eu.etaxonomy.cdm.model.description.DescriptionElementBase} object.
         * @param postOperationEnabled a {@link eu.etaxonomy.taxeditor.operation.IPostOperationEnabled} object.
         * @param label a {@link java.lang.String} object.
+        * @param config
         * @param image a {@link eu.etaxonomy.cdm.model.media.ImageFile} object.
         */
        public RemoveImageFromDescriptionElementOperation(String label,
-                       IUndoContext undoContext, Taxon taxon, ImageFile image,
-                       DescriptionElementBase element, IPostOperationEnabled postOperationEnabled) {
-               super(label, undoContext, taxon, postOperationEnabled);
-               
-               this.image = image;
+                       IUndoContext undoContext, Media media,
+                       DescriptionBase element, IPostOperationEnabled postOperationEnabled) {
+               super(label, undoContext, postOperationEnabled);
+
+               this.media = media;
                this.element = element;
        }
 
@@ -63,7 +63,7 @@ public class RemoveImageFromDescriptionElementOperation extends AbstractPostTaxo
                        throws ExecutionException {
 
                monitor.worked(20);
-               ImagesUtility.removeImage(element, image);
+               ImagesUtility.removeMediaFromGallery(element, media);
                monitor.worked(40);
 
                return postExecute(element);
@@ -86,7 +86,7 @@ public class RemoveImageFromDescriptionElementOperation extends AbstractPostTaxo
        @Override
        public IStatus undo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
-               image = ImagesUtility.addImagePart(element);
-               return postExecute(image);
+               ImagesUtility.addMediaToGallery(element, media);
+               return postExecute(media);
        }
 }
index c35656ef483ded8e973c635e5951ca82656faf72..f0f25926f7e06618f846e9704d4697b1b1ddc11e 100644 (file)
@@ -2,7 +2,7 @@
 <feature
       id="eu.etaxonomy.taxeditor.feature.jre.linux64"
       label="Taxonomic Editor JRE Linux64"
-      version="4.5.0.qualifier"
+      version="4.6.0.qualifier"
       provider-name="EDIT"
       plugin="eu.etaxonomy.taxeditor.application"
       os="linux"
index 5ec0bfe6e2689eecf89c2aad2299a56895bfe4c0..936ab39f5b057d7524df4d3a0e2be0a7a2916f76 100644 (file)
@@ -3,7 +3,7 @@
   <parent>
     <groupId>eu.etaxonomy</groupId>
     <artifactId>taxeditor-parent</artifactId>
-    <version>4.5.0-SNAPSHOT</version>
+    <version>4.6.0-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <artifactId>eu.etaxonomy.taxeditor.feature.jre.linux64</artifactId>
index 4dcc1b4c8ec4552b09d576e7d4bdb432ed54d2a8..291cf1e81683a64c71cfd602ad63fb15a9531245 100644 (file)
@@ -2,7 +2,7 @@
 <feature
       id="eu.etaxonomy.taxeditor.feature.platform"
       label="Taxeditor Dependencies"
-      version="4.5.0.qualifier"
+      version="4.6.0.qualifier"
       os="linux,macosx,win32"
       ws="cocoa,gtk,win32"
       arch="x86,x86_64">
index 54cb99c19ff192e662f5b2188563c45cfafe5048..34746256f7de57faeee6a0e880fa7c5af7a38f5b 100644 (file)
@@ -3,7 +3,7 @@
        <parent>
                <groupId>eu.etaxonomy</groupId>
                <artifactId>taxeditor-parent</artifactId>
-               <version>4.5.0-SNAPSHOT</version>
+               <version>4.6.0-SNAPSHOT</version>
        </parent>
        <modelVersion>4.0.0</modelVersion>
        <artifactId>eu.etaxonomy.taxeditor.feature.platform</artifactId>
index ac3b4d4357676693e97fe126b92f39729e0a4475..36e3b41c160cf556b1f9b4b6024366233329cae5 100644 (file)
@@ -2,7 +2,7 @@
 <feature
       id="eu.etaxonomy.taxeditor.feature"
       label="Taxonomic Editor"
-      version="4.5.0.qualifier"
+      version="4.6.0.qualifier"
       provider-name="EDIT"
       plugin="eu.etaxonomy.taxeditor.application"
       os="linux,macosx,win32"
index 06ab5be0859c638497bcdd926652ecc4a7f65007..2affb8ec39611c8b775af9569ba9aa9f5ccd097c 100644 (file)
@@ -3,7 +3,7 @@
   <parent>
     <groupId>eu.etaxonomy</groupId>
     <artifactId>taxeditor-parent</artifactId>
-    <version>4.5.0-SNAPSHOT</version>
+    <version>4.6.0-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <artifactId>eu.etaxonomy.taxeditor.feature</artifactId>
index 04c3c7670c9dac9eb1cc37d39815d8947f5b086c..64fca06f0b8911faacddfd2b4954af2ea4321e4c 100644 (file)
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: Help
 Bundle-SymbolicName: eu.etaxonomy.taxeditor.help; singleton:=true
-Bundle-Version: 4.5.0.qualifier
+Bundle-Version: 4.6.0.qualifier
 Bundle-Activator: eu.etaxonomy.taxeditor.help.Activator
 Bundle-Vendor: EDIT
 Require-Bundle: org.eclipse.ui,
index 0002fe9e46e639172748bc26fd44c60bafa49475..5b94069989e5381f293dd610b234d1c553503ae7 100644 (file)
@@ -3,7 +3,7 @@
        <parent>
                <groupId>eu.etaxonomy</groupId>
                <artifactId>taxeditor-parent</artifactId>
-               <version>4.5.0-SNAPSHOT</version>
+               <version>4.6.0-SNAPSHOT</version>
        </parent>
 
        <modelVersion>4.0.0</modelVersion>
index a92ab7341d9864ecf8e135a4f707d1827db87b75..60a84e6aa6a93acf90dbebf323590e4ca7afa37e 100644 (file)
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: eu.etaxonomy.taxeditor.molecular.lib
 Bundle-SymbolicName: eu.etaxonomy.taxeditor.molecular.lib;singleton:=true
-Bundle-Version: 4.5.0.qualifier
+Bundle-Version: 4.6.0.qualifier
 Bundle-ClassPath: .,
  lib/owlapi-xmlutils-4.1.4.jar,
  lib/commons-collections4-4.1.jar,
index 4eea27c76983d9b422c562a01083531e910bd895..1ccaa932024295a4426d0ee8aa0d3496b028dbf0 100644 (file)
@@ -7,7 +7,7 @@
   <parent>
     <groupId>eu.etaxonomy</groupId>
     <artifactId>taxeditor-parent</artifactId>
-    <version>4.5.0-SNAPSHOT</version>
+    <version>4.6.0-SNAPSHOT</version>
   </parent>
 
   <build>
index d55dc66e497097a42a5cf4b404c3eaf2ffb5dfc6..c44ca475a20a5e1af742d2ffdda944eb72f9adc6 100644 (file)
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: Molecular Bundle
 Bundle-SymbolicName: eu.etaxonomy.taxeditor.molecular;singleton:=true
-Bundle-Version: 4.5.0.qualifier
+Bundle-Version: 4.6.0.qualifier
 Bundle-Activator: eu.etaxonomy.taxeditor.molecular.TaxeditorMolecularPlugin
 Require-Bundle: org.eclipse.ui,
  org.eclipse.core.runtime,
index 04b429d5aea07a89ba5b3c2d02eecd2ce11227a2..6c1a6aa63f88527ddb70c3b4c10ca3149cb233ea 100644 (file)
@@ -3,7 +3,7 @@
   <parent>
     <groupId>eu.etaxonomy</groupId>
     <artifactId>taxeditor-parent</artifactId>
-    <version>4.5.0-SNAPSHOT</version>
+    <version>4.6.0-SNAPSHOT</version>
   </parent>
 
   <modelVersion>4.0.0</modelVersion>
index 595409fc41b9e3c903cde9ea320dbd197d9fb992..97783d1e932bbc76e63d94fc20c1c092c07e9938 100644 (file)
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: Navigation Bundle
 Bundle-SymbolicName: eu.etaxonomy.taxeditor.navigation;singleton:=true
-Bundle-Version: 4.5.0.qualifier
+Bundle-Version: 4.6.0.qualifier
 Bundle-Vendor: EDIT
 Export-Package: eu.etaxonomy.cdm,
  eu.etaxonomy.taxeditor.navigation,
index b3c37d0760c43150df76c9c911486fb2f693d338..60031b062bfe474819833a7b5944f1a06cdb1d90 100644 (file)
@@ -3,7 +3,7 @@
        <parent>
                <groupId>eu.etaxonomy</groupId>
                <artifactId>taxeditor-parent</artifactId>
-               <version>4.5.0-SNAPSHOT</version>
+               <version>4.6.0-SNAPSHOT</version>
        </parent>
 
        <modelVersion>4.0.0</modelVersion>
index 7eee8432b7dcf0237f5b99b8ae76b8591724154a..0cd15b6769398b508e0b965519c2b1bca65d7e9e 100644 (file)
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: Printpublisher Bundle
 Bundle-SymbolicName: eu.etaxonomy.taxeditor.printpublisher;singleton:=true
-Bundle-Version: 4.5.0.qualifier
+Bundle-Version: 4.6.0.qualifier
 Require-Bundle: org.eclipse.osgi,
  org.eclipse.ui,
  eu.etaxonomy.taxeditor.cdmlib,
index 0bfefd1340a9ce0af0bec319123b83d8cb8c071c..f31fd269544a8ee12228a2d2dcb1356395a7266d 100644 (file)
@@ -3,7 +3,7 @@
        <parent>
                <artifactId>taxeditor-parent</artifactId>
                <groupId>eu.etaxonomy</groupId>
-               <version>4.5.0-SNAPSHOT</version>
+               <version>4.6.0-SNAPSHOT</version>
        </parent>
 
        <modelVersion>4.0.0</modelVersion>
index e73ef76575fb710566f1d52424bfaae66bd4dc5d..1f28fea39c18b0d1b9b7b46c445ed2fbc5356419 100644 (file)
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: DataStore Bundle
 Bundle-SymbolicName: eu.etaxonomy.taxeditor.store;singleton:=true
-Bundle-Version: 4.5.0.qualifier
+Bundle-Version: 4.6.0.qualifier
 Bundle-Activator: eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin
 Bundle-Vendor: EDIT
 Export-Package: eu.etaxonomy.cdm,
index 65d8e7998dbd850831934488cf9285efac7ee2a0..fadec7c1d88dc3fc10acd70ee970195cadc92724 100644 (file)
@@ -135,4 +135,9 @@ AuthenticatedUserBar_NOT_LOGGED_IN=Not logged in
 
 PresenceAbsenceTermDetailElement_CHOOSE_COLOR=Choose color
 PresenceAbsenceTermDetailElement_COLOR_NOT_SET=Color could not be set
-PresenceAbsenceTermDetailElement_LABEL_COLOR=Color           
+PresenceAbsenceTermDetailElement_LABEL_COLOR=Color  
+
+DeleteConfiguration_media_removeFromGallery=Remove the media from the image gallery but leave it in database
+DeleteConfiguration_media_deleteIfUsedInTaxonDescription=Delete also if media is used in taxon description
+DeleteConfiguration_media_deleteIfUsedInSpecimenDescription=Delete also if media is used in specimen description        
+DeleteConfiguration_media_delete=Delete the media completely
\ No newline at end of file
index 70cc7984264af8e4583d3ac04326fd2052ddbdaa..3000cd5ddb203171e6814b2879eb6ba78ea70ab6 100644 (file)
@@ -134,3 +134,8 @@ AuthenticatedUserBar_NOT_LOGGED_IN=Nicht angemeldet
 PresenceAbsenceTermDetailElement_CHOOSE_COLOR=Farbe wählen
 PresenceAbsenceTermDetailElement_COLOR_NOT_SET=Farbe konnte nicht gespeichert werden
 PresenceAbsenceTermDetailElement_LABEL_COLOR=Farbe
+
+DeleteConfiguration_media_removeFromGallery=Entferne Medienobjekt aus der Gallerie, aber behalte es in der Datenbank
+DeleteConfiguration_media_deleteIfUsedInTaxonDescription=Lösche das Medienobjekt, auch wenn es von einem Taxon verwendet wird
+DeleteConfiguration_media_deleteIfUsedInSpecimenDescription=Lösche das Medienobjekt, auch wenn es von einem Specimen verwendet wird
+DeleteConfiguration_media_delete=Lösche das Medienobjekt
index a8a98229f24403087749f637fa246f5e7d99396b..d99ed65a8548eb7a1a9ca941b7235b62ffd95720 100644 (file)
@@ -3,7 +3,7 @@
   <parent>
        <groupId>eu.etaxonomy</groupId>
        <artifactId>taxeditor-parent</artifactId>
-       <version>4.5.0-SNAPSHOT</version>
+       <version>4.6.0-SNAPSHOT</version>
   </parent>
 
   <modelVersion>4.0.0</modelVersion>
index d3ad20e4ce90bf0ef768f7d4054be9e52aa2ae89..d92c1d2bc265d9179d37d030699fdb0fc862d637 100644 (file)
@@ -145,6 +145,10 @@ public class Messages extends NLS {
     public static String SearchManager_LARGE_RESULT_EXPECTED;
     public static String SearchManager_LONG_SEARCH_WARNING;
        public static String SupplementalDataViewPart_VIEWER_NAME;
+       public static String DeleteConfiguration_media_removeFromGallery;
+       public static String DeleteConfiguration_media_deleteIfUsedInTaxonDescription;
+       public static String DeleteConfiguration_media_deleteIfUsedInSpecimenDescription;
+       public static String DeleteConfiguration_media_delete;
        static {
         // initialize resource bundle
         NLS.initializeMessages(BUNDLE_NAME, Messages.class);
index 979bc8a6735daaa2bcc59148b9dbe5e6bf524566..cbf4bb085dcfbcb33d877d63510153aaa3367a31 100644 (file)
@@ -56,7 +56,7 @@ public class DefinedTermMenu extends CompoundContributionItem {
            dtMenuManager.add(addChildTermsToMenuManager(TermType.NamedArea));
 
            MenuManager otherMenuManager =
-                new MenuManager("Other","eu.etaxonomy.taxeditor.store.term.other.menu");
+                new MenuManager("Others","eu.etaxonomy.taxeditor.store.term.other.menu");
            otherMenuManager.setVisible(true);
            dtMenuManager.add(otherMenuManager);
 
index 433442235bc052805e13bcf6a81b8f99022c706e..a7eb78fac5b22a53986bb83fb026396ee3389152 100644 (file)
@@ -35,7 +35,7 @@ public class MessagingUtils {
     public final static String CONTACT_MESSAGE = System.getProperty("line.separator") +  "Please contact EDIT Support (EditSupport@bgbm.org) with the error trace below (click on the 'Details' button).";
     public final static String DEFAULT_MESSAGE = "Error thrown but no associated message";
     public final static String CONNECTION_FAILURE_MESSAGE = "The connection to the remote server has been broken";
-    public final static String REMOTE_ACCESS_FAILURE_MESSAGE = "Problem accessing remote server";
+    public final static String REMOTE_ACCESS_FAILURE_MESSAGE = "Maybe the server is currently not available. If the problem persists please contact the server admin with the error trace below.";
     public static final String WIDGET_IS_DISPOSED_MESSAGE = "A widget was called, which was already disposed";
 
     /**
@@ -194,6 +194,9 @@ public class MessagingUtils {
                 server = activeCdmSource.getServer();
                 if(activeCdmSource instanceof CdmRemoteSource){
                     contextPath = ((CdmRemoteSource) activeCdmSource).getContextPath();
+                    if (contextPath != null && contextPath.startsWith("cdmserver/")){
+                       contextPath = contextPath.substring("cdmserver/".length());
+                    }
                 }
             }
 
@@ -202,7 +205,7 @@ public class MessagingUtils {
         }
         contextInfo.add("login : " + login);
         contextInfo.add("editor version : " + version);
-        contextInfo.add("server : " + server + " / " + name + (CdmUtils.isNotBlank(contextPath)?" / "+contextPath:""));
+        contextInfo.add("server : " + server + " (" + name + ")" + (CdmUtils.isNotBlank(contextPath)?" / "+contextPath:""));
         contextInfo.add("schema version : " + schemaVersion);
         contextInfo.add("os : " + System.getProperty("os.name")+" "+System.getProperty("os.version")+" "+System.getProperty("os.arch"));
         contextInfo.add("java : "+System.getProperty("java.version"));
index ed4825a8f02e1e5fd247977da30ffcad7172de88..c83cc5e939a6aff0a2864ab523b96c76f132930b 100644 (file)
@@ -18,11 +18,9 @@ import org.eclipse.core.commands.IParameter;
 import org.eclipse.core.commands.Parameterization;
 import org.eclipse.core.commands.ParameterizedCommand;
 import org.eclipse.core.commands.common.NotDefinedException;
-import org.eclipse.core.runtime.IStatus;
 import org.eclipse.jface.viewers.CheckStateChangedEvent;
 import org.eclipse.jface.viewers.CheckboxTableViewer;
 import org.eclipse.jface.viewers.ICheckStateListener;
-import org.eclipse.jface.wizard.WizardDialog;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.SelectionAdapter;
 import org.eclipse.swt.events.SelectionEvent;
@@ -45,7 +43,6 @@ import eu.etaxonomy.taxeditor.editor.definedterm.DefinedTermEditor;
 import eu.etaxonomy.taxeditor.model.AbstractUtility;
 import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
-import eu.etaxonomy.taxeditor.preference.wizard.VocabularyTermWizard;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 import eu.etaxonomy.taxeditor.store.TermStore;
 
@@ -60,7 +57,6 @@ public abstract class AbstractMenuPreferences<T extends DefinedTermBase> extends
        private Button toggleButton;
        protected HashMap<DefinedTermBase<T>, Button> menuButtons;
 
-       protected Button newButton;
        protected Button editButton;
        protected Button removeButton;
 
@@ -91,11 +87,10 @@ public abstract class AbstractMenuPreferences<T extends DefinedTermBase> extends
        }
 
        protected List<T> getTerms(){
-           if(!CdmStore.isActive() || getTermClass()==null) {
-               return new ArrayList<T>();
-           } else {
-               return TermStore.getTerms(getTermClass());
+           if(CdmStore.isActive() && getTermType()!=null){
+               return TermStore.getTerms(getTermType(), null);
            }
+           return new ArrayList<T>();
        }
 
        /**
@@ -175,25 +170,6 @@ public abstract class AbstractMenuPreferences<T extends DefinedTermBase> extends
                addEditButtonListeners();
        }
 
-       /**
-        * Implement this method in MenuPreference Pages where the vocabulary should be editable, editable flag
-        * is set.
-        */
-       protected void addNewButtonListeners() {
-               newButton.addSelectionListener(new SelectionAdapter(){
-                       @Override
-                       public void widgetSelected(SelectionEvent e) {
-                               VocabularyTermWizard<T> wizard = new VocabularyTermWizard<T>(getTermClass(), getConversationHolder());
-
-                               WizardDialog dialog = new WizardDialog(AbstractUtility.getShell(), wizard);
-                           if(dialog.open() == IStatus.OK){
-                               tableViewer.setInput(getTerms());
-                           }
-                       }
-
-               });
-       }
-
        /**
         * Implement this method in MenuPreference Pages where the vocabulary should be editable, editable flag
         * is set.
@@ -212,7 +188,7 @@ public abstract class AbstractMenuPreferences<T extends DefinedTermBase> extends
                                        parameter = command.getParameter("eu.etaxonomy.taxeditor.store.openDefinedTermEditor.termTypeUuid");
 
                                        Parameterization[] parameterizations = new Parameterization[]{
-                                                       new Parameterization(parameter, TermType.valueOf(getTermClass().getSimpleName()).getUuid().toString())
+                                                       new Parameterization(parameter, getTermType().getUuid().toString())
                                        };
 
                                        ParameterizedCommand pCommand = new ParameterizedCommand(command, parameterizations);
@@ -305,7 +281,7 @@ public abstract class AbstractMenuPreferences<T extends DefinedTermBase> extends
                }
        }
 
-       protected abstract Class<T> getTermClass();
+       protected abstract TermType getTermType();
 
        @Override
        public ConversationHolder getConversationHolder() {
index b9f7144652bbded533081b9397cec10652dbe8d0..8cd983f2f4482b67de958e5b466866fab4775082 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -10,6 +10,7 @@
 package eu.etaxonomy.taxeditor.preference.menu;
 
 import eu.etaxonomy.cdm.model.common.ExtensionType;
+import eu.etaxonomy.cdm.model.common.TermType;
 
 /**
  * <p>ExtensionTypeMenuPreferences class.</p>
@@ -24,7 +25,7 @@ public class ExtensionTypeMenuPreferences extends AbstractMenuPreferences<Extens
         * <p>Constructor for ExtensionTypeMenuPreferences.</p>
         */
        public ExtensionTypeMenuPreferences() {
-               super("Extension Type Preferences" , 
+               super("Extension Type Preferences" ,
                                "Choose which extension types to display",
                                false);
        }
@@ -34,7 +35,7 @@ public class ExtensionTypeMenuPreferences extends AbstractMenuPreferences<Extens
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<ExtensionType> getTermClass() {
-               return ExtensionType.class;
+       protected TermType getTermType() {
+               return TermType.ExtensionType;
        }
 }
index a228ef6a698d70d4019644ac8a69eb4904332d3a..16cecf428fbbec0e3f45da89ecd76bdf16da8661 100644 (file)
@@ -1,13 +1,14 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.preference.menu;
 
+import eu.etaxonomy.cdm.model.common.TermType;
 import eu.etaxonomy.cdm.model.description.Feature;
 
 /**
@@ -22,13 +23,13 @@ public class FeatureMenuPreferences extends AbstractMenuPreferences<Feature> {
 
        /** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.preferences.feat"{trunked}</code> */
        public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.preferences.feature";
-       
+
        /**
         * <p>Constructor for FeatureMenuPreferences.</p>
         */
        public FeatureMenuPreferences() {
-               super("Feature Preferences", 
-                               "Choose which features you would like to use for descriptive elements.", 
+               super("Feature Preferences",
+                               "Choose which features you would like to use for descriptive elements.",
                                false);
        }
 
@@ -37,7 +38,7 @@ public class FeatureMenuPreferences extends AbstractMenuPreferences<Feature> {
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<Feature> getTermClass() {
-               return Feature.class;
+       protected TermType getTermType() {
+               return TermType.Feature;
        }
 }
index 1a059e5b95f542ac149c15f2e46d911a5951b383..f8f535dbe37d20644a50c94e554ab7f6ef0dc058 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -17,6 +17,7 @@ import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 
 import eu.etaxonomy.cdm.model.common.Language;
+import eu.etaxonomy.cdm.model.common.TermType;
 
 /**
  * <p>LanguageMenuPreferences class.</p>
@@ -26,19 +27,19 @@ import eu.etaxonomy.cdm.model.common.Language;
  * @version 1.0
  */
 public class LanguageMenuPreferences extends AbstractMenuPreferences<Language> {
-       
+
        /** Constant <code>ID="eu.etaxonomy.taxeditor.preferences.lang"{trunked}</code> */
        public final static String ID = "eu.etaxonomy.taxeditor.preferences.languages";
-       
+
        /**
         * <p>Constructor for LanguageMenuPreferences.</p>
         */
        public LanguageMenuPreferences() {
-               super("Language Preferences", 
+               super("Language Preferences",
                                "Configure language preferences.",
                                false);
        }
-       
+
        /* (non-Javadoc)
         * @see eu.etaxonomy.taxeditor.preference.AbstractMenuPreferences#createContents(org.eclipse.swt.widgets.Composite)
         */
@@ -46,33 +47,35 @@ public class LanguageMenuPreferences extends AbstractMenuPreferences<Language> {
        @Override
        public Control createContents(Composite parent) {
                Control control = super.createContents(parent);
-               
+
                tableViewer.setLabelProvider(new LanguagePreferenceLabelProvider());
                tableViewer.setComparator(new ViewerComparator());
-               
+
                return control;
        }
-               
+
        class LanguagePreferenceLabelProvider extends LabelProvider implements ITableLabelProvider{
 
                /* (non-Javadoc)
                 * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, int)
                 */
-               public Image getColumnImage(Object element, int columnIndex) {
+               @Override
+        public Image getColumnImage(Object element, int columnIndex) {
                        return null;
                }
 
                /* (non-Javadoc)
                 * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, int)
                 */
-               public String getColumnText(Object element, int columnIndex) {
+               @Override
+        public String getColumnText(Object element, int columnIndex) {
                        String description = ((Language)element).getDescription();
                        if (description == null) {
                                description = ((Language)element).getLabel() + " - Warning: no description - not shown in menus";
                        }
                        return description;
                }
-               
+
                }
 
        /* (non-Javadoc)
@@ -80,7 +83,7 @@ public class LanguageMenuPreferences extends AbstractMenuPreferences<Language> {
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<Language> getTermClass() {
-               return Language.class;
+       protected TermType getTermType() {
+               return TermType.Language;
        }
 }
index d226f610f177d000e777c3136aa50420c0fec7e3..38ba07ecd15aa6341d88ae2ea12e5e6775148211 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -10,6 +10,7 @@
 package eu.etaxonomy.taxeditor.preference.menu;
 
 import eu.etaxonomy.cdm.model.common.MarkerType;
+import eu.etaxonomy.cdm.model.common.TermType;
 
 /**
  * <p>MarkerTypeMenuPreferences class.</p>
@@ -24,7 +25,7 @@ public class MarkerTypeMenuPreferences extends AbstractMenuPreferences<MarkerTyp
         * <p>Constructor for MarkerTypeMenuPreferences.</p>
         */
        public MarkerTypeMenuPreferences() {
-               super("Marker Type Preferences" , 
+               super("Marker Type Preferences" ,
                                "Choose which markers to display",
                                true);
        }
@@ -34,7 +35,7 @@ public class MarkerTypeMenuPreferences extends AbstractMenuPreferences<MarkerTyp
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<MarkerType> getTermClass() {
-               return MarkerType.class;
+       protected TermType getTermType() {
+               return TermType.MarkerType;
        }
 }
index f664e5f5f0c3591e49a942d48002b228f18624dc..3fa875eeff0b7afa543fbdce3b96a5d0dc8316ae 100644 (file)
@@ -1,8 +1,9 @@
 /**
- * 
+ *
  */
 package eu.etaxonomy.taxeditor.preference.menu;
 
+import eu.etaxonomy.cdm.model.common.TermType;
 import eu.etaxonomy.cdm.model.description.MeasurementUnit;
 
 /**
@@ -17,8 +18,8 @@ public class MeasurementUnitMenuPreferences extends AbstractMenuPreferences<Meas
         * <p>Constructor for MeasurementUnitMenuPreferences.</p>
         */
        public MeasurementUnitMenuPreferences() {
-               super("Measurement Units", 
-                               "Edit displayed measurement units", 
+               super("Measurement Units",
+                               "Edit displayed measurement units",
                                true);
        }
 
@@ -27,8 +28,8 @@ public class MeasurementUnitMenuPreferences extends AbstractMenuPreferences<Meas
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<MeasurementUnit> getTermClass() {
-               return MeasurementUnit.class;
+       protected TermType getTermType() {
+               return TermType.MeasurementUnit;
        }
 
 }
index 1a945345d39cbe1618f4f3ee91863b07f50bae18..e4f5c606669ce79e3e6e47a127c8d5bcdc0be4b2 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -13,6 +13,7 @@ import org.eclipse.swt.graphics.Image;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 
+import eu.etaxonomy.cdm.model.common.TermType;
 import eu.etaxonomy.cdm.model.name.NameRelationshipType;
 import eu.etaxonomy.taxeditor.labels.ILabelImageStrategy;
 import eu.etaxonomy.taxeditor.labels.LabelImageProvider;
@@ -28,16 +29,16 @@ import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
 public class NameRelationshipTypeMenuPreferences extends
                AbstractMenuPreferences<NameRelationshipType> {
 
-       
+
        /**
         * <p>Constructor for NameRelationshipTypeMenuPreferences.</p>
         */
        public NameRelationshipTypeMenuPreferences() {
-               super("Name relationship types", 
+               super("Name relationship types",
                                "Configure name relationship types",
                                false);
        }
-       
+
        /* (non-Javadoc)
         * @see eu.etaxonomy.taxeditor.preference.AbstractMenuPreferences#createContents(org.eclipse.swt.widgets.Composite)
         */
@@ -48,31 +49,31 @@ public class NameRelationshipTypeMenuPreferences extends
                getTableViewer().setLabelProvider(new NameRelationLabelProvider());
                return container;
        }
-       
+
        public class NameRelationLabelProvider extends DefinedTermBaseLabelProvider {
 
                private LabelImageProvider labelProvider;
 
                public NameRelationLabelProvider() {
                        super();
-                       
+
                        ILabelImageStrategy strategy = LabelImageProvider.getLabelStrategy(
                                                        PreferencesUtil.getPreferredNomenclaturalCode().getNewTaxonNameInstance(null));
                        this.labelProvider = new LabelImageProvider(strategy);
                }
-               
+
                /* (non-Javadoc)
                 * @see eu.etaxonomy.taxeditor.preference.AbstractMenuPreferences.MenuPreferenceLabelProvider#getColumnImage(java.lang.Object, int)
                 */
                @Override
                public Image getColumnImage(Object element, int columnIndex) {
-                       // The preference page looked lame with images 
+                       // The preference page looked lame with images
 //                     if (element instanceof NameRelationshipType) {
 //                             return labelProvider.getNameRelationImage((NameRelationshipType) element);
 //                     }
                        return super.getColumnImage(element, columnIndex);
                }
-               
+
                /* (non-Javadoc)
                 * @see eu.etaxonomy.taxeditor.preference.AbstractMenuPreferences.MenuPreferenceLabelProvider#getColumnText(java.lang.Object, int)
                 */
@@ -90,7 +91,7 @@ public class NameRelationshipTypeMenuPreferences extends
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<NameRelationshipType> getTermClass() {
-               return NameRelationshipType.class;
+       protected TermType getTermType() {
+               return TermType.NameRelationshipType;
        }
 }
index 68621d181d050a35a24eeb06ca9d8404b8f52dde..b096e0015d1b0d0eacdfd3ba118dc44c55f17982 100644 (file)
@@ -1,14 +1,15 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.preference.menu;
 
+import eu.etaxonomy.cdm.model.common.TermType;
 import eu.etaxonomy.cdm.model.name.NameTypeDesignationStatus;
 
 /**
@@ -24,7 +25,7 @@ public class NameTypeDesignationStatusMenuPreferences extends
         * <p>Constructor for NameTypeDesignationStatusMenuPreferences.</p>
         */
        public NameTypeDesignationStatusMenuPreferences() {
-               super("Name Type Designation Status Preferences", 
+               super("Name Type Designation Status Preferences",
                                "Configure name type designation status",
                                false);
        }
@@ -34,8 +35,8 @@ public class NameTypeDesignationStatusMenuPreferences extends
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<NameTypeDesignationStatus> getTermClass() {
-               return NameTypeDesignationStatus.class;
+       protected TermType getTermType() {
+               return TermType.NameTypeDesignationStatus;
        }
 
 }
index 08f416c73482a6d41b077ca3937c4fdc5f37890e..19c02c02424d3be6d1ae2144aa962df44b0e1339 100644 (file)
@@ -1,14 +1,15 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.preference.menu;
 
+import eu.etaxonomy.cdm.model.common.TermType;
 import eu.etaxonomy.cdm.model.location.NamedAreaType;
 
 /**
@@ -24,8 +25,8 @@ public class NamedAreaTypeMenuPreferences extends AbstractMenuPreferences<NamedA
         * <p>Constructor for NamedAreaTypeMenuPreferences.</p>
         */
        public NamedAreaTypeMenuPreferences() {
-               super("Named Area Types", 
-                               "Edit displayed named area types", 
+               super("Named Area Types",
+                               "Edit displayed named area types",
                                false);
        }
 
@@ -34,7 +35,7 @@ public class NamedAreaTypeMenuPreferences extends AbstractMenuPreferences<NamedA
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<NamedAreaType> getTermClass() {
-               return NamedAreaType.class;
+       protected TermType getTermType() {
+               return TermType.NamedAreaType;
        }
 }
index f4e11a042450a35c4a5cce0dba1ac49f49fbc8ee..73e851ba5c7e49f8437a3280e8ccf4628b0a0cc6 100644 (file)
@@ -1,14 +1,15 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.preference.menu;
 
+import eu.etaxonomy.cdm.model.common.TermType;
 import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType;
 
 /**
@@ -25,7 +26,7 @@ public class NomenclaturalStatusTypeMenuPreferences extends
         * <p>Constructor for NomenclaturalStatusTypeMenuPreferences.</p>
         */
        public NomenclaturalStatusTypeMenuPreferences() {
-               super("Nomenlcatural Status Type Preferences", 
+               super("Nomenlcatural Status Type Preferences",
                                "Configure nomenclatural status types",
                                false);
        }
@@ -35,8 +36,8 @@ public class NomenclaturalStatusTypeMenuPreferences extends
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<NomenclaturalStatusType> getTermClass() {
-               return NomenclaturalStatusType.class;
+       protected TermType getTermType() {
+               return TermType.NomenclaturalStatusType;
        }
-       
+
 }
index 8277162f8f8c1d7f86823c461b013ffb37a5bf6e..7eee8b9fc25bbceaa612646a24502f76368c4254 100644 (file)
@@ -11,6 +11,7 @@ package eu.etaxonomy.taxeditor.preference.menu;
 
 import org.eclipse.ui.IWorkbenchPreferencePage;
 
+import eu.etaxonomy.cdm.model.common.TermType;
 import eu.etaxonomy.cdm.model.description.PresenceAbsenceTerm;
 
 /**
@@ -37,8 +38,8 @@ public class PresenceAbsenceMenuPreferences extends AbstractMenuPreferences<Pres
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<PresenceAbsenceTerm> getTermClass() {
-               return PresenceAbsenceTerm.class;
+       protected TermType getTermType() {
+               return TermType.PresenceAbsenceTerm;
        }
 
 }
index f49b232016e7179b070168ac6f32daa8288ad1e4..dc1f98e905c8543818f155b8b0056275fed8dd27 100644 (file)
@@ -10,6 +10,7 @@
 package eu.etaxonomy.taxeditor.preference.menu;
 
 import eu.etaxonomy.cdm.model.common.DefinedTerm;
+import eu.etaxonomy.cdm.model.common.TermType;
 
 /**
  * <p>PreservationMethodMenuPreferences class.</p>
@@ -37,7 +38,7 @@ public class PreservationMethodMenuPreferences extends AbstractMenuPreferences<D
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<DefinedTerm> getTermClass() {
-               return null;
+       protected TermType getTermType() {
+               return TermType.MaterialOrMethod;
        }
 }
index dfe837ca962c0c6409e7fbdcbb6c7a7e5054a542..af0372a3ad0dbbb940b9b5d5fe00ed76c4a623c7 100644 (file)
@@ -15,6 +15,7 @@ import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.ui.IWorkbenchPreferencePage;
 
+import eu.etaxonomy.cdm.model.common.TermType;
 import eu.etaxonomy.cdm.model.name.Rank;
 import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
 
@@ -73,8 +74,8 @@ public class RankMenuPreferences extends AbstractMenuPreferences<Rank> implement
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<Rank> getTermClass() {
-               return Rank.class;
+       protected TermType getTermType() {
+               return TermType.Rank;
        }
 
 }
index 717fb77bf132cfd0bb2ece871bcd451c8c5e93d0..4940d6cdd6db52c63c1c9da588214356db338a09 100644 (file)
@@ -1,14 +1,15 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.preference.menu;
 
+import eu.etaxonomy.cdm.model.common.TermType;
 import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignationStatus;
 
 /**
@@ -24,7 +25,7 @@ public class SpecimenTypeDesignationStatusMenuPreferences extends
         * <p>Constructor for SpecimenTypeDesignationStatusMenuPreferences.</p>
         */
        public SpecimenTypeDesignationStatusMenuPreferences() {
-               super("Specimen Type Designation Status Preferences", 
+               super("Specimen Type Designation Status Preferences",
                                "Configure specimen type designation status",
                                false);
        }
@@ -34,8 +35,8 @@ public class SpecimenTypeDesignationStatusMenuPreferences extends
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<SpecimenTypeDesignationStatus> getTermClass() {
-               return SpecimenTypeDesignationStatus.class;
+       protected TermType getTermType() {
+               return TermType.SpecimenTypeDesignationStatus;
        }
 
 }
index 1bdcaea5667d5d7839503793c9dd28d99c52dc7f..66c83b78bc245ca89ccefa73ac26168be760434e 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -10,6 +10,7 @@
 package eu.etaxonomy.taxeditor.preference.menu;
 
 import eu.etaxonomy.cdm.model.common.DefinedTerm;
+import eu.etaxonomy.cdm.model.common.TermType;
 
 
 /**
@@ -20,13 +21,13 @@ import eu.etaxonomy.cdm.model.common.DefinedTerm;
  * @version 1.0
  */
 public class StageMenuPreferences extends AbstractMenuPreferences<DefinedTerm> {
-       
+
        /**
         * <p>Constructor for StageMenuPreferences.</p>
         */
        public StageMenuPreferences() {
-               super("Stage Preferences", 
-                               "Choose stages to be shown in selection combos", 
+               super("Stage Preferences",
+                               "Choose stages to be shown in selection combos",
                                false);
        }
 
@@ -35,8 +36,8 @@ public class StageMenuPreferences extends AbstractMenuPreferences<DefinedTerm> {
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<DefinedTerm> getTermClass() {
-               return null;
+       protected TermType getTermType() {
+               return TermType.Stage;
        }
 
 }
index d35827af35f45c515436feabcafd01d537b0ad20..b1badb1d411cee4a0528e6373e0b3cfcca5c5bf6 100644 (file)
@@ -1,14 +1,15 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.preference.menu;
 
+import eu.etaxonomy.cdm.model.common.TermType;
 import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType;
 
 /**
@@ -25,7 +26,7 @@ public class TaxonRelationshipTypeMenuPreferences extends
         * <p>Constructor for TaxonRelationshipTypeMenuPreferences.</p>
         */
        public TaxonRelationshipTypeMenuPreferences() {
-               super("Taxon Relationship Type Preferences", 
+               super("Taxon Relationship Type Preferences",
                                "Configure taxon relationship types",
                                false);
        }
@@ -35,8 +36,8 @@ public class TaxonRelationshipTypeMenuPreferences extends
         */
        /** {@inheritDoc} */
        @Override
-       protected Class<TaxonRelationshipType> getTermClass() {
-               return TaxonRelationshipType.class;
+       protected TermType getTermType() {
+               return TermType.TaxonRelationshipType;
        }
-       
+
 }
index f3daffb011b07493b21296acb7f975238f753a22..e9d932db920f039a8dc63377a1c72cb303258843 100644 (file)
@@ -34,11 +34,20 @@ import eu.etaxonomy.cdm.api.service.config.TaxonNodeDeletionConfigurator;
 public class DeleteConfiguratorDialog extends MessageDialog{
 
     private final DeleteConfiguratorBase configurator;
+    private final boolean fromBulkEditor;
+
+    public DeleteConfiguratorDialog(DeleteConfiguratorBase configurator, Shell parentShell, String dialogTitle,
+            Image dialogTitleImage, String dialogMessage, int dialogImageType, String[] dialogButtonLabels, int defaultIndex, boolean fromBulkEditor) {
+        super(parentShell, dialogTitle, dialogTitleImage, dialogMessage, dialogImageType, dialogButtonLabels, defaultIndex);
+        this.configurator = configurator;
+        this.fromBulkEditor = fromBulkEditor;
+    }
 
     public DeleteConfiguratorDialog(DeleteConfiguratorBase configurator, Shell parentShell, String dialogTitle,
             Image dialogTitleImage, String dialogMessage, int dialogImageType, String[] dialogButtonLabels, int defaultIndex) {
         super(parentShell, dialogTitle, dialogTitleImage, dialogMessage, dialogImageType, dialogButtonLabels, defaultIndex);
         this.configurator = configurator;
+        this.fromBulkEditor = false;
     }
 
     @Override
@@ -55,7 +64,11 @@ public class DeleteConfiguratorDialog extends MessageDialog{
         }  else if(configurator instanceof NameDeletionConfigurator){
             composite.addConfiguratorComposite(new DeleteNameConfiguratorComposite((NameDeletionConfigurator) configurator, composite.getSectionConfigure(), SWT.NONE));
         }  else if(configurator instanceof MediaDeletionConfigurator){
-            composite.addConfiguratorComposite(new DeleteMediaConfiguratorComposite((MediaDeletionConfigurator) configurator, composite.getSectionConfigure(), SWT.NONE));
+            if (!fromBulkEditor){
+                composite.addConfiguratorComposite(new DeleteMediaConfiguratorComposite((MediaDeletionConfigurator) configurator, composite.getSectionConfigure(), SWT.NONE, fromBulkEditor));
+            }else{
+                composite.addConfiguratorComposite(new DeleteMediaConfiguratorComposite((MediaDeletionConfigurator) configurator, composite.getSectionConfigure(), SWT.NONE));
+            }
         }
 
 
index ced5294b5ca127f69b14a386508da29195758a3a..d3de660c08b89ba647e951f5322e6737ce977cb7 100644 (file)
@@ -15,13 +15,18 @@ import org.eclipse.jface.databinding.swt.WidgetProperties;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.DisposeEvent;
 import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.layout.RowLayout;
 import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Listener;
 import org.eclipse.ui.forms.widgets.FormToolkit;
 
 import eu.etaxonomy.cdm.api.service.config.MediaDeletionConfigurator;
+import eu.etaxonomy.taxeditor.Messages;
 
 /**
  * @author k.luther
@@ -35,6 +40,8 @@ public class DeleteMediaConfiguratorComposite extends Composite {
     private final MediaDeletionConfigurator configurator;
     private final Button btnDeleteIfUsedInTaxonDescription;
     private final Button btnDeleteIfUsedInSpecimenDescription;
+    private final Button btnRemoveFromImageGallery;
+    private final boolean isInBulkEditor;
 
 
     /**
@@ -45,6 +52,7 @@ public class DeleteMediaConfiguratorComposite extends Composite {
     public DeleteMediaConfiguratorComposite(MediaDeletionConfigurator configurator, Composite parent, int style) {
         super(parent, style);
         this.configurator = configurator;
+        this.isInBulkEditor = false;
         addDisposeListener(new DisposeListener() {
             @Override
             public void widgetDisposed(DisposeEvent e) {
@@ -55,15 +63,83 @@ public class DeleteMediaConfiguratorComposite extends Composite {
         setLayout(new RowLayout(SWT.VERTICAL));
         setBackground(getBackground());
 
+        btnRemoveFromImageGallery = null;
+
         btnDeleteIfUsedInTaxonDescription = new Button(this, SWT.CHECK);
-        btnDeleteIfUsedInTaxonDescription.setText("Delete also if media is used in taxon description. ");
+        btnDeleteIfUsedInTaxonDescription.setText(Messages.DeleteConfiguration_media_deleteIfUsedInTaxonDescription);
         btnDeleteIfUsedInTaxonDescription.setSelection(false);
 
         btnDeleteIfUsedInSpecimenDescription = new Button(this, SWT.CHECK);
-        btnDeleteIfUsedInSpecimenDescription.setText("Delete also if media is used in specimen description. ");
+        btnDeleteIfUsedInSpecimenDescription.setText(Messages.DeleteConfiguration_media_deleteIfUsedInSpecimenDescription);
         btnDeleteIfUsedInSpecimenDescription.setSelection(false);
 
 
+        m_bindingContext = initDataBindings();
+
+    }
+
+    public DeleteMediaConfiguratorComposite(MediaDeletionConfigurator configurator, Composite parent, int style, boolean inBulkEditor) {
+        super(parent, style);
+        this.configurator = configurator;
+        this.isInBulkEditor = inBulkEditor;
+        addDisposeListener(new DisposeListener() {
+            @Override
+            public void widgetDisposed(DisposeEvent e) {
+                toolkit.dispose();
+            }
+        });
+        toolkit.paintBordersFor(this);
+        setLayout(new GridLayout());
+        setBackground(getBackground());
+
+
+
+
+        if (!inBulkEditor){
+            btnRemoveFromImageGallery = new Button(this, SWT.RADIO);
+            btnRemoveFromImageGallery.setText(Messages.DeleteConfiguration_media_removeFromGallery);
+
+            btnRemoveFromImageGallery.setSelection(true);
+            btnRemoveFromImageGallery.setVisible(true);
+            btnDeleteIfUsedInTaxonDescription = new Button(this, SWT.RADIO);
+            btnDeleteIfUsedInTaxonDescription.setSelection(false);
+            btnDeleteIfUsedInTaxonDescription.setVisible(true);
+            btnDeleteIfUsedInTaxonDescription.setText(Messages.DeleteConfiguration_media_delete);
+            btnDeleteIfUsedInSpecimenDescription = new Button(this, SWT.CHECK);
+            btnDeleteIfUsedInSpecimenDescription.setText(Messages.DeleteConfiguration_media_deleteIfUsedInSpecimenDescription);
+            btnDeleteIfUsedInSpecimenDescription.setVisible(false);
+            btnDeleteIfUsedInTaxonDescription.addListener(SWT.Selection, new Listener() {
+                @Override
+             public void handleEvent(Event e) {
+                    Button b = (Button) e.widget;
+                    GridData data = (GridData)  btnDeleteIfUsedInTaxonDescription.getLayoutData();
+                    data.exclude = b.getSelection();
+                    btnDeleteIfUsedInSpecimenDescription.setVisible(data.exclude);
+
+                }
+         });
+
+
+
+
+        } else{
+            btnRemoveFromImageGallery =null;
+            btnDeleteIfUsedInTaxonDescription = new Button(this, SWT.CHECK);
+            btnDeleteIfUsedInTaxonDescription.setSelection(false);
+            btnDeleteIfUsedInTaxonDescription.setText(Messages.DeleteConfiguration_media_deleteIfUsedInTaxonDescription);
+            btnDeleteIfUsedInTaxonDescription.setVisible(true);
+
+            btnDeleteIfUsedInSpecimenDescription = new Button(this, SWT.CHECK);
+            btnDeleteIfUsedInSpecimenDescription.setText(Messages.DeleteConfiguration_media_deleteIfUsedInSpecimenDescription);
+            btnDeleteIfUsedInSpecimenDescription.setVisible(true);
+        }
+
+
+
+
+
+
+
         m_bindingContext = initDataBindings();
 
     }
@@ -74,10 +150,19 @@ public class DeleteMediaConfiguratorComposite extends Composite {
         IObservableValue observeSelectionBtnDeleteIfUsedInTaxonDescription = WidgetProperties.selection().observe(btnDeleteIfUsedInTaxonDescription);
         IObservableValue deleteIfUsedInTaxonDescriptionConfiguratorObserveValue = PojoProperties.value("deleteIfUsedInTaxonDescription").observe(configurator);
         bindingContext.bindValue(observeSelectionBtnDeleteIfUsedInTaxonDescription, deleteIfUsedInTaxonDescriptionConfiguratorObserveValue, null, null);
-
-        IObservableValue observeSelectionBtnDeleteIfUsedInSpecimenDescription = WidgetProperties.selection().observe(btnDeleteIfUsedInSpecimenDescription);
-        IObservableValue deleteIfUsedInSpecimenDescriptionConfiguratorObserveValue = PojoProperties.value("deleteIfUsedInSpecimenDescription").observe(configurator);
-        bindingContext.bindValue(observeSelectionBtnDeleteIfUsedInSpecimenDescription, deleteIfUsedInSpecimenDescriptionConfiguratorObserveValue, null, null);
+        if (isInBulkEditor){
+            IObservableValue observeSelectionBtnDeleteIfUsedInSpecimenDescription = WidgetProperties.selection().observe(btnDeleteIfUsedInSpecimenDescription);
+            IObservableValue deleteIfUsedInSpecimenDescriptionConfiguratorObserveValue = PojoProperties.value("deleteIfUsedInSpecimenDescription").observe(configurator);
+            bindingContext.bindValue(observeSelectionBtnDeleteIfUsedInSpecimenDescription, deleteIfUsedInSpecimenDescriptionConfiguratorObserveValue, null, null);
+        }else{
+            IObservableValue observeSelectionBtnRemoveFromImageGallery = WidgetProperties.selection().observe(btnRemoveFromImageGallery);
+            IObservableValue removeFromImageGalleryConfiguratorObserveValue = PojoProperties.value("onlyRemoveFromGallery").observe(configurator);
+            bindingContext.bindValue(observeSelectionBtnRemoveFromImageGallery, removeFromImageGalleryConfiguratorObserveValue, null, null);
+
+            IObservableValue observeSelectionBtnDeleteIfUsedInSpecimenDescription = WidgetProperties.selection().observe(btnDeleteIfUsedInSpecimenDescription);
+            IObservableValue deleteIfUsedInSpecimenDescriptionConfiguratorObserveValue = PojoProperties.value("deleteIfUsedInSpecimenDescription").observe(configurator);
+            bindingContext.bindValue(observeSelectionBtnDeleteIfUsedInSpecimenDescription, deleteIfUsedInSpecimenDescriptionConfiguratorObserveValue, null, null);
+        }
 
         return bindingContext;
     }
index afed317ecf90ac2e50ad082fba33631bd04cbb44..d4f686399b85cb0e5763f919f2b46d8b3d1591c5 100644 (file)
@@ -45,7 +45,7 @@ public class AgentSelectionDialog extends
         *
         */
        protected static final String TEAM = "Team";
-       
+
        protected static boolean selectTeamMember;
 
        /**
@@ -146,9 +146,11 @@ public class AgentSelectionDialog extends
         if (control != null){
             pattern = ((Text)control).getText();
         }
-
-
-               model = CdmStore.getService(IAgentService.class).getUuidAndTitleCache(limitOfInitialElements, pattern);
+        if (pattern == null || pattern.equals("?")){
+            model = CdmStore.getService(IAgentService.class).getUuidAndTitleCache(null, null);
+        }else{
+            model = CdmStore.getService(IAgentService.class).getUuidAndTitleCache(limitOfInitialElements, pattern);
+        }
        }
 
 
index b856e83f140200c4118aa49ca058711b8a8253de..69fac5232786923979da32cf3e762855425a4855 100644 (file)
@@ -121,9 +121,12 @@ public class ClassificationSelectionDialog extends
             pattern = ((Text)control).getText();
         }
 
+        if (pattern == null || pattern.equals("?")){
+            model = CdmStore.getService(IClassificationService.class).getUuidAndTitleCache(null, null);
+        }else{
+            model = CdmStore.getService(IClassificationService.class).getUuidAndTitleCache(limitOfInitialElements, pattern);
+        }
 
-               model = CdmStore.getService(IClassificationService.class)
-                               .getUuidAndTitleCache(limitOfInitialElements, pattern);
        }
 
        /** {@inheritDoc} */
index b42a1e4048f7822cc4ac3d0fc1c2fbaf5f51cdc0..35f1a84a2b447c49beef411fc2ee254211587eb6 100644 (file)
@@ -54,8 +54,11 @@ public class NameSelectionDialog extends AbstractFilteredCdmResourceSelectionDia
             pattern = ((Text)control).getText();
         }
 
-
-               model = CdmStore.getService(INameService.class).getUuidAndTitleCache(limitOfInitialElements, pattern);
+        if (pattern == null || pattern.equals("?")){
+            model = CdmStore.getService(INameService.class).getUuidAndTitleCache(null, null);
+        }else{
+            model = CdmStore.getService(INameService.class).getUuidAndTitleCache(limitOfInitialElements, pattern);
+        }
        }
 
        /** {@inheritDoc} */
index 44254edf4ca15087c7d7d8bf088925b0a4d0d187..88cffafd38ec741d2f6d1bdccc0969e20ab977c3 100644 (file)
@@ -13,31 +13,11 @@ package eu.etaxonomy.taxeditor.ui.dialog.selection;
 import java.text.Collator;
 import java.util.Comparator;
 
-import org.eclipse.core.runtime.Assert;
-import org.eclipse.core.runtime.ListenerList;
-import org.eclipse.jface.viewers.IColorProvider;
-import org.eclipse.jface.viewers.IFontProvider;
-import org.eclipse.jface.viewers.ILabelDecorator;
 import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.ILabelProviderListener;
 import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.LabelProviderChangedEvent;
-import org.eclipse.jface.viewers.StyledCellLabelProvider;
-import org.eclipse.jface.viewers.StyledString;
-import org.eclipse.jface.viewers.ViewerCell;
-import org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.IStyledLabelProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.graphics.GC;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.Rectangle;
 import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Display;
 import org.eclipse.swt.widgets.Shell;
 import org.eclipse.swt.widgets.Text;
-import org.eclipse.ui.internal.IWorkbenchGraphicConstants;
-import org.eclipse.ui.internal.WorkbenchImages;
 
 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.api.service.IAgentService;
@@ -50,9 +30,6 @@ import eu.etaxonomy.taxeditor.newWizard.NewTeamWizard;
 import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
 import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
 import eu.etaxonomy.taxeditor.store.CdmStore;
-import eu.etaxonomy.taxeditor.ui.dialog.selection.AbstractFilteredCdmResourceSelectionDialog.FilteredCdmResourceLabelProvider;
-import eu.etaxonomy.taxeditor.ui.dialog.selection.CdmFilteredItemsSelectionDialog.ItemsFilter;
-import eu.etaxonomy.taxeditor.ui.dialog.selection.CdmFilteredItemsSelectionDialog.ItemsListSeparator;
 
 /**
  * @author k.luther
@@ -83,8 +60,11 @@ public class NomenclaturalAuthorSelectionDialog extends AgentSelectionDialog {
         if (control != null){
             pattern = ((Text)control).getText();
         }
-
-        model = CdmStore.getService(IAgentService.class).getUuidAndAbbrevTitleCache(limitOfInitialElements, pattern, null);
+        if (pattern == null || pattern.equals("?")){
+            model = CdmStore.getService(IAgentService.class).getUuidAndAbbrevTitleCache(null, null, null);
+        }else{
+            model = CdmStore.getService(IAgentService.class).getUuidAndAbbrevTitleCache(limitOfInitialElements, pattern, null);
+        }
     }
 
     /** {@inheritDoc} */
@@ -145,9 +125,9 @@ public class NomenclaturalAuthorSelectionDialog extends AgentSelectionDialog {
                 " supports cdmObject of type IIdentifiableEntity." +
                 " Please implement specific method in subclass.");
     }
-   
-    
-    
+
+
+
     public class FilteredCdmResourceAbbrevLabelProvider extends LabelProvider {
                @Override
                public String getText(Object element) {
@@ -166,7 +146,7 @@ public class NomenclaturalAuthorSelectionDialog extends AgentSelectionDialog {
             return abbrevTitleCache;
                }
        };
-       
+
        /** {@inheritDoc} */
        @Override
        protected ItemsFilter createFilter() {
@@ -192,21 +172,21 @@ public class NomenclaturalAuthorSelectionDialog extends AgentSelectionDialog {
                                if(item instanceof UuidAndTitleCache){
                                        if (((UuidAndTitleCache) item).getAbbrevTitleCache() != null){
                                                abbrevTitleCache = ((UuidAndTitleCache) item).getAbbrevTitleCache();
-                                       } 
+                                       }
                                        if (((UuidAndTitleCache) item).getTitleCache() != null ){
                                                textTitleCache = ((UuidAndTitleCache) item).getTitleCache();
                                        }
                                }else if(item instanceof String){
                                        textTitleCache = (String) item;
                                }
-                               
+
                                return  (matches(textTitleCache) || matches(abbrevTitleCache)) ;
-                               
+
                        }
 
                };
        }
-       
+
        @Override
        protected Comparator getItemsComparator() {
                return new Comparator<UuidAndTitleCache>() {
@@ -221,8 +201,8 @@ public class NomenclaturalAuthorSelectionDialog extends AgentSelectionDialog {
                                if (entity1.getTitleCache() != null){
                                        compareString1 += entity1.getTitleCache();
                                }
-                               
-                               
+
+
                                String compareString2 = "";
                                if (entity2.getAbbrevTitleCache() != null){
                                        compareString2 = entity2.getAbbrevTitleCache();
@@ -230,8 +210,8 @@ public class NomenclaturalAuthorSelectionDialog extends AgentSelectionDialog {
                                if (entity2.getTitleCache() != null){
                                        compareString2 += entity2.getTitleCache();
                                }
-                               
-                               
+
+
                                return collator.compare(compareString1, compareString2);
                        }
                };
index ae72855696b2a5488bfe708714e37bc8caf483ae..6309647e2b0d964de0bf13d9c1f7683c25b3b00c 100644 (file)
@@ -39,8 +39,11 @@ public class NomenclaturalReferenceSelectionDialog extends
             pattern = ((Text)control).getText();
         }
 
-
-               model = CdmStore.getService(IReferenceService.class).getUuidAndAbbrevTitleCache(limitOfInitialElements, pattern);
+        if (pattern == null || pattern.equals("?")){
+            model = CdmStore.getService(IReferenceService.class).getUuidAndAbbrevTitleCache(null, null);
+        }else{
+            model = CdmStore.getService(IReferenceService.class).getUuidAndAbbrevTitleCache(limitOfInitialElements, pattern);
+        }
        }
 
        /**
index fefdf785004dfffdc5b60ab0e77d08a4fa2faf7b..cc4d682c010bc678b74d75038e5cc11c962f1181 100644 (file)
@@ -18,7 +18,6 @@ import org.eclipse.swt.widgets.Text;
 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.api.service.IReferenceService;
 import eu.etaxonomy.cdm.model.reference.Reference;
-import eu.etaxonomy.cdm.strategy.cache.reference.DefaultReferenceCacheStrategy;
 import eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard;
 import eu.etaxonomy.taxeditor.newWizard.NewReferenceWizard;
 import eu.etaxonomy.taxeditor.store.CdmStore;
@@ -82,8 +81,11 @@ public class ReferenceSelectionDialog extends AbstractFilteredCdmResourceSelecti
             pattern = ((Text)control).getText();
         }
 
-
-               model = CdmStore.getService(IReferenceService.class).getUuidAndTitleCache(limitOfInitialElements,pattern);
+        if (pattern == null || pattern.equals("?")){
+            model = CdmStore.getService(IReferenceService.class).getUuidAndTitleCache(null,null);
+        }else{
+            model = CdmStore.getService(IReferenceService.class).getUuidAndTitleCache(limitOfInitialElements,pattern);
+        }
        }
 
 
index c47fa2925f8fad9d8c10d94776648c5cd33527a2..dbb9ef191ff0f779af69632c8cbd3e063a63ab30 100644 (file)
@@ -27,6 +27,7 @@ import eu.etaxonomy.cdm.model.description.PolytomousKey;
 import eu.etaxonomy.cdm.model.description.PolytomousKeyNode;
 import eu.etaxonomy.cdm.model.location.Country;
 import eu.etaxonomy.cdm.model.location.NamedArea;
+import eu.etaxonomy.cdm.model.media.Media;
 import eu.etaxonomy.cdm.model.molecular.Amplification;
 import eu.etaxonomy.cdm.model.molecular.Primer;
 import eu.etaxonomy.cdm.model.name.TaxonNameBase;
@@ -81,7 +82,7 @@ public class SelectionDialogFactory {
                if(clazz.equals(Reference.class)){
                        return (T) ReferenceSelectionDialog.select(shell, conversation, (Reference) currentSelection);
                }
-               
+
                if(clazz.equals(TaxonNameBase.class)){
                        return (T) NameSelectionDialog.select(shell, conversation, (TaxonNameBase) currentSelection);
                }
@@ -155,6 +156,9 @@ public class SelectionDialogFactory {
                if(clazz.equals(Amplification.class)){
                    return (T) AmplificationSelectionDialog.select(shell, conversation, (Amplification) currentSelection);
                }
+               if(clazz.equals(Media.class)){
+                   return (T) MediaSelectionDialog.select(shell, conversation, (Media) currentSelection);
+               }
 
                return null;
        }
index 58d144db850b00b0f8e2f8bab3e0b36442c96ed3..eac5330a67284cfa85369009b19a7da591e3e1ec 100644 (file)
@@ -21,7 +21,6 @@ import eu.etaxonomy.cdm.api.service.ITaxonService;
 import eu.etaxonomy.cdm.model.taxon.Synonym;
 import eu.etaxonomy.cdm.model.taxon.Taxon;
 import eu.etaxonomy.cdm.model.taxon.TaxonBase;
-import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache;
 import eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard;
 import eu.etaxonomy.taxeditor.newWizard.NewTaxonWizard;
 import eu.etaxonomy.taxeditor.store.CdmStore;
@@ -79,9 +78,11 @@ public class TaxonBaseSelectionDialog extends AbstractFilteredCdmResourceSelecti
             pattern = ((Text)control).getText();
         }
 
-
-
-        model = (List)CdmStore.getService(ITaxonService.class).getUuidAndTitleCache(Taxon.class, limitOfInitialElements, pattern);
+        if (pattern == null || pattern.equals("?")){
+            model = (List)CdmStore.getService(ITaxonService.class).getUuidAndTitleCache(Taxon.class, null, null);
+        }else{
+            model = (List)CdmStore.getService(ITaxonService.class).getUuidAndTitleCache(Taxon.class, limitOfInitialElements, pattern);
+        }
     }
 
     /** {@inheritDoc} */
index 5292eac19fd1be29961d8b0e555c12f3cd183a94..f727331f7b4583ac36a232f9eeb03aeaefa7c9b3 100644 (file)
@@ -149,10 +149,11 @@ public class TaxonNodeSelectionDialog extends AbstractFilteredCdmResourceSelecti
                            selectedClassification = this.cdmBaseToBeFiltered.getClassification();
                        }
                }
-
-               //FIXME prelim
-               pattern = pattern + "*";
-               model = CdmStore.getService(IClassificationService.class).getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(selectedClassification.getUuid(),  limitOfInitialElements, pattern);
+               if (pattern == null || pattern.equals("?")){
+                   model = CdmStore.getService(IClassificationService.class).getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(selectedClassification.getUuid(),  limitOfInitialElements, pattern);
+               }else{
+                   model = CdmStore.getService(IClassificationService.class).getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(selectedClassification.getUuid(),  null, null);
+               }
        }
 
        /** {@inheritDoc} */
index 32d06710ef86f5409207e8fa7f1d367ba15b72ed..27f16fde274ac6eed806ca92a185b37f82a5f8ec 100644 (file)
@@ -915,7 +915,7 @@ public class CdmFormFactory extends FormToolkit {
             String labelString,
             T selection,
             int style) {
-        return this.createDefinedTermComboElement(termType, null, parentElement, labelString, selection, false, style, true);
+        return this.createDefinedTermComboElement(termType, null, parentElement, labelString, selection, false, style, false);
     }
 
     public <T extends DefinedTermBase> TermComboElement<T> createDefinedTermComboElement(
@@ -2584,7 +2584,7 @@ public class CdmFormFactory extends FormToolkit {
         } else if (entity instanceof TaxonNodeAgentRelation) {
             element = new TaxonNodeAgentRelationCollectionElement(this, parentElement, (TaxonNodeAgentRelation) entity, removeListener, backgroundColor, style);
         }else if (entity instanceof Media) {
-            element = new MediaMetaElement(this, parentElement, (Media) entity, removeListener, true, style);
+            element = new MediaMetaElement(this, parentElement, (Media) entity, removeListener, style);
         } else if (entity instanceof MediaRepresentation) {
             element = new MediaRepresentationElement(this, parentElement, (MediaRepresentation) entity, removeListener,
                     style);
index 2a32e820560fc1aaf521c5c120cd2b73648e09ce..a6bbaca09fe4e482f494d7579fffc87ee93b9470 100644 (file)
@@ -16,8 +16,6 @@ import org.eclipse.swt.events.SelectionListener;
 import org.eclipse.swt.graphics.Color;
 import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
 import org.eclipse.ui.forms.widgets.TableWrapLayout;
 
 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
@@ -59,14 +57,9 @@ public abstract class AbstractEntityCollectionElement<ENTITY> extends
 
        private Color backgroundColor;
 
-       public AbstractEntityCollectionElement(CdmFormFactory formFactory,
-               AbstractFormSection section, ENTITY entity,
-               SelectionListener removeListener, Color backgroundColor, int style) {
-           this(formFactory, section, entity, removeListener, false, backgroundColor, style);
-       }
        public AbstractEntityCollectionElement(CdmFormFactory formFactory,
                        AbstractFormSection section, ENTITY entity, SelectionListener removeListener,
-                       boolean isChoosableEntity, Color backgroundColor, int style) {
+                       Color backgroundColor, int style) {
                super(formFactory, (ICdmFormElement) section);
                this.entity = entity;
 
@@ -97,31 +90,6 @@ public abstract class AbstractEntityCollectionElement<ENTITY> extends
                container.setLayout(containerLayout);
                container.setLayoutData(LayoutConstants.FILL_HORIZONTALLY());
 
-               if(isChoosableEntity){
-                   btnChooseEntity = formFactory.createButton(box, null, SWT.PUSH);
-                   addControl(btnChooseEntity);
-
-                   btnChooseEntity.setLayoutData(LayoutConstants.RIGHT());
-                   btnChooseEntity.setImage(ImageResources.getImage(ImageResources.BROWSE_ICON));
-                   btnChooseEntity.setToolTipText("Browse");
-                   btnChooseEntity.addListener(SWT.Selection, new Listener() {
-
-                       @Override
-                       public void handleEvent(Event event) {
-                           ENTITY entity = selectFromDialog();
-                           if(entity!=null){
-                               if(getParentElement() instanceof AbstractEntityCollectionSection){
-                                   ((AbstractEntityCollectionSection)getParentElement()).removeElement(getEntity());
-                                   setEntity(entity);
-                                   ((AbstractEntityCollectionSection)getParentElement()).addElement(entity);
-                                   ((AbstractEntityCollectionSection)getParentElement()).firePropertyChangeEvent(getParentElement());
-                               }
-
-                           }
-                       }
-                   });
-               }
-
                if (removeListener != null) {
                        btnRemove = formFactory.createButton(box, null, SWT.PUSH);
                        addControl(btnRemove);
index 693a54028bdb1c7e4a9849418f9105eabd084cb2..81ece03c26b0f8c3b54ec18729b0a5fe18e92daf 100644 (file)
@@ -85,17 +85,17 @@ public abstract class AbstractEntityCollectionSection<ENTITY, ELEMENT> extends A
        protected Control createToolbar() {
                ToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT);
 
-               Action addAction = new Action("add", IAction.AS_PUSH_BUTTON){
+               Action addAction = new Action("Add", IAction.AS_PUSH_BUTTON){
                        @Override
                        public void run() {
-                               ELEMENT element = createNewElement();
-                               if(element != null){
-                                       addElement(element);
-                                       if(! getSection().isExpanded()) {
-                        getSection().setExpanded(true);
-                    }
-                                       internalUpdateSection(true);
-                               }
+                           ELEMENT element = createNewElement();
+                           if(element != null){
+                               addElement(element);
+                               if(! getSection().isExpanded()) {
+                                   getSection().setExpanded(true);
+                               }
+                               internalUpdateSection(true);
+                           }
                        }
                };
                addAction.setImageDescriptor(new ImageDescriptor() {
@@ -107,7 +107,35 @@ public abstract class AbstractEntityCollectionSection<ENTITY, ELEMENT> extends A
                });
                addAction.setToolTipText(getTooltipString());
 
+               Action browseAction = null;
+               if(allowAddExisting()){
+                   browseAction = new Action("Browse", IAction.AS_PUSH_BUTTON){
+                       @Override
+                       public void run() {
+                           ELEMENT element = addExisting();
+                           if(element != null){
+                               addElement(element);
+                               if(! getSection().isExpanded()) {
+                                   getSection().setExpanded(true);
+                               }
+                               internalUpdateSection(true);
+                           }
+                       }
+                   };
+                   browseAction.setImageDescriptor(new ImageDescriptor() {
+
+                       @Override
+                       public ImageData getImageData() {
+                           return ImageResources.getImage(ImageResources.BROWSE_ICON).getImageData();
+                       }
+                   });
+                   browseAction.setToolTipText("Browse");
+               }
+
                toolBarManager.add(addAction);
+               if(browseAction!=null){
+                   toolBarManager.add(browseAction);
+               }
 
                return toolBarManager.createControl(this);
        }
@@ -313,6 +341,7 @@ public abstract class AbstractEntityCollectionSection<ENTITY, ELEMENT> extends A
         return entityCollectionElement;
     }
 
+
        /**
         * Get the specific collection of this entity
         *
@@ -335,6 +364,23 @@ public abstract class AbstractEntityCollectionSection<ENTITY, ELEMENT> extends A
         */
        public abstract void addElement(ELEMENT element);
 
+       /**
+        * Add an existing element to the entities collection.
+        * @return the existing element
+        */
+       public abstract ELEMENT addExisting();
+
+       /**
+        * If <code>true</code> the section will also display
+        * a browse icon to choose from existing elements.
+        * <br>
+        * <b>Note:</b> when returning true you have to make sure
+        * to implement the {@link #addExisting()} method
+        * @return true if existing entities can be added;
+        * false otherwise
+        */
+       public abstract boolean allowAddExisting();
+
        /**
         * Remove an element from the entities collection
         *
index bc32282de180af6c55f815bfa03fa29ed86faa76..7e64521e4e65ebd6793c31499e538193974e6d74 100644 (file)
@@ -90,5 +90,20 @@ public class TeamMemberSection extends AbstractUnboundEntityCollectionSection<Te
        return isNomenclaturalTeam;
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Person addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 
 }
index 1a745788dfdd14148db26a4020c0882a1f0616a4..1847f7c25e44b2716ceafcf0ddd96007a9682f88 100644 (file)
@@ -26,13 +26,6 @@ public class TaxonNodeAgentRelationCollectionSection extends AbstractEntityColle
 
 
 
-    /**
-     * @param formFactory
-     * @param conversation
-     * @param parentElement
-
-     * @param style
-     */
     public TaxonNodeAgentRelationCollectionSection (CdmFormFactory formFactory, ConversationHolder conversation,
             ICdmFormElement parentElement, int style) {
         super(formFactory, conversation, parentElement,  "Related persons or teams", style);
@@ -80,4 +73,20 @@ public class TaxonNodeAgentRelationCollectionSection extends AbstractEntityColle
         return false;
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public TaxonNodeAgentRelation addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index 36d035f0783cfa519f424b1f2e31a4a4290b5aba..a2651e253d36996022b4d04b7eeaef230d55dbed 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -44,24 +44,24 @@ public class DescribedSpecimenSection extends AbstractEntityCollectionSection<Ta
                        int style) {
                super(formFactory, conversation, parentElement, "Described Specimen", style);
        }
-       
+
        /** {@inheritDoc} */
        @Override
        public Collection<SpecimenOrObservationBase> getCollection(
                        TaxonDescription entity) {
-               //FIXME:This class is not really an entity collection section, and should be moved 
+               //FIXME:This class is not really an entity collection section, and should be moved
                // to a single entity section, but one with the possibility of launching a wizard
                List<SpecimenOrObservationBase> collection = new ArrayList<SpecimenOrObservationBase>();
                if(entity.getDescribedSpecimenOrObservation() != null) {
-                       collection.add(entity.getDescribedSpecimenOrObservation());     
-               }               
+                       collection.add(entity.getDescribedSpecimenOrObservation());
+               }
                return collection;
        }
 
        /** {@inheritDoc} */
        @Override
        public SpecimenOrObservationBase createNewElement() {
-               DerivedUnit selection = DerivedUnitSelectionDialog.select(getShell(), getConversationHolder(), null);           
+               DerivedUnit selection = DerivedUnitSelectionDialog.select(getShell(), getConversationHolder(), null);
                return selection;
        }
 
@@ -74,7 +74,7 @@ public class DescribedSpecimenSection extends AbstractEntityCollectionSection<Ta
        /** {@inheritDoc} */
        @Override
        public void removeElement(SpecimenOrObservationBase element) {
-               getEntity().setDescribedSpecimenOrObservation(null);            
+               getEntity().setDescribedSpecimenOrObservation(null);
        }
 
        /** {@inheritDoc} */
@@ -88,4 +88,20 @@ public class DescribedSpecimenSection extends AbstractEntityCollectionSection<Ta
        protected String getTooltipString() {
                return "Add a described specimen.";
        }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public SpecimenOrObservationBase addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }
index 3a54e2b1a1247be1cf9e46a84e39a3ae19fa21a0..2f376ca09aa57e9c0b0ea9f121292c687ea72faf 100644 (file)
@@ -79,5 +79,21 @@ public class DescriptionElementMediaSection extends
                getEntity().removeMedia(element);
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Media addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 
 }
index 6c74da87009652102f6c3a523691da51f28c8569..635385c0e53627c1a38bc51c4dae87598657037f 100644 (file)
@@ -87,4 +87,20 @@ public class DescriptionElementSourceSection extends
     public void removeElement(DescriptionElementSource element) {
         getEntity().removeSource(element);
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public DescriptionElementSource addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }
index 68095f5aa3cee99f5d95497edca171ce801f6a5f..0c508ed334ce333d570a514aef70fbdf8f5db62a 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -29,7 +29,7 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection;
  */
 public class DescriptionSourceSection extends
                AbstractEntityCollectionSection<DescriptionBase, IdentifiableSource>{
-       
+
        /**
         * <p>Constructor for DescriptionSourceSection.</p>
         *
@@ -43,7 +43,7 @@ public class DescriptionSourceSection extends
                super(cdmFormFactory, conversation, parentElement, "Description Sources", style);
        }
 
-       
+
 
        /** {@inheritDoc} */
        @Override
@@ -54,7 +54,7 @@ public class DescriptionSourceSection extends
        /** {@inheritDoc} */
        @Override
        public IdentifiableSource createNewElement() {
-               OriginalSourceType ost = OriginalSourceTypeSelectionDialog.select(getShell(), getConversationHolder()); 
+               OriginalSourceType ost = OriginalSourceTypeSelectionDialog.select(getShell(), getConversationHolder());
                if(ost != null) {
                        return IdentifiableSource.NewInstance(ost);
                } else {
@@ -85,4 +85,24 @@ public class DescriptionSourceSection extends
        public void removeElement(IdentifiableSource element) {
                getEntity().removeSource(element);
        }
+
+
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public IdentifiableSource addExisting() {
+        return null;
+    }
+
+
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }
index c293960563cd25850c7cd97564307676d868db1f..ca3dcc277776ac908afeabd929fb7b0a2cf4ac00 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -26,7 +26,7 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection;
  * @version 1.0
  */
 public class GeoScopeSection extends AbstractEntityCollectionSection<TaxonDescription, NamedArea> {
-       
+
        /**
         * <p>Constructor for GeoScopeSection.</p>
         *
@@ -39,7 +39,7 @@ public class GeoScopeSection extends AbstractEntityCollectionSection<TaxonDescri
                        ConversationHolder conversation, ICdmFormElement parentElement, int style) {
                super(formFactory, conversation, parentElement, "Geo Scope", style);
        }
-       
+
        /** {@inheritDoc} */
        @Override
        public Collection<NamedArea> getCollection(TaxonDescription entity) {
@@ -75,4 +75,20 @@ public class GeoScopeSection extends AbstractEntityCollectionSection<TaxonDescri
        protected String getTooltipString() {
                return "Add a new geo scope.";
        }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public NamedArea addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }
index 00b4fa1ab32c18836e3f5c42271faedd190505c8..b4ad1c9bbe8a2beac26bf542da1723eeaaccb83f 100644 (file)
@@ -79,4 +79,20 @@ public class ModifierSection extends AbstractUnboundEntityCollectionSection<IMod
     protected Collection<DefinedTerm> getEntityCollection(IModifiable entity) {
         return entity.getModifiers();
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public DefinedTerm addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }
index 7b6b3de4317a8d8bc465b5726591b21e9b0fa329..566f76a2d748ab096b349f4cc7f058786e1c36e2 100644 (file)
@@ -77,4 +77,20 @@ public class ScopeSection extends AbstractUnboundEntityCollectionSection<TaxonDe
     protected Collection<DefinedTerm> getEntityCollection(TaxonDescription entity) {
         return entity.getScopes();
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public DefinedTerm addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }
index 27838d79027da2602ee69e330a8dffc51cf2ce70..b2b8fcb504cb87121954ad638184263444e031c0 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -40,7 +40,7 @@ public class StateDataSection extends AbstractEntityCollectionSection<Categorica
                        int style) {
                super(formFactory, conversation, parentElement, "State Data", style);
        }
-       
+
        /** {@inheritDoc} */
        @Override
        public Collection<StateData> getCollection(CategoricalData entity) {
@@ -77,5 +77,21 @@ public class StateDataSection extends AbstractEntityCollectionSection<Categorica
                return "Create new state data";
        }
 
-       
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public StateData addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
+
 }
index 1acaed0060b8ee49c222ea1a25ebcb4040b4c49f..ac7b24aaf0e413284ee6b663e8b03f6a53a21d36 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -27,7 +27,7 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection;
  */
 public class StatisticalMeasurementValueSection extends
                AbstractEntityCollectionSection<QuantitativeData, StatisticalMeasurementValue> {
-       
+
        /**
         * <p>Constructor for StatisticalMeasurementValueSection.</p>
         *
@@ -41,7 +41,7 @@ public class StatisticalMeasurementValueSection extends
                        int style) {
                super(formFactory, conversation, parentElement, "Statistical Measurement Value", style);
        }
-       
+
        /** {@inheritDoc} */
        @Override
        public Collection<StatisticalMeasurementValue> getCollection(
@@ -78,4 +78,20 @@ public class StatisticalMeasurementValueSection extends
        protected String getTooltipString() {
                return "Create new statistical value";
        }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public StatisticalMeasurementValue addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }
index 69df8bc70372a2b5c3dbd857506e8b2041d65850..c94bb2a5a745e5f9a935d68477beb438469818d4 100644 (file)
@@ -1,8 +1,8 @@
 /**
  * Copyright (C) 2007 EDIT
- * European Distributed Institute of Taxonomy 
+ * 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.
  */
@@ -44,7 +44,7 @@ public class GrantedAuthorityDetailSection extends
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#
         * getCollection(java.lang.Object)
         */
@@ -55,7 +55,7 @@ public class GrantedAuthorityDetailSection extends
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#
         * createNewElement()
         */
@@ -64,14 +64,14 @@ public class GrantedAuthorityDetailSection extends
 //             StoreUtil
 //                             .warningDialog("Not implemented yet", getClass(),
 //                                             "This functionality needs to be implemented in CDM Library first.");
-               
+
                GrantedAuthority selection = GrantedAuthoritySelectionDialog.select(getLayoutComposite().getShell(), getConversationHolder(), null);
                return selection;
        }
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see
         * eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#addElement
         * (java.lang.Object)
@@ -83,7 +83,7 @@ public class GrantedAuthorityDetailSection extends
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#
         * removeElement(java.lang.Object)
         */
@@ -94,7 +94,7 @@ public class GrantedAuthorityDetailSection extends
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#
         * getEmptyString()
         */
@@ -105,7 +105,7 @@ public class GrantedAuthorityDetailSection extends
 
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#
         * getTooltipString()
         */
@@ -114,4 +114,20 @@ public class GrantedAuthorityDetailSection extends
                return "Add a Granted Authority";
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public GrantedAuthority addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index 44c74035eff302548c53a0118739b36cdc2cbe22..02018f4748c451c3655a4792bfba3a21b333341d 100644 (file)
@@ -88,6 +88,24 @@ public class MemberDetailSection extends AbstractEntityCollectionSection<Group,
                return "Add a memeber to this group";
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public User addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
        
 
 }
index 4735ccd5a6dde0d87e692e8288e5469802c7519c..8c302fcf657d3ccec0ffe905cce7d2cc86306af1 100644 (file)
@@ -56,4 +56,24 @@ public class ScopeRestrictionSection extends AbstractUnboundEntityCollectionSect
                return "Add a scope restriction";
        }
 
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public DefinedTerm addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }
index 76f96121f61d94e812f6ec2abf8e62408a66121d..df82175ec4185aa98dccaf41a8318fc706f63b21 100644 (file)
@@ -111,4 +111,22 @@ public class TaxonomicScopeSection extends
                return "Add a taxon to the scope of this key";
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Taxon addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }
index fd51f9393bdbc8f9bdec2956aaf215bc8229fbe1..c6fb2d920c173f1314a5ac27ff407829647c387f 100644 (file)
@@ -46,14 +46,14 @@ public class MediaMetaElement extends AbstractEntityCollectionElement<Media> imp
 
     public MediaMetaElement(CdmFormFactory cdmFormFactory,
             AbstractFormSection<?> formElement, Media element,
-            SelectionListener removeListener, boolean isChoosableEntity, int style) {
-        super(cdmFormFactory, formElement, element, removeListener, isChoosableEntity, null, style);
+            SelectionListener removeListener, int style) {
+        super(cdmFormFactory, formElement, element, removeListener, null, style);
         //make element selectable
         if(cdmFormFactory.getSelectionProvider() != null){
             selectionArbitrator = cdmFormFactory.createSelectionArbitrator(this);
         }
-       
-       
+
+
     }
 
     /** {@inheritDoc} */
@@ -102,12 +102,12 @@ public class MediaMetaElement extends AbstractEntityCollectionElement<Media> imp
         }
 
         text_title.setLanguageString(title);
-        
+
     }
 
     @Override
     protected Media selectFromDialog() {
-       
+
        setEntity(MediaSelectionDialog.select(AbstractUtility.getShell(), null, null));
         return entity;
     }
index e191040b963d1c41a438d565c1da9e5d191e2b44..743f904aa3600dac1b60efc5fc5ae22128e258cb 100644 (file)
@@ -22,7 +22,7 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection;
  */
 public class MediaRepresentationPartSection extends
                AbstractEntityCollectionSection<MediaRepresentation, MediaRepresentationPart> {
-       
+
        /**
         * <p>Constructor for MediaRepresentationPartSection.</p>
         *
@@ -85,5 +85,21 @@ public class MediaRepresentationPartSection extends
                        firePropertyChangeEvent(new CdmPropertyChangeEvent(this, null));
                        super.propertyChange(event);
                }
-       }       
+       }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public MediaRepresentationPart addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }
index 41c78e4650352160fe3d57f2098cb099998f59c7..46a0343a4934db436c98cb3edba2188d6d288af4 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -39,7 +39,7 @@ public class MediaRepresentationSection extends AbstractEntityCollectionSection<
                        ICdmFormElement parentElement, int style) {
                super(cdmFormFactory, conversation, parentElement, "Media Representation", style);
        }
-       
+
        /** {@inheritDoc} */
        @Override
        public void addElement(MediaRepresentation element) {
@@ -77,5 +77,21 @@ public class MediaRepresentationSection extends AbstractEntityCollectionSection<
                getEntity().removeRepresentation(element);
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public MediaRepresentation addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 
 }
index 978c51526cbd01e1ddc4e7be3d82e3a1c3b441de..e85971ef7311f472649f47781d0fd1417f71f81f 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * 
+ *
  */
 package eu.etaxonomy.taxeditor.ui.section.media;
 
@@ -8,6 +8,7 @@ import java.util.Collection;
 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity;
 import eu.etaxonomy.cdm.model.media.Media;
+import eu.etaxonomy.taxeditor.ui.dialog.selection.MediaSelectionDialog;
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
 import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection;
@@ -68,4 +69,20 @@ public class MediaSection extends AbstractEntityCollectionSection<IdentifiableMe
                getEntity().removeMedia(element);
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Media addExisting() {
+        return MediaSelectionDialog.select(getShell(), getConversationHolder(), null);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return true;
+    }
+
 }
index a17870c99ed63f87be385ab4ef4292d3bb0f6670..bcb172286061ea0d9ce7cd2829898eca7db80679 100644 (file)
@@ -116,4 +116,20 @@ public class NameRelationshipDetailSection extends AbstractEntityCollectionSecti
        public TaxonBase getTaxonBase() {
                return taxonBase;
        }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public NameRelationship addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }
index 6161360998005a4c322d7c91d54a65c03ba69ecf..7b1bfa5a323ef82905332fec3f9d00f77555b7ae 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -83,12 +83,13 @@ public class NomenclaturalStatusSection extends AbstractEntityCollectionSection<
        }
 
        /** {@inheritDoc} */
-       public void setTaxonBase(TaxonBase entity) {
+       @Override
+    public void setTaxonBase(TaxonBase entity) {
                this.taxonBase = entity;
                NonViralName nonViralName = (NonViralName) HibernateProxyHelper.deproxy(entity.getName());
                setEntity(nonViralName);
        }
-       
+
        /* (non-Javadoc)
         * @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#getTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase)
         */
@@ -97,4 +98,20 @@ public class NomenclaturalStatusSection extends AbstractEntityCollectionSection<
                return taxonBase;
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public NomenclaturalStatus addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index 90ee563842131af32a43e85dedeff8a8d5b35008..250b4b608e601f33ec334f4e719cd0e32c0ce17c 100644 (file)
@@ -17,17 +17,14 @@ import org.eclipse.swt.SWT;
 import org.eclipse.swt.widgets.Control;
 
 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
-import eu.etaxonomy.cdm.api.service.ITaxonNodeService;
 import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
 import eu.etaxonomy.cdm.model.name.NonViralName;
 import eu.etaxonomy.cdm.model.name.TaxonNameBase;
 import eu.etaxonomy.cdm.model.taxon.TaxonBase;
-import eu.etaxonomy.cdm.model.taxon.TaxonNode;
 import eu.etaxonomy.taxeditor.model.ImageResources;
 import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
 import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
-import eu.etaxonomy.taxeditor.store.CdmStore;
 import eu.etaxonomy.taxeditor.ui.dialog.selection.NameSelectionDialog;
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
 import eu.etaxonomy.taxeditor.ui.element.CdmPropertyChangeEvent;
@@ -75,7 +72,6 @@ public class NonViralNameDetailSection extends AbstractCdmDetailSection<NonViral
                            TaxonNameBase taxonName = NameSelectionDialog.select(getShell(), getConversationHolder(), getEntity());
                            if(taxonName!=null){
                                if(taxonName.isInstanceOf(NonViralName.class)){
-                                   CdmStore.getService(ITaxonNodeService.class).list(TaxonNode.class, null, null, null, null);
                                    NonViralName nonViralName = HibernateProxyHelper.deproxy(taxonName, NonViralName.class);
                                    taxonBase.setName(nonViralName);
                                    //                                  taxonBase.getTitleCache();
index c001631b8020e5458d10c60afd64d6472b0e1fa4..5135b2f4f66363a671c75ec835da2f47f4fe2d67 100644 (file)
@@ -138,4 +138,20 @@ public class ProtologueSection extends AbstractEntityCollectionSection<TaxonName
        public TaxonBase getTaxonBase() {
                return taxonBase;
        }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public DescriptionElementBase addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }
index 838b6bf083f85f885333e33dbc8c30e53f2c64e3..da65f9793199bf3fc8c4801aa481853f16090bdd 100644 (file)
@@ -125,4 +125,20 @@ public class TypeDesignationSection extends AbstractEntityCollectionSection<Taxo
        public TaxonBase getTaxonBase() {
                return taxonBase;
        }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public TypeDesignationBase addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }
index b66f13dc9c19d7246a2300db81851362778d5da2..a47e134fbb22a552619411f7c59adc3983fc634e 100644 (file)
@@ -100,4 +100,20 @@ public class CollectingAreasDetailSection extends AbstractEntityCollectionSectio
                return "Add a collecting area";
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public NamedArea addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index d8b22d0a6a4ed98d7d3e8d6023c0f2678bc97088..6f97a6b7bfe26b328eafc58b20ae6bfb837709d7 100644 (file)
@@ -118,4 +118,20 @@ public class CurrentDeterminationDetailSection extends
                return "Create new current determination event";
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public DeterminationEvent addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index 1c042a399e310766bff4339243e23adaf6542c63..6e7867b5d35f7eac47ef9bc66cb7d14f134ae693 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -44,12 +44,12 @@ public class DeterminationHistoryDetailSection extends
        public Collection<DeterminationEvent> getCollection(DerivedUnitFacade entity) {
                return entity != null ? entity.getOtherDeterminations() : null;
        }
-       
+
        @Override
        public void refresh() {
                internalUpdateSection(false);
        }
-       
+
 
        /* (non-Javadoc)
         * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#getTooltipString()
@@ -60,4 +60,20 @@ public class DeterminationHistoryDetailSection extends
                return "Add a determination event to the history";
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public DeterminationEvent addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index 6bbdc7e53e4d3526648eeb3a42995bbc32fbfefe..6a7eeda118f54f3bfd11f91aed5acf071bbe4604 100644 (file)
@@ -99,4 +99,21 @@ public class GeoScopeDetailSection extends AbstractEntityCollectionSection<Class
                return "Add a geo scope";
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public NamedArea addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }
index 34e092f481e0aa85406ca9d02db2db966fe01d48..5029c9e1fe1603367a916145ef32cba2f97e0cf0 100644 (file)
@@ -70,4 +70,20 @@ public class GeoScopePolyKeyDetailSection extends AbstractEntityCollectionSectio
                return "Add a geo scope";
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public NamedArea addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index dee731f4d32312198c5f2db5ead39cadef67062d..e1d1e3c0e39368bc4fa88f9c8d39803b214a56b4 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -57,7 +57,7 @@ public class SourceCollectionDetailSection extends
        /** {@inheritDoc} */
        @Override
        public IdentifiableSource createNewElement() {
-               return IdentifiableSource.NewInstance(OriginalSourceType.PrimaryTaxonomicSource);               
+               return IdentifiableSource.NewInstance(OriginalSourceType.PrimaryTaxonomicSource);
        }
 
        /* (non-Javadoc)
@@ -96,4 +96,20 @@ public class SourceCollectionDetailSection extends
                return "Add source";
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public IdentifiableSource addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index 8a2e99c480bbaa88150c96cbb8d295f7a4449903..0c2758ec25b68dacf4cad7f21aaa8a167920d5be 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -56,8 +56,8 @@ public class SpecimenCollectionDetailSection extends
         */
        /** {@inheritDoc} */
        @Override
-       public DerivedUnit createNewElement() {         
-               return DerivedUnit.NewInstance(SpecimenOrObservationType.PreservedSpecimen);            
+       public DerivedUnit createNewElement() {
+               return DerivedUnit.NewInstance(SpecimenOrObservationType.PreservedSpecimen);
        }
 
        /* (non-Javadoc)
@@ -96,4 +96,20 @@ public class SpecimenCollectionDetailSection extends
                return "Add a duplicate";
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public DerivedUnit addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index 215646f365891b4289688f2e37c68ad1eed4a78c..5afff341a9d4073c045a286aceb0737d673f1330 100644 (file)
@@ -86,5 +86,21 @@ public class DerivedUnitTypeDesignationSection extends AbstractEntityCollectionS
         return "Add a type designation";
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public SpecimenTypeDesignation addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 
 }
index 7d22a739effcae706d47015181d2ff892203b4d8..b30f3a8f277a83d8dc79d93047d42d9a59f53a4a 100644 (file)
@@ -131,4 +131,20 @@ public class PreservedSpecimenCurrentDeterminationDetailSection extends
                return "Create new current determination event";
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public DeterminationEvent addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index d7deac8da6024329e9b7d761db8753319ceeaf20..3a35bbf0649fed76dcde636c33ddbd9b265b7a43 100644 (file)
@@ -96,4 +96,20 @@ public class PreservedSpecimenSourceCollectionDetailSection extends
                return "Add source";
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public IdentifiableSource addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index ebba487def9d639d0bc6a371a63ba9e2fec67cb3..0c30ec363b84512ea86d86d7210da51cd0d9fe5a 100644 (file)
@@ -96,4 +96,24 @@ public class AmplificationGelPhotoCollectionDetailSection extends AbstractEntity
         return "Add a gel photo";
     }
 
+
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Media addExisting() {
+        return null;
+    }
+
+
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index 42f8a470777fa8258cb8091783030722ba79b2af..815a4341945cb8a6b323145d361f3f406e6189ee 100644 (file)
@@ -73,4 +73,20 @@ public class CurrentSampleDesignationDetailSection extends AbstractSampleDesigna
         getEntity().addIdentifier(0, sampleDesignation);
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Identifier addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index b018896e83d14a0e77cf8fd777a3c0cd875f27f1..d4bfaa64164de9688c0d7c77e967039a46b65155 100644 (file)
@@ -84,4 +84,20 @@ public class SampleDesignationHistoryDetailSection extends AbstractSampleDesigna
         getEntity().addIdentifier(indexOfCurrentSampleDesignation+1, sampleDesignation);
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Identifier addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 }
index a4f60268af8cfd137940b561189357b57f29461e..f32d9cc10c4715a85296ccc7ebdf0c037213dacf 100644 (file)
@@ -72,7 +72,7 @@ public class SequenceContigFileCollectionDetailSection extends AbstractEntityCol
             getEntity().setContigFile(element);
                        /*
                         * merge to avoid duplicate key exception
-                        * the exception seems to be caused by the two links to the Media object: 
+                        * the exception seems to be caused by the two links to the Media object:
                         *  - Sequence->contigFile (used to be not in the cache after saving)
                         *  - MediaRepresentationPart->media
                         *  Invoking merge() solves this problem
@@ -104,4 +104,24 @@ public class SequenceContigFileCollectionDetailSection extends AbstractEntityCol
     protected String getTooltipString() {
         return "Add a contig file";
     }
+
+
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Media addExisting() {
+        return null;
+    }
+
+
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }
index 220dae784ee2e32819fb2ac8166105d976330c0e..14ae973fa94058bca82a37dc2f05f61e6e8b7bbe 100644 (file)
@@ -84,5 +84,21 @@ public class SequenceReferenceCollectionDetailSection extends AbstractUnboundEnt
         return "Add a reference";
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Reference addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
+
 
 }
index 869a382148ddbb03eb0dccf3273a50cb669cb119..2ad7553993876883362d0029876538119a954a59 100644 (file)
@@ -72,7 +72,7 @@ public class SingleReadPherogramCollectionDetailSection extends AbstractEntityCo
             getEntity().setPherogram(element);
                        /*
                         * merge to avoid duplicate key exception
-                        * the exception seems to be caused by the two links to the Media object: 
+                        * the exception seems to be caused by the two links to the Media object:
                         *  - SingleRead->pherogram (used to be not in the cache after saving)
                         *  - MediaRepresentationPart->media
                         *  Invoking merge() solves this problem
@@ -104,4 +104,24 @@ public class SingleReadPherogramCollectionDetailSection extends AbstractEntityCo
     protected String getTooltipString() {
         return "Add a read chromatogram";
     }
+
+
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Media addExisting() {
+        return null;
+    }
+
+
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }
index 9f1a896794ef7da0554f7e5f5342bc515afe676e..92dd2fdb5d4f0d76ec8a43ed7488c4f2853aab1f 100644 (file)
@@ -89,25 +89,40 @@ public abstract class AbstractOriginalSourceElement<T extends OriginalSourceBase
                 return -1;
             }
             else if(o1!=null && o2 !=null){
-                if(entity.getType().equals(OriginalSourceType.PrimaryMediaSource)){
-                    if(o1.equals(OriginalSourceType.PrimaryMediaSource)){
+                //both are either taxonomic or media
+                if(o1.equals(OriginalSourceType.PrimaryTaxonomicSource)
+                        && o2.equals(OriginalSourceType.PrimaryMediaSource)){
+                    if(entity.getType().equals(OriginalSourceType.PrimaryMediaSource)){
+                        return 1;
+                    }
+                    else{
+                        return -1;
+                    }
+                }
+                else if(o2.equals(OriginalSourceType.PrimaryTaxonomicSource)
+                        && o1.equals(OriginalSourceType.PrimaryMediaSource)){
+                    if(entity.getType().equals(OriginalSourceType.PrimaryMediaSource)){
                         return -1;
                     }
-                    else if(o2.equals(OriginalSourceType.PrimaryMediaSource)){
+                    else{
                         return 1;
                     }
                 }
+                //one is not taxonomic or media
                 else{
-                    if(o1.equals(OriginalSourceType.PrimaryTaxonomicSource)){
+                    if(o1.equals(OriginalSourceType.PrimaryTaxonomicSource)
+                            ||o1.equals(OriginalSourceType.PrimaryMediaSource)){
                         return -1;
+
                     }
-                    else if(o2.equals(OriginalSourceType.PrimaryTaxonomicSource)){
+                    else if(o2.equals(OriginalSourceType.PrimaryTaxonomicSource)
+                            || o2.equals(OriginalSourceType.PrimaryMediaSource)){
                         return 1;
                     }
+                    String message1 = o1.getKey();
+                    String message2 = o2.getKey();
+                    return message1.compareTo(message2);
                 }
-                String message1 = o1.getMessage();
-                String message2 = o2.getMessage();
-                return message1.compareTo(message2);
             }
             return 0;
         }
index 2a7fff5d2bdfde8d75d2ea6afdaa4cbf52779539..188a551e944da128ec7da2692c6eac68cf1ec464 100644 (file)
@@ -74,5 +74,23 @@ public class AnnotationSection extends AbstractEntityCollectionSection<Annotatab
        @Override
        public void removeElement(Annotation element) {
                getEntity().removeAnnotation(element);
-       }       
+       }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Annotation addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }  
 }
index 107b6b20a774c94454938ba0d5492e665577aceb..d5c85e834ab6c1af0983975695566726c100501e 100644 (file)
@@ -69,4 +69,22 @@ public class CreditSection extends AbstractEntityCollectionSection<IdentifiableE
                getEntity().removeCredit(element);
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Credit addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }
index 7e0c0c8af05f11410a0d675f24e51a2533b0db3b..ef2b8f69b03272c3833c9ab3907d02b166996667 100644 (file)
@@ -70,4 +70,22 @@ public class ExtensionSection extends AbstractEntityCollectionSection<Identifiab
                getEntity().removeExtension(element);
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Extension addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }
index 9d7dba4562032edc56a5dec3cf63a03b5403de7d..0185c840a423f144abe7c281a8a9617a8c44cfad 100644 (file)
@@ -64,4 +64,22 @@ public class MarkerSection extends AbstractUnboundEntityCollectionSection<Annota
         return entity.getMarkers();
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Marker addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }
index 02d1b4eba00c7d75c31c947d7f93fb369624f6ba..991aa0eaf4a9aa81aa56a91a4ee45f04e3e10e3b 100644 (file)
@@ -69,4 +69,22 @@ public class RightsSection extends AbstractEntityCollectionSection<IdentifiableE
                getEntity().removeRights(element);
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Rights addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }
index ae4b637d59aa7fc0c2a88e03a5f2530243f2bd6f..32c108d6732135fa1b416e6b79a846673518fbc1 100644 (file)
@@ -87,4 +87,22 @@ public class SourceSection extends AbstractEntityCollectionSection<IIdentifiable
                getEntity().removeSource(element);
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public IdentifiableSource addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }
index c955165d1a8a74bc66065a117ca01195b594e5ad..9e59fd95301685b68b59fb9bbc1d55e2392cd79b 100644 (file)
@@ -48,4 +48,22 @@ public class DerivedUnitFacadeIdentifierSection extends AbstractIdentifierSectio
                getEntity().removeIdentifier(element);
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Identifier addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }
index 47c0714c6d36424e39fb5441ff7265653f82d458..c7a526e5bfd9a9124d1dd0d46c8c72bb696c84eb 100644 (file)
@@ -45,4 +45,22 @@ public class IdentifierSection extends AbstractIdentifierSection<IdentifiableEnt
                getEntity().removeIdentifier(element);
        }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Identifier addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }
index 75f83615adc1b7ccf7d2f26f9589c856d4b34484..e9b8b1b73b84c0cbee46417c0048d57e4eaad83a 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * 
+ *
  */
 package eu.etaxonomy.taxeditor.ui.section.user;
 
@@ -80,5 +80,23 @@ public class GroupsByUserDetailSection extends AbstractEntityCollectionSection<U
        protected String getTooltipString() {
                return "Add this user to a group";
        }
-       
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Group addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }
index cc70dfb0f0b72289e243e6e4dd5684472419bbcb..187f41a94e3a5d5857cc6d626f02b958b13d0b6b 100644 (file)
@@ -41,7 +41,7 @@ public class MeasurementUnitCollectionElement extends AbstractEntityCollectionEl
      */
     public MeasurementUnitCollectionElement(CdmFormFactory formFactory, AbstractFormSection section, MeasurementUnit entity,
             SelectionListener removeListener, Color backgroundColor, int style) {
-        super(formFactory, section, entity, removeListener, false, backgroundColor, style);
+        super(formFactory, section, entity, removeListener, backgroundColor, style);
 
     }
 
index 53417143cd34ee4e94cbc7d3bace9d32f512df57..a2e9daacd58284916962ca8123ab275753f6efaa 100644 (file)
@@ -83,4 +83,22 @@ public class MeasurementUnitCollectionSection extends AbstractUnboundEntityColle
         return "Add a measurement unit";
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public MeasurementUnit addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }
index 1b8b1601c466f7474e58b9d321347303fb9eaa23..6f00dd0782150bdfb48eaf46a51bacd0066f3154 100644 (file)
@@ -85,5 +85,23 @@ public class RecommendedModifierVocabulariesCollectionSection extends AbstractUn
         return "Add a modifier vocabulary";
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public TermVocabulary<DefinedTerm> addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 
 }
index 7536fec98c86864ad298ac123a63bf8058521731..f75b4ef74f51b99f1d9538b7a52d31787d5b5ff2 100644 (file)
@@ -42,7 +42,7 @@ public class RecommendedModifierVocabulariesElement extends AbstractEntityCollec
      */
     public RecommendedModifierVocabulariesElement(CdmFormFactory formFactory, AbstractFormSection section, TermVocabulary<DefinedTerm> entity,
             SelectionListener removeListener, Color backgroundColor, int style) {
-        super(formFactory, section, entity, removeListener, false, backgroundColor, style);
+        super(formFactory, section, entity, removeListener, backgroundColor, style);
 
     }
 
index f49f23ce023b0863c3e6eb7c304449e9e55175ff..c5a91413aadbbc6096b35764c1fa5647186f722a 100644 (file)
@@ -42,7 +42,7 @@ public class StateVocabularyCollectionElement extends AbstractEntityCollectionEl
      */
     public StateVocabularyCollectionElement(CdmFormFactory formFactory, AbstractFormSection section, TermVocabulary<State> entity,
             SelectionListener removeListener, Color backgroundColor, int style) {
-        super(formFactory, section, entity, removeListener, false, backgroundColor, style);
+        super(formFactory, section, entity, removeListener, backgroundColor, style);
 
     }
 
index 6a2d2050064c14481b185295829b8083fb5a7e31..76f47c9022e5c7948800e5d642ff2f22a290cedf 100644 (file)
@@ -85,5 +85,23 @@ public class StateVocabularyCollectionSection extends AbstractUnboundEntityColle
         return "Add a state vocabulary";
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public TermVocabulary<State> addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 
 }
index 62c0ebf6983869757195e6db2e288f9b4ddd4cd1..492be0f82d7ada2d5fbed34650f812e6b619000f 100644 (file)
@@ -41,7 +41,7 @@ public class StatisticalMeasureCollectionElement extends AbstractEntityCollectio
      */
     public StatisticalMeasureCollectionElement(CdmFormFactory formFactory, AbstractFormSection section, StatisticalMeasure entity,
             SelectionListener removeListener, Color backgroundColor, int style) {
-        super(formFactory, section, entity, removeListener, false, backgroundColor, style);
+        super(formFactory, section, entity, removeListener, backgroundColor, style);
 
     }
 
index 25e490a8b260e45bb9238501d90492bf24d6cd90..2487f538a65786d0c3223633d18825208bb8a6a9 100644 (file)
@@ -83,4 +83,22 @@ public class StatisticalMeasureCollectionSection extends AbstractUnboundEntityCo
         return "Add a statistical measure";
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public StatisticalMeasure addExisting() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
 }
index 8709c56efc2066b2a19d52c144c54c9ca77337e1..0f6aecbbd1ac530046506c5f0f376d4877d95341 100644 (file)
@@ -52,10 +52,6 @@ import eu.etaxonomy.taxeditor.ui.element.SelectionArbitrator;
 import eu.etaxonomy.taxeditor.ui.section.grantedAuthority.GrantedAuthorityLabelTextProvider;
 
 /**
- * <p>
- * Abstract AbstractSelectionElement class.
- * </p>
- *
  * @author n.hoffmann
  * @created Nov 17, 2009
  * @version 1.0
@@ -101,39 +97,12 @@ public class EntitySelectionElement<T extends CdmBase> extends
        private final ConversationHolder conversation;
        private Class<T> clazz;
 
-       /**
-        * <p>
-        * Constructor for AbstractSelectionElement.
-        * </p>
-        *
-        * @param formFactory
-        *            a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}
-        *            object.
-        * @param conversation
-        *            TODO
-        * @param parentElement
-        *            a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement}
-        *            object.
-        * @param labelString
-        *            a {@link java.lang.String} object.
-        * @param entity
-        *            a T object.
-        * @param isEditable
-        *            a boolean.
-        * @param isSelectable
-        *            a boolean.
-        * @param isDeletable
-        *            a boolean.
-        * @param style
-        *            a int.
-        * @param <T>
-        *            a T object.
-        */
        public EntitySelectionElement(CdmFormFactory formFactory,
-                       ConversationHolder conversation, ICdmFormElement parentElement,
+                       ConversationHolder conversation, ICdmFormElement parentElement, Class<T> clazz,
                        String labelString, T entity, int mode, int style, boolean filterElement) {
                super(formFactory, parentElement);
 
+               this.clazz = clazz;
                this.isEditable = (mode & EDITABLE) == EDITABLE;
                this.isDeletable = (mode & DELETABLE) == DELETABLE;
                boolean isSelectable = (mode & SELECTABLE) == SELECTABLE;
@@ -154,31 +123,15 @@ public class EntitySelectionElement<T extends CdmBase> extends
                }
        }
 
-       public EntitySelectionElement(CdmFormFactory formFactory,
-            ConversationHolder conversation, ICdmFormElement parentElement,
-            String labelString, T entity, int mode, int style){
-           this(formFactory, conversation, parentElement, labelString, entity, mode, style, false);
-       }
-
-       /**
-     * @param entity2
-     */
     private void setFilteredEntity(T filterEntity) {
         this.filteredEntity =filterEntity;
 
     }
 
-    public EntitySelectionElement(CdmFormFactory formFactory,
-                       ConversationHolder conversation, ICdmFormElement parentElement, Class<T> clazz,
-                       String labelString, T entity, int mode, int style, boolean filterElement) {
-               this(formFactory, conversation, parentElement, labelString, entity, mode, style, filterElement);
-               this.clazz = clazz;
-       }
-
     public EntitySelectionElement(CdmFormFactory formFactory,
             ConversationHolder conversation, ICdmFormElement parentElement, Class<T> clazz,
             String labelString, T entity, int mode, int style){
-        this(formFactory, conversation, parentElement, labelString, entity, mode, style, false);
+        this(formFactory, conversation, parentElement, clazz, labelString, entity, mode, style, false);
     }
 
        private void createControls(Composite parent, int style) {
index c7445fa27eeb5b7c2ecd56c220cfae1c3c34c2a2..94b0beaf0122f80fa0d7645cf7fa15ca556aa848 100644 (file)
@@ -1,8 +1,8 @@
 /**
  * Copyright (C) 2007 EDIT
- * European Distributed Institute of Taxonomy 
+ * 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.
  */
@@ -21,7 +21,7 @@ import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
  * <p>
  * NomenclaturalAuthorTeamSelectionElement class.
  * </p>
- * 
+ *
  * @author n.hoffmann
  * @created Jun 22, 2010
  * @version 1.0
@@ -35,7 +35,7 @@ public class NomenclaturalAuthorTeamSelectionElement extends
         * <p>
         * Constructor for NomenclaturalAuthorTeamSelectionElement.
         * </p>
-        * 
+        *
         * @param formFactory
         *            a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}
         *            object.
@@ -55,7 +55,7 @@ public class NomenclaturalAuthorTeamSelectionElement extends
        public NomenclaturalAuthorTeamSelectionElement(CdmFormFactory formFactory,
                        ConversationHolder conversation, ICdmFormElement parentElement,
                        String labelString, Team entity, int mode, int style) {
-               super(formFactory, conversation, parentElement, labelString, entity,
+               super(formFactory, conversation, parentElement, Team.class, labelString, entity,
                                mode, style);
        }
 
index 77211f592d6c0bf3424571800b50dc34e2b8845d..0a753619a39653427458f4008e693d3a744d4705 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2009 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -26,28 +26,28 @@ import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
 public class TaxonNodeSelectionElement extends EntitySelectionElement<TaxonNode> {
 
        private Classification classification;
-       
+
        public TaxonNodeSelectionElement(CdmFormFactory formFactory,
                        ConversationHolder conversation, ICdmFormElement parentElement,
                        String labelString, TaxonNode entity, int mode, int style) {
-               super(formFactory, conversation, parentElement, labelString, entity, mode,
+               super(formFactory, conversation, parentElement, TaxonNode.class, labelString, entity, mode,
                                style);
        }
-       
+
        /**
         * @return
         */
        public Classification getClassification() {
                return classification;
        }
-       
+
        public void setClassification(Classification classification){
                this.classification = classification;
        }
-       
+
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see
         * org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt
         * .events.SelectionEvent)
@@ -59,10 +59,10 @@ public class TaxonNodeSelectionElement extends EntitySelectionElement<TaxonNode>
                                getConversationHolder(), "Select parent taxon", null, null, getClassification());
                setSelectionInternal(newSelection);
        }
-       
+
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see
         * eu.etaxonomy.taxeditor.forms.selection.AbstractSelectionElement#getTitle
         * ()
index c0fb1a3b948a1ff3d5068e16ef8612c74d1283a4..79418246dd7d80eaf23c1281984fdaf0099b5cb9 100644 (file)
@@ -139,15 +139,15 @@ public class SupplementalDataViewer extends AbstractCdmDataViewer implements ISe
 
     private void createIdentifiableSections(RootElement parent) {
 
-        ExtensionSection extensionSection = formFactory.createExtensionSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
+        SourceSection sourceSection = formFactory.createSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
 
         formFactory.createHorizontalSeparator(parent, SWT.BORDER);
 
-        SourceSection sourceSection = formFactory.createSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
+        IdentifierSection identifierSection = formFactory.createIdentifierDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
 
         formFactory.createHorizontalSeparator(parent, SWT.BORDER);
 
-        IdentifierSection identifierSection = formFactory.createIdentifierDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
+        ExtensionSection extensionSection = formFactory.createExtensionSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
 
         formFactory.createHorizontalSeparator(parent, SWT.BORDER);
 
index fe189a89bb94ce8f23974c56c9cbe6a203ee88c3..2555e2b004114dc147640cef380e6e4972d8a0fb 100644 (file)
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: Webapp
 Bundle-SymbolicName: eu.etaxonomy.taxeditor.webapp;singleton:=true
-Bundle-Version: 4.5.0.qualifier
+Bundle-Version: 4.6.0.qualifier
 Require-Bundle: org.eclipse.core.runtime
 Bundle-RequiredExecutionEnvironment: JavaSE-1.7
 Bundle-ActivationPolicy: lazy
index 7aec4c3284cfdcd8078b095e560a6fe4f0cbc2d4..cc1f71d45982578f049d949927cf293be6005726 100644 (file)
@@ -4,7 +4,7 @@
   <parent>
     <groupId>eu.etaxonomy</groupId>
     <artifactId>taxeditor-parent</artifactId>
-    <version>4.5.0-SNAPSHOT</version>
+    <version>4.6.0-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <artifactId>eu.etaxonomy.taxeditor.webapp</artifactId>
index fd6c1f29cdeb60e923c58b85946a0e3faad698f9..54e13c671443c3638ece4f63a38d4983c77b134d 100644 (file)
@@ -1,39 +1,39 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<?pde version="3.5"?><product application="eu.etaxonomy.taxeditor.application.application" id="eu.etaxonomy.taxeditor.application.eu_etaxonomy_taxeditor_product" includeLaunchers="true" name="EDIT Taxonomic Editor" uid="eu.etaxonomy.taxeditor.product" useFeatures="true" version="4.5.0.qualifier">\r
-  <aboutInfo>\r
-    <image path="/eu.etaxonomy.taxeditor.application/icons/256color_48x48.gif"/>\r
-    <text>\r
-         %productBlurb\r
-      </text>\r
-  </aboutInfo>\r
-  <configIni use="default"></configIni>\r
-  <launcherArgs>\r
-    <programArgs>-data @user.home/.cdmLibrary -Dserver_port=58080\r
-      </programArgs>\r
-    <vmArgs>-Xmx512M -XX:MaxPermSize=256M -Dorg.eclipse.update.reconcile=false -Declipse.p2.unsignedPolicy=allow\r
-      </vmArgs>\r
-    <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts\r
-      </vmArgsMac>\r
-  </launcherArgs>\r
-  <windowImages i16="/eu.etaxonomy.taxeditor.application/icons/256color_16x16.gif" i32="/eu.etaxonomy.taxeditor.application/icons/256color_32x32.gif" i48="/eu.etaxonomy.taxeditor.application/icons/256color_48x48.gif"/>\r
-  <splash location="eu.etaxonomy.taxeditor.application" startupForegroundColor="000000" startupMessageRect="7,432,360,20" startupProgressRect="5,447,366,15"/>\r
-  <launcher name="TaxonomicEditor">\r
-    <solaris/>\r
-    <win useIco="false">\r
-      <bmp/>\r
-    </win>\r
-  </launcher>\r
-  <vm></vm>\r
-  <plugins></plugins>\r
-  <features>\r
-    <feature id="eu.etaxonomy.taxeditor.feature"/>\r
-  </features>\r
-  <configurations>\r
-    <plugin autoStart="true" id="eu.etaxonomy.taxeditor.application" startLevel="5"/>\r
-    <plugin autoStart="true" id="org.eclipse.core.runtime" startLevel="4"/>\r
-    <plugin autoStart="true" id="org.eclipse.equinox.common" startLevel="2"/>\r
-    <plugin autoStart="true" id="org.eclipse.equinox.ds" startLevel="2"/>\r
-    <plugin autoStart="true" id="org.eclipse.equinox.p2.transport.ecf" startLevel="4"/>\r
-    <plugin autoStart="true" id="org.eclipse.equinox.simpleconfigurator" startLevel="1"/>\r
-  </configurations>\r
-</product>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<?pde version="3.5"?><product application="eu.etaxonomy.taxeditor.application.application" id="eu.etaxonomy.taxeditor.application.eu_etaxonomy_taxeditor_product" includeLaunchers="true" name="EDIT Taxonomic Editor" uid="eu.etaxonomy.taxeditor.product" useFeatures="true" version="4.6.0.qualifier">
+  <aboutInfo>
+    <image path="/eu.etaxonomy.taxeditor.application/icons/256color_48x48.gif"/>
+    <text>
+         %productBlurb
+      </text>
+  </aboutInfo>
+  <configIni use="default"></configIni>
+  <launcherArgs>
+    <programArgs>-data @user.home/.cdmLibrary -Dserver_port=58080
+      </programArgs>
+    <vmArgs>-Xmx512M -XX:MaxPermSize=256M -Dorg.eclipse.update.reconcile=false -Declipse.p2.unsignedPolicy=allow
+      </vmArgs>
+    <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
+      </vmArgsMac>
+  </launcherArgs>
+  <windowImages i16="/eu.etaxonomy.taxeditor.application/icons/256color_16x16.gif" i32="/eu.etaxonomy.taxeditor.application/icons/256color_32x32.gif" i48="/eu.etaxonomy.taxeditor.application/icons/256color_48x48.gif"/>
+  <splash location="eu.etaxonomy.taxeditor.application" startupForegroundColor="000000" startupMessageRect="7,432,360,20" startupProgressRect="5,447,366,15"/>
+  <launcher name="TaxonomicEditor">
+    <solaris/>
+    <win useIco="false">
+      <bmp/>
+    </win>
+  </launcher>
+  <vm></vm>
+  <plugins></plugins>
+  <features>
+    <feature id="eu.etaxonomy.taxeditor.feature"/>
+  </features>
+  <configurations>
+    <plugin autoStart="true" id="eu.etaxonomy.taxeditor.application" startLevel="5"/>
+    <plugin autoStart="true" id="org.eclipse.core.runtime" startLevel="4"/>
+    <plugin autoStart="true" id="org.eclipse.equinox.common" startLevel="2"/>
+    <plugin autoStart="true" id="org.eclipse.equinox.ds" startLevel="2"/>
+    <plugin autoStart="true" id="org.eclipse.equinox.p2.transport.ecf" startLevel="4"/>
+    <plugin autoStart="true" id="org.eclipse.equinox.simpleconfigurator" startLevel="1"/>
+  </configurations>
+</product>
index 1f02a3106bdfce888656c7d3fb42b2f5856ac904..ea0b32f061fe9adb6c5b77d9f38548a4af0787ca 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?pde version="3.5"?>
 
-<product name="EDIT Taxonomic Editor" uid="eu.etaxonomy.taxeditor.product.jre" id="eu.etaxonomy.taxeditor.application.eu_etaxonomy_taxeditor_product" application="eu.etaxonomy.taxeditor.application.application" version="4.5.0.qualifier" useFeatures="true" includeLaunchers="true">
+<product name="EDIT Taxonomic Editor" uid="eu.etaxonomy.taxeditor.product.jre" id="eu.etaxonomy.taxeditor.application.eu_etaxonomy_taxeditor_product" application="eu.etaxonomy.taxeditor.application.application" version="4.6.0.qualifier" useFeatures="true" includeLaunchers="true">
 
    <aboutInfo>
       <image path="/eu.etaxonomy.taxeditor.application/icons/256color_48x48.gif"/>
index c382a937931da3837b57adbeb4777675ddaad919..57dd38b03deee8ea7b47822b7e6ae7737b566b28 100644 (file)
@@ -2,7 +2,7 @@
   <parent>
     <groupId>eu.etaxonomy</groupId>
     <artifactId>taxeditor-parent</artifactId>
-    <version>4.5.0-SNAPSHOT</version>
+    <version>4.6.0-SNAPSHOT</version>
   </parent>
 
   <modelVersion>4.0.0</modelVersion>
diff --git a/pom.xml b/pom.xml
index bb1757f8db20b33046bc36948e209d010f6ad4aa..2bd5e53fa848d6800ae2e7a9e4c4b64786cc55e6 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
   </prerequisites>
   <groupId>eu.etaxonomy</groupId>
   <artifactId>taxeditor-parent</artifactId>
-  <version>4.5.0-SNAPSHOT</version>
+  <version>4.6.0-SNAPSHOT</version>
   <name>EDIT Taxonomic Editor</name>
   <description>The Taxonomic Editor for EDIT's platform for
     cybertaxonomy
   <properties>
     <java.codelevel>1.7</java.codelevel>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <cdmlib.version>4.5.0-SNAPSHOT</cdmlib.version>
+    <cdmlib.version>4.6.0-SNAPSHOT</cdmlib.version>
     <!-- TODO can we use project.version ????? -->
     <tycho.version>0.22.0</tycho.version>
-    <taxeditor.version>4.5.0-SNAPSHOT</taxeditor.version>
+    <taxeditor.version>4.6.0-SNAPSHOT</taxeditor.version>
     <update.dir>snapshot</update.dir>
     <unitils.version>3.4.2</unitils.version>
     <log4j.version>1.2.17</log4j.version>