made bug fixes for:
authorAlexander Oppermann <a.oppermann@bgbm.org>
Tue, 25 Nov 2014 14:23:48 +0000 (14:23 +0000)
committerAlexander Oppermann <a.oppermann@bgbm.org>
Tue, 25 Nov 2014 14:23:48 +0000 (14:23 +0000)
* disabled rank editing support
* empty values are no longer displayed with a "-"
* Checklist Editor is now activated by default

eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/ChecklistPerspective.java
eu.etaxonomy.taxeditor.cdmlib/.classpath
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/ChecklistEditor.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/ChecklistLabelProvider.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java

index cba4c8604365972ea0a5123b7627d354b8e28aa1..8c7a86ac2f15cbac8235b89bde5413d7a6a5ad5d 100644 (file)
@@ -50,6 +50,6 @@ public class ChecklistPerspective extends Default {
                folder.addView(ConceptViewPart.ID);
 //             folder.addView(MediaViewPart.ID);
 
-               createAdditionalFolder(layout, layout.getEditorArea());
+//             createAdditionalFolder(layout, layout.getEditorArea());
        }
 }
index 14558d0738d41c425bfed7e3708a1943639ac86f..47f830d8939e2147a9b22c8a1c03d28d230e71ba 100644 (file)
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-model-3.5.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-model-3.5.0-SNAPSHOT.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-3.5.0-SNAPSHOT-sources.jar"/>
-       <classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-3.5.0-SNAPSHOT.jar"/>
+       <classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-3.5.0-SNAPSHOT.jar" sourcepath="lib/cdmlib-persistence-3.5.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-print-3.5.0-SNAPSHOT-sources.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-print-3.5.0-SNAPSHOT.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/cdmlib-remote-3.5.0-SNAPSHOT-sources.jar"/>
index 3fe844fa730415ac61b362a3c6a2246d57214553..b99aee8d286bf20aea964b4a14e2427f66f8e796 100644 (file)
@@ -337,7 +337,8 @@ public class ChecklistEditor extends EditorPart implements ISelectionListener, I
                 table.setSortColumn(column.getColumn());
             }
             if (i == 3) {
-                column.setEditingSupport(new RankEditingSupport(viewer, this));
+               /** uncommented it for now because no rank editing is wanted **/
+//                column.setEditingSupport(new RankEditingSupport(viewer, this));
             }
             if (i >= 4) {
                 //read PrefrenceStore to setWidth according to last saved state
index 16a5e2689d4c35fc73be3d23eb7d431725b511f2..a1160c1de1d3545e8b1b2e2d853870a06528c309 100644 (file)
@@ -46,7 +46,7 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  */
 public class ChecklistLabelProvider extends LabelProvider implements ITableLabelProvider {
 
-    public static final String DEFAULT_ENTRY = "-";
+    public static final String DEFAULT_ENTRY = "";
     private IDescriptionService descriptionService;
     private final List<DefinedTermBase<?>> namedAreas;
 
index 484a133579ee30ddfa7fe9602f0cc232ceb9c900..2dbfde95089eecbdd04c17f9883ae80916343714 100644 (file)
@@ -392,6 +392,7 @@ public class PreferencesUtil implements IPreferenceKeys {
                                "http://www.biodiversitylibrary.org/openurl");
                getPreferenceStore().setDefault(OPENURL_IMAGE_MAX_WIDTH, "1000");
                getPreferenceStore().setDefault(OPENURL_IMAGE_MAX_HEIGHT, "1000");
+               getPreferenceStore().setDefault(IPreferenceKeys.DISTRIBUTION_AREA_PREFRENCES_ACTIVE, true);
        }
 
        /**
@@ -425,7 +426,7 @@ public class PreferencesUtil implements IPreferenceKeys {
                                                        "The following has been set as your preferred nomenclatural code:\n\n\t"
                                                                        + NomenclaturalCodeHelper
                                                                                        .getDescription(code)
-                                                                       + "\n\nYou can change the nomenclatural code at any time in the \"Preferences\" menu.");*/
+                                                                       + "\n\nYou iour is not consistent throughout the application. For DescriptionElemts and also PolytomousKeyNode.Question and PolytomousKeyNode.Statement it shows only the languages where text is available whereas for PolytomousKeyNode.modyfingText it shows a strange list of about 10-20 (different for different nodes) most of them starting with can change the nomenclatural code at any time in the \"Preferences\" menu.");*/
                }
        }