Project

General

Profile

Revision 69213a6e

ID69213a6e1c38089624aaf5a6a4843ce83c262270
Parent c1ad99d9
Child 4db0e47a

Added by Katja Luther 7 months ago

ref #8562: add admin preference page for multilanguage support

View differences:

eu.etaxonomy.taxeditor.store/plugin.xml
721 721
</extension>
722 722
<extension
723 723
      point="eu.etaxonomy.taxeditor.store.adminPreferencePage">
724
   <!-- <page
725
         class="eu.etaxonomy.taxeditor.preference.TaxonomicEditorGeneralAdminPreferences"
726
         id="eu.etaxonomy.taxeditor.preferences.general"
727
         name="%page.name">
728
   </page>  -->
729
   <page
730
         category="eu.etaxonomy.taxeditor.preferences.general"
731
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.GeneralAdminPreferencePage"
732
         id="eu.etaxonomy.taxeditor.preferences.generalPreferences"
733
         name="%page.name.50">
734
   </page>
735
   <!--<page 
736
         category="eu.etaxonomy.taxeditor.preferences.general"
737
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.DistributionAdminPreferences"
738
         id="eu.etaxonomy.taxeditor.store.distribution"
739
         name="%page.name.100">
740
   </page>-->
724
      <page
725
            category="eu.etaxonomy.taxeditor.preferences.general"
726
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.GeneralAdminPreferencePage"
727
            id="eu.etaxonomy.taxeditor.preferences.generalPreferences"
728
            name="%page.name.50">
729
      </page>
741 730
      <page
742 731
            category="eu.etaxonomy.taxeditor.preferences.general"
743 732
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.FactualDataAdminPreferencePage"
744 733
            id="eu.etaxonomy.taxeditor.preferences.description"
745 734
            name="%page.name.0">
746 735
      </page>
747
      
736
      <page
737
            category="eu.etaxonomy.taxeditor.preferences.general"
738
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.EmptyAdminPreferencePage"
739
            id="eu.etaxonomy.taxeditor.preference.EmptyLanguagePage"
740
            name="%page.name.30">
741
      </page>
742
      <page
743
            category="eu.etaxonomy.taxeditor.preference.EmptyLanguagePage"
744
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.LanguageAdminMenuPreference"
745
            id="eu.etaxonomy.taxeditor.preferences.languages"
746
            name="%page.name.10">
747
      </page>
748 748
      <page
749 749
            category="eu.etaxonomy.taxeditor.preferences.description"
750 750
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.NameFeatureAdminMenuPreference"
751 751
            id="eu.etaxonomy.taxeditor.preferences.nameAdminFeature"
752 752
            name="%page.name.59">
753 753
      </page>
754
       <page
754
      <page
755 755
            category="eu.etaxonomy.taxeditor.preferences.description"
756 756
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.FeatureAdminMenuPreference"
757 757
            id="eu.etaxonomy.taxeditor.preferences.adminFeature"
......
769 769
            id="eu.etaxonomy.taxeditor.preferences.defaultFeatureTreePreferenecs"
770 770
            name="%page.name.22">
771 771
      </page>
772
    <page 
773
          category="eu.etaxonomy.taxeditor.store.UIAdminPreference"
774
         class="eu.etaxonomy.taxeditor.preference.DistributionGeneralPreference"
775
         id="eu.etaxonomy.taxeditor.store.Distribution"
776
         name="%page.name.104">
777
   </page>
778
   <page
779
         category="eu.etaxonomy.taxeditor.preferences.general"
780
         class="eu.etaxonomy.taxeditor.preference.SearchPreferences"
781
         id="eu.etaxonomy.taxeditor.preference.searchPreferences"
782
         name="%page.name.56">
783
   </page>
784
   <page
785
         category="eu.etaxonomy.taxeditor.preference.searchPreferences"
786
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.SearchDialogAdminPreferences"
787
         id="eu.etaxonomy.taxeditor.preferences.searchDialog"
788
         name="%page.name.48">
789
   </page>
790
   <page
791
         category="eu.etaxonomy.taxeditor.preferences.general"
792
         class="eu.etaxonomy.taxeditor.preference.NamePreferences"
793
         id="eu.etaxonomy.taxeditor.preferences.namePreferences"
794
         name="%page.name.51">
795
   </page>
796
   <page 
797
         category="eu.etaxonomy.taxeditor.store.Distribution"
798
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.ChecklistEditorGeneralAdminPreference"
799
         id="eu.etaxonomy.taxeditor.store.checklist"
800
         name="%page.name.21">
801
   </page>
802
   <page 
803
         category="eu.etaxonomy.taxeditor.store.Distribution"
804
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.DistributionStatusAdminPreference"
805
         id="eu.etaxonomy.taxeditor.store.distributionVocabulariesAndStatus"
806
         name="%page.name.105">
807
   </page>
808
   <page 
809
         category="eu.etaxonomy.taxeditor.store.Distribution"
810
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.NamedAreaVocabularyAdminPreferencePage"
811
         id="eu.etaxonomy.taxeditor.store.distributionNamedAreaVocabularies"
812
         name="%page.name.106">
813
   </page>
814
   <page
815
         category="eu.etaxonomy.taxeditor.store.abcdImportPreference"
816
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.AbcdImportProviderAdminPreferencePage"
817
         id="eu.etaxonomy.taxeditor.store.abcdImportProvider"
818
         name="%page.name.41">
819
   </page>
820
   <page
821
         category="eu.etaxonomy.taxeditor.preferences.description"
822
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.CommonNameVocabularyAdminPreferencePage"
823
         id="eu.etaxonomy.taxeditor.store.vocabularyAdminPreference"
824
         name="%page.name.47">
825
   </page>
826
    <page
827
         category="eu.etaxonomy.taxeditor.preferences.general"
828
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.SpecimenAdminPreferences"
829
         id="eu.etaxonomy.taxeditor.store.specimenAdminPreferences"
830
         name="%page.name.26">
831
   </page>
832
   <page
833
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.EmptyAdminPreferencePage"
834
         id="eu.etaxonomy.taxeditor.preferences.general"
835
         name="%page.name.42">
836
   </page>
837
    <page
838
        category="eu.etaxonomy.taxeditor.preferences.general"
839
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.PublishFlagPreference"
840
         id="eu.etaxonomy.taxeditor.preferences.publishFlagPreference"
841
         name="%page.name.46">
842
   </page>
843
    <page
844
          category="eu.etaxonomy.taxeditor.preferences.namePreferences"
845
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.RankAdminPreference"
846
         id="eu.etaxonomy.taxeditor.preferences.adminRankPreference"
847
         name="%page.name.5">
848
   </page>
849
   <page
850
         category="eu.etaxonomy.taxeditor.preferences.namePreferences"
851
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.NomenclaturalStatusTypeAdminPreference"
852
         id="eu.etaxonomy.taxeditor.preferences.adminNomenclaturalStatusTypePreference"
853
         name="%page.name.6">
854
   </page>
855
   <page
856
         category="eu.etaxonomy.taxeditor.preferences.namePreferences"
857
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.NomenclaturalCodeAdminPreferencePage"
858
         id="eu.etaxonomy.taxeditor.store.page2"
859
         name="%page.name.43">
860
   </page>
861
   <page
862
         category="eu.etaxonomy.taxeditor.preferences.general"
863
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.AbcdImportAdminPreference"
864
         id="eu.etaxonomy.taxeditor.store.abcdImportPreference"
865
         name="%page.name.40">
866
   </page>
867
   <page
868
         category="eu.etaxonomy.taxeditor.preferences.namePreferences"
869
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.NameDetailsViewAdminConfiguration"
870
         id="eu.etaxonomy.taxeditor.store.scientificNameDetails"
871
         name="%page.name.61">
872
   </page>
873
   <page
874
         category="eu.etaxonomy.taxeditor.preferences.general"
875
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.SupplementalDataAdminPreference"
876
         id="eu.etaxonomy.taxeditor.store.supplementalDataPreferences"
877
         name="%page.name.55">
878
   </page>
879
   <page
880
         category="eu.etaxonomy.taxeditor.store.supplementalDataPreferences"
881
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.SupplementalDataSourceAdminPreference"
882
         id="eu.etaxonomy.taxeditor.store.supplementalDataSourcePreferences"
883
         name="%page.name.sources">
884
   </page>
885
   <page
886
         category="eu.etaxonomy.taxeditor.preferences.general"
887
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.UIAdminPreference"
888
         id="eu.etaxonomy.taxeditor.store.UIAdminPreference"
889
         name="%page.name.53">
890
   </page>
891
     <page
892
         category="eu.etaxonomy.taxeditor.store.UIAdminPreference"
893
         class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.TaxonNodeOrderAdminPreference"
894
         id="eu.etaxonomy.taxeditor.store.TaxonNavigator"
895
         name="%page.name.32">
896
   </page>
772
      <page 
773
            category="eu.etaxonomy.taxeditor.store.UIAdminPreference"
774
            class="eu.etaxonomy.taxeditor.preference.DistributionGeneralPreference"
775
            id="eu.etaxonomy.taxeditor.store.Distribution"
776
            name="%page.name.104">
777
      </page>
778
      <page
779
            category="eu.etaxonomy.taxeditor.preferences.general"
780
            class="eu.etaxonomy.taxeditor.preference.SearchPreferences"
781
            id="eu.etaxonomy.taxeditor.preference.searchPreferences"
782
            name="%page.name.56">
783
      </page>
784
      <page
785
            category="eu.etaxonomy.taxeditor.preference.searchPreferences"
786
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.SearchDialogAdminPreferences"
787
            id="eu.etaxonomy.taxeditor.preferences.searchDialog"
788
            name="%page.name.48">
789
      </page>
790
      <page
791
            category="eu.etaxonomy.taxeditor.preferences.general"
792
            class="eu.etaxonomy.taxeditor.preference.NamePreferences"
793
            id="eu.etaxonomy.taxeditor.preferences.namePreferences"
794
            name="%page.name.51">
795
      </page>
796
      <page 
797
            category="eu.etaxonomy.taxeditor.store.Distribution"
798
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.ChecklistEditorGeneralAdminPreference"
799
            id="eu.etaxonomy.taxeditor.store.checklist"
800
            name="%page.name.21">
801
      </page>
802
      <page 
803
            category="eu.etaxonomy.taxeditor.store.Distribution"
804
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.DistributionStatusAdminPreference"
805
            id="eu.etaxonomy.taxeditor.store.distributionVocabulariesAndStatus"
806
            name="%page.name.105">
807
      </page>
808
      <page 
809
            category="eu.etaxonomy.taxeditor.store.Distribution"
810
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.NamedAreaVocabularyAdminPreferencePage"
811
            id="eu.etaxonomy.taxeditor.store.distributionNamedAreaVocabularies"
812
            name="%page.name.106">
813
      </page>
814
      <page
815
            category="eu.etaxonomy.taxeditor.store.abcdImportPreference"
816
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.AbcdImportProviderAdminPreferencePage"
817
            id="eu.etaxonomy.taxeditor.store.abcdImportProvider"
818
            name="%page.name.41">
819
      </page>
820
      <page
821
            category="eu.etaxonomy.taxeditor.preferences.description"
822
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.CommonNameVocabularyAdminPreferencePage"
823
            id="eu.etaxonomy.taxeditor.store.vocabularyAdminPreference"
824
            name="%page.name.47">
825
      </page>
826
       <page
827
            category="eu.etaxonomy.taxeditor.preferences.general"
828
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.SpecimenAdminPreferences"
829
            id="eu.etaxonomy.taxeditor.store.specimenAdminPreferences"
830
            name="%page.name.26">
831
      </page>
832
      <page
833
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.EmptyAdminPreferencePage"
834
            id="eu.etaxonomy.taxeditor.preferences.general"
835
            name="%page.name.42">
836
      </page>
837
      <page
838
            category="eu.etaxonomy.taxeditor.preferences.general"
839
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.PublishFlagPreference"
840
            id="eu.etaxonomy.taxeditor.preferences.publishFlagPreference"
841
            name="%page.name.46">
842
      </page>
843
      <page
844
           category="eu.etaxonomy.taxeditor.preferences.namePreferences"
845
           class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.RankAdminPreference"
846
           id="eu.etaxonomy.taxeditor.preferences.adminRankPreference"
847
           name="%page.name.5">
848
     </page>
849
      <page
850
            category="eu.etaxonomy.taxeditor.preferences.namePreferences"
851
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.NomenclaturalStatusTypeAdminPreference"
852
            id="eu.etaxonomy.taxeditor.preferences.adminNomenclaturalStatusTypePreference"
853
            name="%page.name.6">
854
      </page>
855
      <page
856
            category="eu.etaxonomy.taxeditor.preferences.namePreferences"
857
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.NomenclaturalCodeAdminPreferencePage"
858
            id="eu.etaxonomy.taxeditor.store.page2"
859
            name="%page.name.43">
860
      </page>
861
      <page
862
            category="eu.etaxonomy.taxeditor.preferences.general"
863
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.AbcdImportAdminPreference"
864
            id="eu.etaxonomy.taxeditor.store.abcdImportPreference"
865
            name="%page.name.40">
866
      </page>
867
      <page
868
            category="eu.etaxonomy.taxeditor.preferences.namePreferences"
869
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.NameDetailsViewAdminConfiguration"
870
            id="eu.etaxonomy.taxeditor.store.scientificNameDetails"
871
            name="%page.name.61">
872
      </page>
873
      <page
874
            category="eu.etaxonomy.taxeditor.preferences.general"
875
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.SupplementalDataAdminPreference"
876
            id="eu.etaxonomy.taxeditor.store.supplementalDataPreferences"
877
            name="%page.name.55">
878
      </page>
879
      <page
880
            category="eu.etaxonomy.taxeditor.store.supplementalDataPreferences"
881
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.SupplementalDataSourceAdminPreference"
882
            id="eu.etaxonomy.taxeditor.store.supplementalDataSourcePreferences"
883
            name="%page.name.sources">
884
      </page>
885
      <page
886
            category="eu.etaxonomy.taxeditor.preferences.general"
887
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.UIAdminPreference"
888
            id="eu.etaxonomy.taxeditor.store.UIAdminPreference"
889
            name="%page.name.53">
890
       </page>
891
       <page
892
            category="eu.etaxonomy.taxeditor.store.UIAdminPreference"
893
            class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.TaxonNodeOrderAdminPreference"
894
            id="eu.etaxonomy.taxeditor.store.TaxonNavigator"
895
            name="%page.name.32">
896
      </page>
897 897
</extension>
898 898
</plugin>
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/LanguageAdminMenuPreference.java
1
/**
2
* Copyright (C) 2020 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.taxeditor.databaseAdmin.preferencePage;
10

  
11
import eu.etaxonomy.cdm.model.metadata.CdmPreference;
12
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
13
import eu.etaxonomy.cdm.model.term.TermType;
14
import eu.etaxonomy.taxeditor.preference.LocalOrDefaultEnum;
15
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
16
import eu.etaxonomy.taxeditor.preference.menu.LanguageMenuPreferences;
17

  
18
/**
19
 * @author k.luther
20
 * @since 04.02.2020
21
 */
22
public class LanguageAdminMenuPreference extends LanguageMenuPreferences {
23

  
24
    public LanguageAdminMenuPreference() {
25
        super();
26
        isAdminPreference = true;
27
        setPredicate(PreferencePredicate.AvailableLanguages);
28
        type = TermType.Language;
29
    }
30

  
31
    @Override
32
    public boolean performOk() {
33
        if (!isApply()){
34
            return true;
35
        }
36

  
37
        boolean result = performOkAdmin();
38
        if (isMultilanguageTextEditingCapability == null && multiLangugeActivatedPref.isAllowOverride()){
39
            CdmPreference savePref = CdmPreference.NewTaxEditorInstance(PreferencePredicate.MultiLanguageTextEditing, null);
40
            PreferencesUtil.removeFromDB(savePref);
41
        }else{
42
            CdmPreference savePref = CdmPreference.NewTaxEditorInstance(PreferencePredicate.MultiLanguageTextEditing, isMultilanguageTextEditingCapability != null? Boolean.toString(isMultilanguageTextEditingCapability): null);
43
            String text = this.useLocalOrAdmin.getText();
44
            if (text.equals(LocalOrDefaultEnum.Database.getLabel()) ){
45
                savePref.setAllowOverride(false);
46
            }else if (text.equals(LocalOrDefaultEnum.AllowOverride.getLabel())){
47
                savePref.setAllowOverride(true);
48
            }
49

  
50
            PreferencesUtil.setPreferenceToDB(savePref);
51
        }
52
        PreferencesUtil.updateDBPreferences();
53
        PreferencesUtil.firePreferencesChanged(this.getClass());
54
        return result;
55
    }
56

  
57
    @Override
58
    public void getValues() {
59
           isAdminPreference = true;
60
           setPreferenceStore(PreferencesUtil.getPreferenceStore());
61
           multiLangugeActivatedPref = PreferencesUtil.getPreferenceFromDB(PreferencePredicate.MultiLanguageTextEditing);
62
           isMultilanguageTextEditingCapability = multiLangugeActivatedPref == null? null: multiLangugeActivatedPref.getValue()!= null?Boolean.parseBoolean(multiLangugeActivatedPref.getValue()): null;
63

  
64

  
65
    }
66

  
67
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/AbstractGeneralTermPreference.java
51 51
 *
52 52
 */
53 53
abstract public class AbstractGeneralTermPreference<T extends AbstractTermDto> extends CdmPreferencePage implements ISelectionChangedListener, SelectionListener{
54

  
54 55
    protected CheckBoxTreeComposite treeComposite;
55 56
    protected List<TermVocabularyDto> vocabularies = new ArrayList<>();
56 57
    protected Combo useLocalOrAdmin ;
......
89 90
        this.predicate = predicate;
90 91
    }
91 92

  
93
    public CheckBoxTreeComposite getTreeComposite() {
94
        return treeComposite;
95
    }
96

  
92 97
    /**
93 98
     * {@inheritDoc}
94 99
     */
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/IPreferenceKeys.java
70 70
	 */
71 71
	public static final String MATCH_STRATEGY_PREFIX = "matchStrategy.";
72 72

  
73
	/**
74
	 * Access point to the EDIT Map Service that should be used.
75
	 */
76
	public static final String EDIT_MAP_SERVICE_ACCES_POINT = "eu.etaxonomy.taxeditor.editMapServiceAccessPoint";
73

  
77 74

  
78 75
	/**
79 76
	 * Whether the editor should connect to a database immediately after starting.
......
92 89
	/** Constant <code>FEATURE_TREE_DEFAULT_STRUCTURE="eu.etaxonomy.taxeditor.featureTree.defa"{trunked}</code> */
93 90
	public static final String FEATURE_TREE_DEFAULT_STRUCTURE = "eu.etaxonomy.taxeditor.featureTree.default.structuralData";
94 91

  
95
	/** Constant <code>SORT_RANKS_HIERARCHICHALLY="eu.etaxonomy.taxeditor.menus.sortRanksH"{trunked}</code> */
96
	public static final String SORT_RANKS_HIERARCHICHALLY = "eu.etaxonomy.taxeditor.menus.sortRanksHierarchichally";
97
	/** Constant <code>SORT_NODES_NATURALL="eu.etaxonomy.taxeditor.menus.sortNodesN"{trunked}</code> */
98
	//public static final String SORT_NODES = "eu.etaxonomy.taxeditor.menus.sortNodes";
92

  
99 93

  
100 94
	/** Constant <code>RESTORE_NAVIGATOR_STATE="eu.etaxonomy.taxeditor.taxonnavigator.restoreState"{trunked}</code> */
101 95
	public static final String RESTORE_NAVIGATOR_STATE = "eu.etaxonomy.taxeditor.taxonnavigator.restoreState";
102
	/**
103
	 * Whether multilanguage text fields should be editable in multiple languages.
104
	 */
105
	public static final String MULTILANGUAGE_TEXT_EDITING_CAPABILITY = "eu.etaxonomy.taxeditor.capability.edit.mulitlanugageText";
96

  
106 97

  
107 98
	/**
108 99
	 * The language to be used for all things multilanguage
......
111 102

  
112 103
	public static final String SHOW_EXPERIMENTAL_FEATURES = "eu.etaxonomy.taxeditor.showExperimentalFeatures";
113 104

  
114
	//public static final String OPENURL_ACCESS_POINT = "eu.etaxonomy.taxeditor.openUrlAccessPoint";
115

  
116
	//public static final String OPENURL_IMAGE_MAX_WIDTH = "eu.etaxonomy.taxeditor.openUrlImageMaxWidth";
117

  
118
	//public static final String OPENURL_IMAGE_MAX_HEIGHT = "eu.etaxonomy.taxeditor.openUrlImageMaxHeight";
119

  
120 105
	/**
121 106
	 * Whether the occurrence bulk editor should show {@link FieldUnit} objects
122 107
	 */
......
124 109
	public static final String SEARCH_OPEN_RESULTS_IN_SEPARATE_WINDOWS = "eu.etaxonomy.taxeditor.navigation.search.openResultInSeparateWindows";
125 110
	public static final String DISABLE_SERVICES_API_TIMESTAMP_CHECK = "eu.etaxonomy.taxeditor.cdmlib.remoting.disableServicesApiTimestampCheck";
126 111
	public static final String ADD_TYPES_TO_ALL_NAMES = "eu.etaxonomy.taxeditor.store.addTypeToAllNames";
127
   // public static final String DETERMINATION_ONLY_FOR_FIELD_UNITS = "eu.etaxonomy.taxeditor.specimen.determinationOnlyOnFieldUnitLevel";
128
   // public static final String SHOW_COLLECTING_AREAS_IN_GENERAL_SECTION = "eu.etaxonomy.taxeditor.specimen.showCollectingAreasInGeneralSection";
129
   // public static final String SHOW_TAXON_ASSOCIATIONS = "eu.etaxonomy.taxeditor.specimen.showTaxonAssociations";
130
    //public static final String SHOW_LIFE_FORM = "eu.etaxonomy.taxeditor.specimen.showLifeForm";
131
   // public static final String COMMON_NAME_AREA_VOCABULARIES = "eu.etaxonomy.taxeditor.commonNames.areaVocabularies";
132

  
133
//Taxon Details View
134
//    public static final String SHOW_SEC_DETAILS = "eu.etaxonomy.taxeditor.taxon.showSecDetails";
135
//    public static final String DISABLE_SEC = "eu.etaxonomy.taxeditor.taxon.disableSec";
136
    //Name details view
137
//    public static final String SHOW_SIMPLE_NAME_DETAILS_SECTION = "eu.etaxonomy.taxeditor.name.showSimpleName";
138
//    public static final String SHOW_SIMPLE_NAME_DETAILS_TAXON = "eu.etaxonomy.taxeditor.name.showNameTaxon";
139
//    public static final String SHOW_NAME_DETAILS_SECTION_LSID = "eu.etaxonomy.taxeditor.name.showNameLsid";
140
//    public static final String SHOW_NAME_DETAILS_SECTION_NAME_APPROBATION = "eu.etaxonomy.taxeditor.name.showNameNameApprobiation";
141
//    public static final String SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_CODE = "eu.etaxonomy.taxeditor.name.showNameNomenclaturalCode";
142
//    public static final String SHOW_NAME_DETAILS_SECTION_RANK = "eu.etaxonomy.taxeditor.name.showNameRank";
143
//    public static final String SHOW_NAME_DETAILS_SECTION_NAMECACHE = "eu.etaxonomy.taxeditor.name.showNameNameCache";
144
//    public static final String SHOW_NAME_DETAILS_SECTION_ATOMISED_EPITHETS = "eu.etaxonomy.taxeditor.name.showNameAtomisedEpithets";
145
//    public static final String SHOW_NAME_DETAILS_SECTION_AUTHORSHIP = "eu.etaxonomy.taxeditor.name.showNameAuthorship";
146
//    public static final String SHOW_NAME_DETAILS_SECTION_HYBRID = "eu.etaxonomy.taxeditor.name.showNameHybrid";
147
//    public static final String SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_REFERENCE = "eu.etaxonomy.taxeditor.name.showNameNomenclaturalReference";
148
//    public static final String SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_STATUS = "eu.etaxonomy.taxeditor.name.showNameNomenclaturalStatus";
149
//    public static final String SHOW_NAME_DETAILS_SECTION_PROTOLOGUE = "eu.etaxonomy.taxeditor.name.showNameProtologue";
150
//    public static final String SHOW_NAME_DETAILS_SECTION_TYPE_DESIGNATION = "eu.etaxonomy.taxeditor.name.showNameTypeDesignation";
151
//    public static final String SHOW_NAME_DETAILS_SECTION_NAME_RELATIONSHIP = "eu.etaxonomy.taxeditor.name.showNameNameRelationship";
152
//	public static final String SHOW_NAME_DETAILS_SECTION_APPENDED_PHRASE = "eu.etaxonomy.taxeditor.name.showNameAppendedPhrase";
153
//	public static final String SHOW_NAME_DETAILS_SECTION_CACHE = "eu.etaxonomy.taxeditor.name.showNameCache";
154
//    public static final String SHOW_NAME_DETAILS_SECTION_AUTHORSHIP_CACHE = "eu.etaxonomy.taxeditor.name.showAuthorCache";
155
   // public static final String ALLOW_OVERRIDE_NAME_DETAILS = "eu.etaxonomy.taxeditor.name.allowOverride";
156
  //  public static final String OVERRIDE_NAME_DETAILS = "eu.etaxonomy.taxeditor.name.override";
112

  
113

  
114

  
157 115

  
158 116
    public static final String PROMPT_FOR_OPEN_SPECIMEN_IN_EDITOR = "eu.etaxonomy.taxeditor.specimen.promptForOpenSpecimenInEditor";
159 117

  
......
171 129

  
172 130
    public static final String SHOW_ADVANCED_MEDIA_SECTION = "eu.etaxonomy.taxeditor.media.showAdvancedMedia" + CdmStore.getActiveCdmSource().getName();
173 131
    public static final String SHOW_MEDIA_PREVIEW = "eu.etaxonomy.taxeditor.media.showMediaPreview"+ CdmStore.getActiveCdmSource().getName();
174
//    public static final String SORT_TAXA_BY_RANK_AND_NAME = "eu.etaxonomy.taxeditor.selection.taxa.sortByRankAndName"+ CdmStore.getActiveCdmSource().getName();
175

  
176 132

  
177 133
    public static final String LAST_SELECTED_REFERENCES = "eu.etaxonomy.taxeditor.references.selection.lastSelected";
178 134
    public static final String LAST_USED_ABCD_CONFIG = "eu.etaxonomy.taxeditor.io.abcd.lastUsedConfig";
179 135
    public static final String LAST_USED_BIOCASE_PROVIDER = "eu.etaxonomy.taxeditor.io.abcd.lastUsedBiocaseProvider";
180 136

  
181
//    public static final String DO_NOT_PUBLISH = "DO NOT PUBLISH";
182
//    public static final String INHERIT_FROM_PARENT = "PARENT";
183
//    public static final String PUBLISH = "PUBLISH";
184

  
185 137
    public static final String FILTER_COMMON_NAME_REFERENCES = "eu.etaxonomy.taxeditor.references.selection.filterCommonNameReferences";
186 138

  
187 139

  
188

  
189
//    public static final String IS_SEARCH_FOR_IDENTIFIER_AS_DEFAULT = "eu.etaxonomy.taxeditor.search.reference.defaultIdentifier"+ CdmStore.getActiveCdmSource().getName();
190
//    public static final String SEARCH_FOR_IDENTIFIER_AND_TITLECACHE = "eu.etaxonomy.taxeditor.search.reference.identifierAndTitleCache" + CdmStore.getActiveCdmSource().getName();
191

  
192

  
193

  
194

  
195

  
196

  
197

  
198 140
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/LanguageRepresentationPreferencePage.java
16 16
import org.eclipse.swt.events.SelectionEvent;
17 17
import org.eclipse.swt.layout.GridLayout;
18 18
import org.eclipse.swt.layout.RowLayout;
19
import org.eclipse.swt.widgets.Button;
20 19
import org.eclipse.swt.widgets.Combo;
21 20
import org.eclipse.swt.widgets.Composite;
22 21
import org.eclipse.swt.widgets.Control;
......
34 33
 */
35 34
public class LanguageRepresentationPreferencePage extends CdmPreferencePage{
36 35

  
37
	private boolean isMultilanguageTextEditingCapability;
36

  
38 37
	private Language globalLanguage;
39 38

  
40 39
//	private Composite createComposite(Composite parent){
......
52 51

  
53 52
		createSetDefaultLanguage(container);
54 53

  
55
		createSetMultiLanguageTextEditingCapability(container);
54
//		createSetMultiLanguageTextEditingCapability(container);
56 55

  
57 56
		return container;
58 57

  
......
102 101
		});
103 102
	}
104 103

  
105
	private void createSetMultiLanguageTextEditingCapability(Composite parent) {
106
		isMultilanguageTextEditingCapability = PreferencesUtil.getBooleanValue(IPreferenceKeys.MULTILANGUAGE_TEXT_EDITING_CAPABILITY);
107

  
108
		final Composite composite = createComposite(parent);
109

  
110
		final Button button_toggle = new Button(composite, SWT.CHECK);
111

  
112

  
113
		button_toggle.setText(Messages.LanguageRepresentationPreferencePage_enable);
114

  
115
		button_toggle.setSelection(isMultilanguageTextEditingCapability);
116

  
117

  
118
		button_toggle.addSelectionListener(new SelectionAdapter(){
119
			/* (non-Javadoc)
120
			 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
121
			 */
122
			@Override
123
			public void widgetSelected(SelectionEvent e) {
124
			    setApply(true);
125
				isMultilanguageTextEditingCapability = button_toggle.getSelection();
126
			}
127
		});
128
	}
104
//	private void createSetMultiLanguageTextEditingCapability(Composite parent) {
105
//		isMultilanguageTextEditingCapability = PreferencesUtil.getBooleanValue(IPreferenceKeys.MULTILANGUAGE_TEXT_EDITING_CAPABILITY);
106
//
107
//		final Composite composite = createComposite(parent);
108
//
109
//		final Button button_toggle = new Button(composite, SWT.CHECK);
110
//
111
//
112
//		button_toggle.setText(Messages.LanguageRepresentationPreferencePage_enable);
113
//
114
//		button_toggle.setSelection(isMultilanguageTextEditingCapability);
115
//
116
//
117
//		button_toggle.addSelectionListener(new SelectionAdapter(){
118
//			/* (non-Javadoc)
119
//			 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
120
//			 */
121
//			@Override
122
//			public void widgetSelected(SelectionEvent e) {
123
//			    setApply(true);
124
//				isMultilanguageTextEditingCapability = button_toggle.getSelection();
125
//			}
126
//		});
127
//	}
129 128

  
130 129
	@Override
131 130
	public boolean performOk() {
132 131
	    if (!isApply()){
133 132
	        return true;
134 133
	    }
135
	    PreferencesUtil.setBooleanValue(IPreferenceKeys.MULTILANGUAGE_TEXT_EDITING_CAPABILITY, isMultilanguageTextEditingCapability);
136 134
	    PreferencesUtil.setGlobalLanguage(globalLanguage);
137

  
138 135
		return super.performOk();
139 136
	}
140 137
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java
429 429
        }
430 430
        Float result = null;
431 431
        try{
432
            result = Float.parseFloat(prefValue);
432
            if (prefValue != null){
433
                result = Float.parseFloat(prefValue);
434
            }
433 435
        }catch(NumberFormatException e){
434 436
            logger.debug("Preference value of " + name + " is not a number");
435 437
        }
......
943 945
     */
944 946
    public static void setDefaults() {
945 947

  
946
        getPreferenceStore().setDefault(createPreferenceString(EDIT_MAP_SERVICE_ACCES_POINT),
948
        getPreferenceStore().setDefault(createPreferenceString(PreferencePredicate.EditMapServiceAccessPoint.getKey()),
947 949
                "http://edit.africamuseum.be/edit_wp5/v1.2/rest_gen.php");
948 950
        //FIXME : changed default for SHOULD_CONNECT_AT_STARTUP to false (ticket 3828) until resolution
949 951
        getPreferenceStore().setDefault(createPreferenceString(SHOULD_CONNECT_AT_STARTUP), false);
......
1035 1037
    }
1036 1038

  
1037 1039
    public static String getMapServiceAccessPoint() {
1038
        return getStringValue(EDIT_MAP_SERVICE_ACCES_POINT);
1040
        return getStringValue(PreferencePredicate.EditMapServiceAccessPoint.getKey());
1039 1041
    }
1040 1042

  
1041 1043
    public static boolean shouldConnectAtStartUp() {
......
1067 1069
    }
1068 1070

  
1069 1071
    public static void setSortRanksHierarchichally(boolean selection) {
1070
        setBooleanValue(SORT_RANKS_HIERARCHICHALLY, selection);
1072
        setBooleanValue(PreferencePredicate.SortRanksHierarchichally.getKey(), selection);
1071 1073
    }
1072 1074

  
1073 1075
    public static boolean getSortRanksHierarchichally() {
1074
        return getBooleanValue(SORT_RANKS_HIERARCHICHALLY);
1076
        return getBooleanValue(PreferencePredicate.SortRanksHierarchichally.getKey());
1075 1077
    }
1076 1078

  
1077 1079
    public static boolean isMultilanguageTextEditingCapability() {
1078 1080
        return getBooleanValue(
1079
                MULTILANGUAGE_TEXT_EDITING_CAPABILITY);
1081
                PreferencePredicate.MultiLanguageTextEditing.getKey());
1080 1082
    }
1081 1083

  
1082 1084
    public static Language getGlobalLanguage() {
......
1880 1882

  
1881 1883
    }
1882 1884

  
1885

  
1886
    public static void removeFromDB(CdmPreference prefToDelete) {
1887
        ICdmRepository controller;
1888

  
1889
        if(CdmStore.isActive()){
1890
            controller = CdmStore.getCurrentApplicationConfiguration();
1891
            controller.getPreferenceService().remove(prefToDelete.getKey());
1892

  
1893
            CdmPreferenceCache.instance().getAllTaxEditorDBPreferences();
1894
        }
1895

  
1896
    }
1883 1897
    /**
1884 1898
     * @return
1885 1899
     */
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/CdmPreferencePage.java
227 227

  
228 228
        }
229 229

  
230
        booleanCombo.add(Messages.Preference_Use_Default + " ("+defaultValue+")");;
231
        for (IKeyLabel value: enumValues){
232
            booleanCombo.add(value.getLabel());
233
            booleanCombo.setData(value.getLabel(), value);
230
        booleanCombo.add(Messages.Preference_Use_Default + " ("+defaultValue+")");
231
        if (enumValues != null){
232
            for (IKeyLabel value: enumValues){
233
                booleanCombo.add(value.getLabel());
234
                booleanCombo.setData(value.getLabel(), value);
235
            }
234 236
        }
235 237

  
236 238
        return booleanCombo;
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/LanguageMenuPreferences.java
9 9

  
10 10
package eu.etaxonomy.taxeditor.preference.menu;
11 11

  
12
import org.eclipse.swt.events.SelectionAdapter;
13
import org.eclipse.swt.events.SelectionEvent;
14
import org.eclipse.swt.layout.GridLayout;
15
import org.eclipse.swt.widgets.Button;
16
import org.eclipse.swt.widgets.Combo;
17
import org.eclipse.swt.widgets.Composite;
18
import org.eclipse.swt.widgets.Control;
19

  
20
import eu.etaxonomy.cdm.model.metadata.CdmPreference;
12 21
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
13 22
import eu.etaxonomy.cdm.model.term.TermType;
23
import eu.etaxonomy.taxeditor.l10n.Messages;
14 24
import eu.etaxonomy.taxeditor.preference.GeneralTermPreferencePage;
25
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
15 26

  
16 27
/**
17 28
 * <p>LanguageMenuPreferences class.</p>
......
24 35

  
25 36
	/** Constant <code>ID="eu.etaxonomy.taxeditor.preferences.lang"{trunked}</code> */
26 37
	public final static String ID = "eu.etaxonomy.taxeditor.preferences.languages"; //$NON-NLS-1$
38
    protected Boolean isMultilanguageTextEditingCapability;
39
    protected CdmPreference multiLangugeActivatedPref =null;
40
    private boolean overrideActivated;
41

  
42
    Combo multiLanguageEditing;
43

  
44
    Button allowOverrideOrderButton;
27 45

  
28 46
	/**
29 47
	 * <p>Constructor for LanguageMenuPreferences.</p>
......
32 50
	    super();
33 51
        setPredicate(PreferencePredicate.AvailableLanguages);
34 52
        type = TermType.Language;
53

  
35 54
	}
36 55

  
56
	@Override
57
    protected Control createContents(Composite parent) {
58
	    createSetMultiLanguageTextEditingCapability(parent);
59
	    Composite result = (Composite) super.createContents(parent);
60
	    return result;
61
	}
62

  
63
	private void createSetMultiLanguageTextEditingCapability(Composite parent) {
64
        //isMultilanguageTextEditingCapability = PreferencesUtil.getBooleanValue(PreferencePredicate.MultiLanguageTextEditing.getKey());
65
	    getValues();
66
        final Composite composite = createComposite(parent);
67
        GridLayout layout = new GridLayout();
68
        layout.numColumns = 2;
69

  
70
        composite.setLayout(layout);
71

  
72
        multiLanguageEditing = createBooleanCombo(composite, Messages.GeneralPreference_yes, Messages.GeneralPreference_no, PreferencePredicate.MultiLanguageTextEditing, "Allow multi language editing", isAdminPreference);
73
        int index = 0;
74
        for (String itemLabel : multiLanguageEditing.getItems()) {
75
            if (isMultilanguageTextEditingCapability == null && itemLabel.startsWith(Messages.Preference_Use_Default)) {
76
                multiLanguageEditing.select(index);
77
                break;
78
            }
79
            if (isMultilanguageTextEditingCapability != null && itemLabel.equals(Messages.GeneralPreference_yes) && isMultilanguageTextEditingCapability){
80
                multiLanguageEditing.select(index);
81
                break;
82
            }
83
            if (isMultilanguageTextEditingCapability != null && itemLabel.equals(Messages.GeneralPreference_no) && !isMultilanguageTextEditingCapability){
84
                multiLanguageEditing.select(index);
85
                break;
86
            }
87
            index++;
88
        }
89
        if (!isAdminPreference && multiLangugeActivatedPref != null){
90
            multiLanguageEditing.setEnabled(multiLangugeActivatedPref.isAllowOverride());
91
        }
92
        multiLanguageEditing.addSelectionListener(this);
93

  
94
        if (isAdminPreference) {
95
            allowOverrideOrderButton = createAllowOverrideButton(composite);
96
            allowOverrideOrderButton.setSelection(multiLangugeActivatedPref != null? multiLangugeActivatedPref.isAllowOverride(): true);
97
            //allowOverrideOrderAreasButton.setEnabled(prefAreaSort != null);
98
            allowOverrideOrderButton.addSelectionListener(new SelectionAdapter() {
99
                @Override
100
                public void widgetSelected(SelectionEvent e) {
101
                    setApply(true);
102
                    if (multiLangugeActivatedPref == null){
103
                        multiLangugeActivatedPref = CdmPreference.NewTaxEditorInstance(PreferencePredicate.MultiLanguageTextEditing, PreferencePredicate.MultiLanguageTextEditing.getDefaultValue() != null ?  PreferencePredicate.MultiLanguageTextEditing.getDefaultValue().toString(): null);
104
                    }
105
                    multiLangugeActivatedPref.setAllowOverride(allowOverrideOrderButton.getSelection());
106
                }
107
            });
108
        }
109
    }
110

  
111
	 @Override
112
	 public void getValues() {
113
	        isAdminPreference = false;
114
	        setPreferenceStore(PreferencesUtil.getPreferenceStore());
115
	        multiLangugeActivatedPref = PreferencesUtil.getPreferenceFromDB(PreferencePredicate.MultiLanguageTextEditing);
116
	        overrideActivated = PreferencesUtil.getBooleanValue(
117
	                PreferencesUtil.prefOverrideKey(PreferencePredicate.MultiLanguageTextEditing.getKey()), true) != null? PreferencesUtil.getBooleanValue(
118
	                        PreferencesUtil.prefOverrideKey(PreferencePredicate.MultiLanguageTextEditing.getKey()), true):false;
119
            if (multiLangugeActivatedPref != null) {
120
                if (multiLangugeActivatedPref.isAllowOverride() ) {
121
                    if (overrideActivated){
122
                        isMultilanguageTextEditingCapability = PreferencesUtil.getBooleanValue(PreferencePredicate.MultiLanguageTextEditing.getKey(), true);
123
                    }
124

  
125
                } else {
126
                    isMultilanguageTextEditingCapability = multiLangugeActivatedPref.getValue() != null? Boolean.valueOf(multiLangugeActivatedPref.getValue()): null;
127
                }
128

  
129
            } else {
130
                if(!overrideActivated){
131
                    isMultilanguageTextEditingCapability = null;
132
                }else{
133
                    isMultilanguageTextEditingCapability = PreferencesUtil.getBooleanValue(PreferencePredicate.MultiLanguageTextEditing.getKey(), true);
134
                }
135
                multiLangugeActivatedPref = CdmPreference.NewTaxEditorInstance(PreferencePredicate.MultiLanguageTextEditing, PreferencePredicate.MultiLanguageTextEditing.getDefaultValue() != null ?  PreferencePredicate.MultiLanguageTextEditing.getDefaultValue().toString(): null);
136
            }
137
	 }
138
	 @Override
139
	 public void widgetSelected(SelectionEvent e) {
140
        setApply(true);
141
        if (e.getSource().equals(multiLanguageEditing)) {
142
            String text = multiLanguageEditing.getText();
143
            if(text.startsWith(Messages.Preference_Use_Default)){
144
                isMultilanguageTextEditingCapability = null;
145
                treeComposite.setEnabled(multiLangugeActivatedPref == null? true: multiLangugeActivatedPref.getValue() != null?Boolean.parseBoolean(multiLangugeActivatedPref.getValue().toString()): true);
146
                if (!isAdminPreference) {
147
                    overrideActivated = false;
148
                }
149
                return;
150
            }
151
            overrideActivated = true;
152

  
153
            if (text.equals(Messages.GeneralPreference_yes)){
154
                isMultilanguageTextEditingCapability = true;
155
            }else{
156
                isMultilanguageTextEditingCapability = false;
157
            }
158

  
159
            if (isMultilanguageTextEditingCapability != null){
160
                treeComposite.setEnabled(isMultilanguageTextEditingCapability);
161
            }else{
162
                treeComposite.setEnabled(multiLangugeActivatedPref == null? true: multiLangugeActivatedPref.getValue() != null?Boolean.parseBoolean(multiLangugeActivatedPref.getValue().toString()): true);
163
            }
164

  
165
        }
166
     }
37 167

  
168
	@Override
169
    public boolean performOk() {
170
        if (!isApply()){
171
            return true;
172
        }
173
        if (isMultilanguageTextEditingCapability!= null){
174
            PreferencesUtil.setBooleanValue(PreferencePredicate.MultiLanguageTextEditing.getKey(), isMultilanguageTextEditingCapability);
175
        }
176
        PreferencesUtil.setBooleanValue(
177
                PreferencesUtil.prefOverrideKey(PreferencePredicate.MultiLanguageTextEditing.getKey()),
178
                overrideActivated);
179
        return super.performOk();
180
    }
38 181
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/wizard/AbstractAdminTermSelectionWizardPage.java
43 43

  
44 44
    }
45 45

  
46
    CdmPreference pref;
47
    boolean override;
46
//    CdmPreference pref;
47
 //   boolean override;
48 48

  
49 49
    /**
50 50
     * {@inheritDoc}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/wizard/AbstractTermSelectionWizardPage.java
79 79
    }
80 80

  
81 81
    protected void setVocabularies(List<TermVocabularyDto> vocs) {
82

  
82 83
        vocabularies = vocs;
83 84
    }
84 85

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/RepresentationElement.java
139 139
            Representation preferredRepresentation = term
140 140
                    .getPreferredRepresentation(PreferencesUtil.getGlobalLanguage() );
141 141

  
142
            element_Label.setText(preferredRepresentation.getLabel());
143
            element_abbrevLabel.setText(preferredRepresentation.getAbbreviatedLabel());
144
            element_plural.setText(preferredRepresentation.getPlural());
145
            element_text.setText(preferredRepresentation.getDescription());
142
            element_Label.setText(preferredRepresentation != null? preferredRepresentation.getLabel(): null);
143
            element_abbrevLabel.setText(preferredRepresentation != null? preferredRepresentation.getAbbreviatedLabel(): null);
144
            element_plural.setText(preferredRepresentation != null? preferredRepresentation.getPlural(): null);
145
            element_text.setText(preferredRepresentation != null? preferredRepresentation.getDescription(): null);
146 146
            selectedRepresentation = preferredRepresentation;
147 147
            if (PreferencesUtil.isMultilanguageTextEditingCapability()) {
148 148
                combo_language.setSelection(preferredRepresentation == null?CdmStore.getDefaultLanguage():preferredRepresentation.getLanguage());

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)