ref #2380: implement usage of Dto for taxon navigator
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / model / ImageResources.java
index 0339f9884fa9604e053f9528423f42c76f4c714e..37c0f03d78fd620ef20b0797b5f4bbcad9b56898 100644 (file)
@@ -52,6 +52,7 @@ public class ImageResources {
        ************************************************************************************** */
        /** Constant <code>ADD_ICON="add_icon"</code> */
        public static final String ADD_ICON = "add_icon";
+       public static final String ADD_EDIT = "add_edit";
        /** Constant <code>TRASH_ICON="trash_icon"</code> */
        public static final String TRASH_ICON = "trash_icon";
        /** Constant <code>BROWSE_ICON="browse_icon"</code> */
@@ -118,6 +119,9 @@ public class ImageResources {
        /** Constant <code>LOCK_ICON="locked"</code> */
        public static final String LOCK_ICON = "lock";
 
+       public static final String SYNCED = "synced";
+       public static final String REFRESH = "refresh";
+
        /** Constant <code>LOCK_OPEN_ICON="lock_open"</code> */
        public static final String LOCK_OPEN_ICON = "lock_open";
 
@@ -134,21 +138,41 @@ public class ImageResources {
        /** Constant <code>COLLAPSE_ALL="collapse_all"</code> */
        public static final String COLLAPSE_ALL = "collapse_all";
 
+       public static final String SWITCH_VIEW_TYPE = "switch_view_type";
+       public static final String SETTINGS = "settings";
+       public static final String EXPORT = "export";
+
+       //derivative icons
        public static final String TISSUE_SAMPLE_DERIVATE = "tissue_sample_derivate";
+       public static final String TISSUE_SAMPLE_DERIVATE_CHARACTER_DATA = "tissue_sample_derivate_character_data";
        public static final String DNA_SAMPLE_DERIVATE = "dna_sample_derivate";
+       public static final String DNA_SAMPLE_DERIVATE_CHARACTER_DATA = "dna_sample_derivate_character_data";
        public static final String FIELD_UNIT = "field_unit";
+       public static final String FIELD_UNIT_CHARACTER_DATA = "field_unit_character_data";
        public static final String SPECIMEN_DERIVATE = "specimen_derivate";
+       public static final String SPECIMEN_DERIVATE_TYPE = "specimen_derivate_type";
+       public static final String SPECIMEN_DERIVATE_CHARACTER_DATA = "specimen_derivate_character_data";
     public static final String ARTWORK_DERIVATE = "artwork_derivate";
+    public static final String ARTWORK_DERIVATE_CHARACTER_DATA = "artwork_derivate_character_data";
     public static final String SPECIMEN_SCAN_DERIVATE = "specimen_scan_derivate";
+    public static final String SPECIMEN_SCAN_DERIVATE_CHARACTER_DATA = "specimen_scan_derivate_character_data";
     public static final String LIVING_PLANT_PHOTO_DERIVATE = "living_plant_photo_derivate";
+    public static final String LIVING_PLANT_PHOTO_DERIVATE_CHARACTER_DATA = "living_plant_photo_derivate_character_data";
     public static final String DETAIL_IMAGE_DERIVATE = "detail_image_derivate";
+    public static final String DETAIL_IMAGE_DERIVATE_CHARACTER_DATA = "detail_image_derivate_character_data";
     public static final String SEQUENCE_DERIVATE = "sequence_derivate";
     public static final String AMPLIFICATION_DERIVATE = "amplification_derivate";
     public static final String SINGLE_READ_DERIVATE = "single_read_derivate";
     public static final String SINGLE_READ_DERIVATE_MULTILINK = "single_read_derivate_multilink";
+    public static final String DEFAULT_DERIVATIVE = "default_derivate";
+
+    public static final String CHARACTER_DATA_DERIVATE = "character_data_derivate";
 
-    public static final String HAS_CHARACTER_DATA = "_has_character_data";
+    public static final String WEB = "web";
+    public static final String DATE = "dates";
 
+    public static final String FLAT = "flat";
+    public static final String HIERARCHICAL = "hierarchical";
 
 
        /***************************************************************************
@@ -200,7 +224,7 @@ public class ImageResources {
                        } catch (MalformedURLException e) {
                                // should never happen
                        } catch (Exception e) {
-                               AbstractUtility.error(ImageResources.class, e);
+                               MessagingUtils.error(ImageResources.class, e);
                        }
 
 //                     logger.warn(ImageDescriptor.getMissingImageDescriptor().getClass());
@@ -245,6 +269,8 @@ public class ImageResources {
        protected void initializeImageRegistry(ImageRegistry registry) {
                registerImage(registry, ADD_ICON,
                                "add_no_bg.gif");
+               registerImage(registry, ADD_EDIT,
+                       "add_edit.gif");
                registerImage(registry, TRASH_ICON,
                                "trash.gif");
                registerImage(registry, EDIT_ICON,
@@ -323,24 +349,50 @@ public class ImageResources {
                                "prj_obj.gif");
                registerImage(registry, LOCK_ICON,
                        "lock.png");
+               registerImage(registry, SYNCED,
+                       "synced.gif");
+               registerImage(registry, REFRESH,
+                       "refresh.gif");
                registerImage(registry, LOCK_OPEN_ICON,
                        "lock_open.png");
+               registerImage(registry, SWITCH_VIEW_TYPE,
+                       "switch_view_type-16x16-32.png");
+               registerImage(registry, SETTINGS,
+                       "settings.gif");
                registerImage(registry, DNA_SAMPLE_DERIVATE,
                        "dna_derivate-16x16-32.png");
+               registerImage(registry, DNA_SAMPLE_DERIVATE_CHARACTER_DATA,
+                       "dna_derivate_data-16x16-32.png");
                registerImage(registry, FIELD_UNIT,
                        "fieldunit-16x16-32.png");
+               registerImage(registry, FIELD_UNIT_CHARACTER_DATA,
+                       "fieldunit_data-16x16-32.png");
                registerImage(registry, SPECIMEN_DERIVATE,
                        "specimen_derivate-16x16-32.png");
+               registerImage(registry, SPECIMEN_DERIVATE_TYPE,
+                       "specimen_derivate_type-16x16-32.png");
+               registerImage(registry, SPECIMEN_DERIVATE_CHARACTER_DATA,
+                       "specimen_derivate_data-16x16-32.png");
                registerImage(registry, ARTWORK_DERIVATE,
                        "artwork_derivate-16x16-32.png");
+               registerImage(registry, ARTWORK_DERIVATE_CHARACTER_DATA,
+                       "artwork_derivate_data-16x16-32.png");
                registerImage(registry, SPECIMEN_SCAN_DERIVATE,
                        "specimen_scan_derivate-16x16-32.png");
+               registerImage(registry, SPECIMEN_SCAN_DERIVATE_CHARACTER_DATA,
+                       "specimen_scan_derivate_data-16x16-32.png");
                registerImage(registry, LIVING_PLANT_PHOTO_DERIVATE,
                        "living_plant_photo_derivate-16x16-32.png");
+               registerImage(registry, LIVING_PLANT_PHOTO_DERIVATE_CHARACTER_DATA,
+                       "living_plant_photo_derivate_data-16x16-32.png");
                registerImage(registry, DETAIL_IMAGE_DERIVATE,
                        "detail_image_derivate-16x16-32.png");
+               registerImage(registry, DETAIL_IMAGE_DERIVATE_CHARACTER_DATA,
+                       "detail_image_derivate_data-16x16-32.png");
                registerImage(registry, TISSUE_SAMPLE_DERIVATE,
                        "tissue_sample-16x16-32.png");
+               registerImage(registry, TISSUE_SAMPLE_DERIVATE_CHARACTER_DATA,
+                       "tissue_sample_data-16x16-32.png");
                registerImage(registry, SEQUENCE_DERIVATE,
                        "sequence_derivate-16x16-32.png");
                registerImage(registry, AMPLIFICATION_DERIVATE,
@@ -349,33 +401,22 @@ public class ImageResources {
                        "single_read_derivate-16x16-32.png");
                registerImage(registry, SINGLE_READ_DERIVATE_MULTILINK,
                        "single_read_derivate_multilink-16x16-32.png");
-
-               //hasCharacterData icons
-               registerImage(registry, FIELD_UNIT+HAS_CHARACTER_DATA,
-                       "field_unit_has_character_data-16x16-32.png");
-               registerImage(registry, SPECIMEN_DERIVATE+HAS_CHARACTER_DATA,
-                       "specimen_derivate_has_character_data-16x16-32.png");
-               registerImage(registry, ARTWORK_DERIVATE+HAS_CHARACTER_DATA,
-                       "artwork_derivate_has_character_data-16x16-32.png");
-               registerImage(registry, SPECIMEN_SCAN_DERIVATE+HAS_CHARACTER_DATA,
-                       "specimen_scan_derivate_has_character_data-16x16-32.png");
-               registerImage(registry, LIVING_PLANT_PHOTO_DERIVATE+HAS_CHARACTER_DATA,
-                       "living_plant_photo_derivate_has_character_data-16x16-32.png");
-               registerImage(registry, DETAIL_IMAGE_DERIVATE+HAS_CHARACTER_DATA,
-                       "detail_image_derivate_has_character_data-16x16-32.png");
-               registerImage(registry, TISSUE_SAMPLE_DERIVATE+HAS_CHARACTER_DATA,
-                       "tissue_sample_derivate_has_character_data-16x16-32.png");
-               registerImage(registry, AMPLIFICATION_DERIVATE+HAS_CHARACTER_DATA,
-                       "amplification_derivate_has_character_data-16x16-32.png");
-               registerImage(registry, SINGLE_READ_DERIVATE+HAS_CHARACTER_DATA,
-                       "single_read_derivate_has_character_data-16x16-32.png");
-               registerImage(registry, SINGLE_READ_DERIVATE_MULTILINK+HAS_CHARACTER_DATA,
-                       "single_read_derivate_multilink_has_character_data-16x16-32.png");
-               registerImage(registry, DNA_SAMPLE_DERIVATE+HAS_CHARACTER_DATA,
-                       "dna_derivate_derivate_has_character_data-16x16-32.png");
-               registerImage(registry, SEQUENCE_DERIVATE+HAS_CHARACTER_DATA,
-                       "sequence_derivate_has_character_data-16x16-32.png");
-
+               registerImage(registry, CHARACTER_DATA_DERIVATE,
+                       "character_data_derivate-16x16-32.png");
+               registerImage(registry, DEFAULT_DERIVATIVE,
+                               "default_derivate-16x16-32.png");
+               registerImage(registry, EXPORT,
+                       "export.gif");
+
+               registerImage(registry, WEB,
+                       "web.gif");
+               registerImage(registry, DATE,
+                       "dates.gif");
+
+               registerImage(registry, FLAT,
+                       "flat.gif");
+               registerImage(registry, HIERARCHICAL,
+                       "hierarchical.gif");
 
        }