- replaced "Edit" text with lock icons for title cache fields
authorPatric Plitzner <p.plitzner@bgbm.org>
Wed, 6 Nov 2013 15:02:18 +0000 (15:02 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Wed, 6 Nov 2013 15:02:18 +0000 (15:02 +0000)
 - we need to link back to the source for license reasons:

" Silk icon set 1.3

_________________________________________
Mark James
http://www.famfamfam.com/lab/icons/silk/
_________________________________________

This work is licensed under a
Creative Commons Attribution 2.5 License.
[ http://creativecommons.org/licenses/by/2.5/ ]

This means you may use it for any purpose,
and make any changes you like.
All I ask is that you include a link back
to this page in your credits.

Are you using this icon set? Send me an email
(including a link or picture if available) to
mjames@gmail.com

Any other questions about this icon set please
contact mjames@gmail.com"

.gitattributes
eu.etaxonomy.taxeditor.store/icons/lock.png [new file with mode: 0644]
eu.etaxonomy.taxeditor.store/icons/lock_open.png [new file with mode: 0644]
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/ImageResources.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/ToggleableTextElement.java

index 91d0cd5162c2e6043f03144b65e237b4e8a5a0af..1a425bf33362a93c3e8fdfc29e6274a4f3c97229 100644 (file)
@@ -980,6 +980,8 @@ eu.etaxonomy.taxeditor.store/icons/import_wiz.gif -text
 eu.etaxonomy.taxeditor.store/icons/large_image.gif -text
 eu.etaxonomy.taxeditor.store/icons/leaf_detail.png -text
 eu.etaxonomy.taxeditor.store/icons/linkto_help.gif -text
 eu.etaxonomy.taxeditor.store/icons/large_image.gif -text
 eu.etaxonomy.taxeditor.store/icons/leaf_detail.png -text
 eu.etaxonomy.taxeditor.store/icons/linkto_help.gif -text
+eu.etaxonomy.taxeditor.store/icons/lock.png -text
+eu.etaxonomy.taxeditor.store/icons/lock_open.png -text
 eu.etaxonomy.taxeditor.store/icons/lockedstate.gif -text
 eu.etaxonomy.taxeditor.store/icons/ma_12x12.gif -text
 eu.etaxonomy.taxeditor.store/icons/maximize.gif -text
 eu.etaxonomy.taxeditor.store/icons/lockedstate.gif -text
 eu.etaxonomy.taxeditor.store/icons/ma_12x12.gif -text
 eu.etaxonomy.taxeditor.store/icons/maximize.gif -text
diff --git a/eu.etaxonomy.taxeditor.store/icons/lock.png b/eu.etaxonomy.taxeditor.store/icons/lock.png
new file mode 100644 (file)
index 0000000..2ebc4f6
Binary files /dev/null and b/eu.etaxonomy.taxeditor.store/icons/lock.png differ
diff --git a/eu.etaxonomy.taxeditor.store/icons/lock_open.png b/eu.etaxonomy.taxeditor.store/icons/lock_open.png
new file mode 100644 (file)
index 0000000..a471765
Binary files /dev/null and b/eu.etaxonomy.taxeditor.store/icons/lock_open.png differ
index 86c47a77f12ffd13f05e5983ed39275d367276e5..9be591dddd571dfc699bb8951c79f8ab6c624191 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* European Distributed Institute of Taxonomy
 * http://www.e-taxonomy.eu
 * 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.
 */
 * 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.
 */
@@ -32,9 +32,9 @@ import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin;
  * @version 1.0
  */
 public class ImageResources {
  * @version 1.0
  */
 public class ImageResources {
-       
+
        private static ImageResources instance;
        private static ImageResources instance;
-       
+
        /**
         * <p>Getter for the field <code>instance</code>.</p>
         *
        /**
         * <p>Getter for the field <code>instance</code>.</p>
         *
@@ -46,8 +46,8 @@ public class ImageResources {
                }
                return instance;
        }
                }
                return instance;
        }
-       
-       
+
+
        /* ***************************************************************************************
        ICONS
        ************************************************************************************** */
        /* ***************************************************************************************
        ICONS
        ************************************************************************************** */
@@ -115,6 +115,13 @@ public class ImageResources {
        public static final String IMG_NOT_FOUND = "IMG_NOT_FOUND";
        /** Constant <code>WARNING_ANNOTATION_ICON="warning"</code> */
        public static final String WARNING_ANNOTATION_ICON = "warning";
        public static final String IMG_NOT_FOUND = "IMG_NOT_FOUND";
        /** Constant <code>WARNING_ANNOTATION_ICON="warning"</code> */
        public static final String WARNING_ANNOTATION_ICON = "warning";
+
+       /** Constant <code>LOCK_ICON="locked"</code> */
+       public static final String LOCK_ICON = "lock";
+
+       /** Constant <code>LOCK_OPEN_ICON="lock_open"</code> */
+       public static final String LOCK_OPEN_ICON = "lock_open";
+
        /** Constant <code>THREE_PRONGED_EQUAL="3_pronged_equal"</code> */
        public static final String THREE_PRONGED_EQUAL = "3_pronged_equal";
        /** Constant <code>TWO_PRONGED_EQUAL="2_pronged_equal"</code> */
        /** Constant <code>THREE_PRONGED_EQUAL="3_pronged_equal"</code> */
        public static final String THREE_PRONGED_EQUAL = "3_pronged_equal";
        /** Constant <code>TWO_PRONGED_EQUAL="2_pronged_equal"</code> */
@@ -127,14 +134,14 @@ public class ImageResources {
        public static final String EXPAND_ALL = "expand_all";
        /** Constant <code>COLLAPSE_ALL="collapse_all"</code> */
        public static final String COLLAPSE_ALL = "collapse_all";
        public static final String EXPAND_ALL = "expand_all";
        /** Constant <code>COLLAPSE_ALL="collapse_all"</code> */
        public static final String COLLAPSE_ALL = "collapse_all";
-       
 
 
-       
+
+
        /***************************************************************************
         * IMAGE REGISTRY
         **************************************************************************/
        private ImageRegistry imageRegistry;
        /***************************************************************************
         * IMAGE REGISTRY
         **************************************************************************/
        private ImageRegistry imageRegistry;
-       
+
        /**
         * <p>getImageDescriptor</p>
         *
        /**
         * <p>getImageDescriptor</p>
         *
@@ -154,20 +161,20 @@ public class ImageResources {
        public static Image getImage(String key) {
                return getInstance().getImageRegistry().get(key);
        }
        public static Image getImage(String key) {
                return getInstance().getImageRegistry().get(key);
        }
-       
+
        /**
         * Gets an image for the given URL. Adds the image to the registry as needed.
         *
         * @param uri a {@link java.net.URI} object.
         * @return a {@link org.eclipse.swt.graphics.Image} object.
         */
        /**
         * Gets an image for the given URL. Adds the image to the registry as needed.
         *
         * @param uri a {@link java.net.URI} object.
         * @return a {@link org.eclipse.swt.graphics.Image} object.
         */
-       public static Image getImage(URI uri) {         
-               
+       public static Image getImage(URI uri) {
+
                String key = uri.toString();
                ImageRegistry registry = getInstance().getImageRegistry();
 
                Image image = registry.get(key);
                String key = uri.toString();
                ImageRegistry registry = getInstance().getImageRegistry();
 
                Image image = registry.get(key);
-               
+
                if (image == null) {
                        ImageDescriptor desc;
                        try {
                if (image == null) {
                        ImageDescriptor desc;
                        try {
@@ -181,19 +188,19 @@ public class ImageResources {
                        } catch (Exception e) {
                                StoreUtil.error(ImageResources.class, e);
                        }
                        } catch (Exception e) {
                                StoreUtil.error(ImageResources.class, e);
                        }
-                       
+
 //                     logger.warn(ImageDescriptor.getMissingImageDescriptor().getClass());
 //                     logger.warn(desc.getClass());
 //                     logger.warn(ImageDescriptor.getMissingImageDescriptor().getClass());
 //                     logger.warn(desc.getClass());
-//                     
+//
 //                     if (ImageDescriptor.getMissingImageDescriptor().equals(desc)) {
 //                             logger.warn("img not found");
 //                     }
 //                     if (ImageDescriptor.getMissingImageDescriptor().equals(desc)) {
 //                             logger.warn("img not found");
 //                     }
-                       
+
                }
                }
-               
+
                return image;
        }
                return image;
        }
-       
+
        /**
         * <p>getImageNotFound</p>
         *
        /**
         * <p>getImageNotFound</p>
         *
@@ -222,13 +229,13 @@ public class ImageResources {
         * @param registry a {@link org.eclipse.jface.resource.ImageRegistry} object.
         */
        protected void initializeImageRegistry(ImageRegistry registry) {
         * @param registry a {@link org.eclipse.jface.resource.ImageRegistry} object.
         */
        protected void initializeImageRegistry(ImageRegistry registry) {
-               registerImage(registry, ADD_ICON, 
+               registerImage(registry, ADD_ICON,
                                "add_no_bg.gif");
                                "add_no_bg.gif");
-               registerImage(registry, TRASH_ICON, 
+               registerImage(registry, TRASH_ICON,
                                "trash.gif");
                                "trash.gif");
-               registerImage(registry, EDIT_ICON, 
+               registerImage(registry, EDIT_ICON,
                                "text.gif");
                                "text.gif");
-               registerImage(registry, EDIT_LOGO_ICON, 
+               registerImage(registry, EDIT_LOGO_ICON,
                                "edit_16x16.ico");
                registerImage(registry, WARNING_ICON,
                                "warn_tsk.gif");
                                "edit_16x16.ico");
                registerImage(registry, WARNING_ICON,
                                "warn_tsk.gif");
@@ -240,11 +247,11 @@ public class ImageResources {
                                "homosyn_original_no_bg.gif");
                registerImage(registry, HETEROTYPIC_SYN_ICON,
                                "heterosyn_no_bg.gif");
                                "homosyn_original_no_bg.gif");
                registerImage(registry, HETEROTYPIC_SYN_ICON,
                                "heterosyn_no_bg.gif");
-               registerImage(registry, NOM_INVAL_NUD_SYN_ICON, 
+               registerImage(registry, NOM_INVAL_NUD_SYN_ICON,
                                "nominval_nud_no_bg.gif");
                registerImage(registry, HETEROTYPIC_SYN_ORIGINAL_ICON,
                                "heterosyn_original_no_bg.gif");
                                "nominval_nud_no_bg.gif");
                registerImage(registry, HETEROTYPIC_SYN_ORIGINAL_ICON,
                                "heterosyn_original_no_bg.gif");
-               registerImage(registry, HOMOTYPIC_SYNONYM_IN_HETEROTYPIC_GROUP_ICON, 
+               registerImage(registry, HOMOTYPIC_SYNONYM_IN_HETEROTYPIC_GROUP_ICON,
                                "homotypic_syn_hetero_group.gif");
                registerImage(registry, MISAPPLIED_NAME_ICON,
                                "misapplied_no_bg.gif");
                                "homotypic_syn_hetero_group.gif");
                registerImage(registry, MISAPPLIED_NAME_ICON,
                                "misapplied_no_bg.gif");
@@ -256,7 +263,7 @@ public class ImageResources {
                                "basionym_no_bg.gif");
                registerImage(registry, ORTHOGRAPHIC_VARIANT_ICON,
                                "orthovariant_no_bg.gif");
                                "basionym_no_bg.gif");
                registerImage(registry, ORTHOGRAPHIC_VARIANT_ICON,
                                "orthovariant_no_bg.gif");
-               registerImage(registry, DB_ICON, 
+               registerImage(registry, DB_ICON,
                                "db.gif");
                registerImage(registry, MOVE_ICON,
                                "correction_change.gif");
                                "db.gif");
                registerImage(registry, MOVE_ICON,
                                "correction_change.gif");
@@ -264,7 +271,7 @@ public class ImageResources {
                                "delete_edit.gif");
                registerImage(registry, SYNONYM_TO_TAXON_ICON,
                                "change.gif");
                                "delete_edit.gif");
                registerImage(registry, SYNONYM_TO_TAXON_ICON,
                                "change.gif");
-               registerImage(registry, OPEN_TAXON_ICON, 
+               registerImage(registry, OPEN_TAXON_ICON,
                                "open.gif");
                registerImage(registry, ADD_CHILD_TAXON_ICON,
                                "new_child.gif");
                                "open.gif");
                registerImage(registry, ADD_CHILD_TAXON_ICON,
                                "new_child.gif");
@@ -278,28 +285,32 @@ public class ImageResources {
                                "error_co.gif");
                registerImage(registry, EDIT_BITMAP_ICON,
                                "256color_16x16.bmp");
                                "error_co.gif");
                registerImage(registry, EDIT_BITMAP_ICON,
                                "256color_16x16.bmp");
-               registerImage(registry, IMG_DATASOURCE_CONNECTED, 
+               registerImage(registry, IMG_DATASOURCE_CONNECTED,
                                "prj_obj.gif");
                                "prj_obj.gif");
-               registerImage(registry, IMG_DATASOURCE_DISCONNECTED, 
+               registerImage(registry, IMG_DATASOURCE_DISCONNECTED,
                                "cprj_obj.gif");
                                "cprj_obj.gif");
-               registerImage(registry, IMG_NOT_FOUND, 
+               registerImage(registry, IMG_NOT_FOUND,
                                "pic_not_found.PNG");
                                "pic_not_found.PNG");
-               registerImage(registry, WARNING_ANNOTATION_ICON, 
+               registerImage(registry, WARNING_ANNOTATION_ICON,
                                "warning_co.gif");
                                "warning_co.gif");
-               registerImage(registry, THREE_PRONGED_EQUAL, 
+               registerImage(registry, THREE_PRONGED_EQUAL,
                                "3_pronged_equal_small.GIF");
                                "3_pronged_equal_small.GIF");
-               registerImage(registry, TWO_PRONGED_EQUAL, 
-                               "2_pronged_equal_small.GIF");           
-               registerImage(registry, MISAPPLIED_NAME, 
-                               "ma_12x12.gif");        
-               registerImage(registry, ORPHANED_TAXON, 
-                               "orphaned.gif");        
-               registerImage(registry, EXPAND_ALL, 
+               registerImage(registry, TWO_PRONGED_EQUAL,
+                               "2_pronged_equal_small.GIF");
+               registerImage(registry, MISAPPLIED_NAME,
+                               "ma_12x12.gif");
+               registerImage(registry, ORPHANED_TAXON,
+                               "orphaned.gif");
+               registerImage(registry, EXPAND_ALL,
                                "expandAll.jpg");
                                "expandAll.jpg");
-               registerImage(registry, COLLAPSE_ALL, 
+               registerImage(registry, COLLAPSE_ALL,
                                "collapseall.gif");
                                "collapseall.gif");
-               registerImage(registry, BROWSE_ICON, 
+               registerImage(registry, BROWSE_ICON,
                                "prj_obj.gif");
                                "prj_obj.gif");
+               registerImage(registry, LOCK_ICON,
+                       "lock.png");
+               registerImage(registry, LOCK_OPEN_ICON,
+                       "lock_open.png");
        }
 
        private void registerImage(ImageRegistry registry, String key,
        }
 
        private void registerImage(ImageRegistry registry, String key,
index e49ca357c33770df95031bc1371da1dcfbaf548d..f7c5f5ba6c4e48e737b3b901cdbf1528f32d01ed 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$
 /**
 * Copyright (C) 2007 EDIT
 // $Id$
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* European Distributed Institute of Taxonomy
 * http://www.e-taxonomy.eu
 * 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.
 */
 * 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,6 +26,7 @@ import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Text;
 
 import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Text;
 
+import eu.etaxonomy.taxeditor.model.ImageResources;
 import eu.etaxonomy.taxeditor.preference.Resources;
 import eu.etaxonomy.taxeditor.store.StoreUtil;
 
 import eu.etaxonomy.taxeditor.preference.Resources;
 import eu.etaxonomy.taxeditor.store.StoreUtil;
 
@@ -38,14 +39,14 @@ import eu.etaxonomy.taxeditor.store.StoreUtil;
  */
 public class ToggleableTextElement extends AbstractCdmFormElement implements SelectionListener, ModifyListener, IEnableableFormElement, ISelectable {
 
  */
 public class ToggleableTextElement extends AbstractCdmFormElement implements SelectionListener, ModifyListener, IEnableableFormElement, ISelectable {
 
-       private Text text_cache;
-       private Button button_toggle;
-       
+       private final Text text_cache;
+       private final Button button_toggle;
+
        private boolean state;
        private boolean state;
-       private Set<SelectionListener> selectionListener = new HashSet<SelectionListener>();
-       private Label label;
-       private Composite container;
-       
+       private final Set<SelectionListener> selectionListener = new HashSet<SelectionListener>();
+       private final Label label;
+       private final Composite container;
+
        /**
         * <p>Constructor for ToggleableTextElement.</p>
         *
        /**
         * <p>Constructor for ToggleableTextElement.</p>
         *
@@ -59,15 +60,15 @@ public class ToggleableTextElement extends AbstractCdmFormElement implements Sel
        protected ToggleableTextElement(CdmFormFactory formFactory, ICdmFormElement parentElement,
                        String labelString, String initialText, boolean initialState, int style) {
                super(formFactory, parentElement);
        protected ToggleableTextElement(CdmFormFactory formFactory, ICdmFormElement parentElement,
                        String labelString, String initialText, boolean initialState, int style) {
                super(formFactory, parentElement);
-               
+
                label = formFactory.createLabel(getLayoutComposite(), labelString, style);
                addControl(label);
                label = formFactory.createLabel(getLayoutComposite(), labelString, style);
                addControl(label);
-               
-               container = formFactory.createComposite(getLayoutComposite(), SWT.WRAP);                
+
+               container = formFactory.createComposite(getLayoutComposite(), SWT.WRAP);
                container.setLayout(LayoutConstants.LAYOUT(2, false));
                container.setLayoutData(LayoutConstants.FILL_HORIZONTALLY());
                addControl(container);
                container.setLayout(LayoutConstants.LAYOUT(2, false));
                container.setLayoutData(LayoutConstants.FILL_HORIZONTALLY());
                addControl(container);
-               
+
                text_cache = formFactory.createText(container, initialText, SWT.WRAP | SWT.MULTI);
                addControl(text_cache);
                text_cache.addModifyListener(this);
                text_cache = formFactory.createText(container, initialText, SWT.WRAP | SWT.MULTI);
                addControl(text_cache);
                text_cache.addModifyListener(this);
@@ -77,15 +78,18 @@ public class ToggleableTextElement extends AbstractCdmFormElement implements Sel
                text_cache.addKeyListener( new KeyAdapter(){
                        @Override
                        public void keyPressed(KeyEvent e) {
                text_cache.addKeyListener( new KeyAdapter(){
                        @Override
                        public void keyPressed(KeyEvent e) {
-                       if(e.character == SWT.CR)
-                               e.doit = false;
+                       if(e.character == SWT.CR) {
+                e.doit = false;
+            }
                        }
                });
                        }
                });
-               
+
                button_toggle = formFactory.createButton(container, "Edit", SWT.TOGGLE);
                button_toggle = formFactory.createButton(container, "Edit", SWT.TOGGLE);
+               button_toggle.setText("");
+               button_toggle.setImage(ImageResources.getImage(ImageResources.LOCK_ICON));
                addControl(button_toggle);
                button_toggle.addSelectionListener(this);
                addControl(button_toggle);
                button_toggle.addSelectionListener(this);
-               
+
                setState(initialState);
        }
 
                setState(initialState);
        }
 
@@ -98,7 +102,7 @@ public class ToggleableTextElement extends AbstractCdmFormElement implements Sel
                if(text != null){
                        // store current caret position
                        int caretPosition = text_cache.getCaretPosition();
                if(text != null){
                        // store current caret position
                        int caretPosition = text_cache.getCaretPosition();
-                       
+
                        text_cache.removeModifyListener(this);
                        text_cache.setText(text);
                        text_cache.addModifyListener(this);
                        text_cache.removeModifyListener(this);
                        text_cache.setText(text);
                        text_cache.addModifyListener(this);
@@ -116,7 +120,7 @@ public class ToggleableTextElement extends AbstractCdmFormElement implements Sel
        public String getText(){
                return text_cache.getText();
        }
        public String getText(){
                return text_cache.getText();
        }
-       
+
        /**
         * <p>Setter for the field <code>state</code>.</p>
         *
        /**
         * <p>Setter for the field <code>state</code>.</p>
         *
@@ -126,9 +130,10 @@ public class ToggleableTextElement extends AbstractCdmFormElement implements Sel
                this.state = state;
                setEnabled(state);
        }
                this.state = state;
                setEnabled(state);
        }
-       
+
        /** {@inheritDoc} */
        /** {@inheritDoc} */
-       public void setEnabled(boolean enabled) {
+       @Override
+    public void setEnabled(boolean enabled) {
                text_cache.setEnabled(enabled);
                String symbolicName = enabled ? Resources.COLOR_FONT_DEFAULT : Resources.COLOR_TEXT_DISABLED;
                text_cache.setForeground(StoreUtil.getColor(symbolicName));
                text_cache.setEnabled(enabled);
                String symbolicName = enabled ? Resources.COLOR_FONT_DEFAULT : Resources.COLOR_TEXT_DISABLED;
                text_cache.setForeground(StoreUtil.getColor(symbolicName));
@@ -143,19 +148,26 @@ public class ToggleableTextElement extends AbstractCdmFormElement implements Sel
        public boolean getState(){
                return state;
        }
        public boolean getState(){
                return state;
        }
-       
+
        /* (non-Javadoc)
         * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
         */
        /** {@inheritDoc} */
        /* (non-Javadoc)
         * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
         */
        /** {@inheritDoc} */
-       public void widgetSelected(SelectionEvent e) {
+       @Override
+    public void widgetSelected(SelectionEvent e) {
+           if(button_toggle.getSelection()){
+               button_toggle.setImage(ImageResources.getImage(ImageResources.LOCK_OPEN_ICON));
+           }
+           else{
+               button_toggle.setImage(ImageResources.getImage(ImageResources.LOCK_ICON));
+           }
                setState(button_toggle.getSelection());
                for(SelectionListener listener : selectionListener){
                        listener.widgetSelected(e);
                }
                firePropertyChangeEvent(new CdmPropertyChangeEvent(this, e));
        }
                setState(button_toggle.getSelection());
                for(SelectionListener listener : selectionListener){
                        listener.widgetSelected(e);
                }
                firePropertyChangeEvent(new CdmPropertyChangeEvent(this, e));
        }
-       
+
        /**
         * <p>addSelectionListener</p>
         *
        /**
         * <p>addSelectionListener</p>
         *
@@ -164,7 +176,7 @@ public class ToggleableTextElement extends AbstractCdmFormElement implements Sel
        public void addSelectionListener(SelectionListener listener){
                selectionListener.add(listener);
        }
        public void addSelectionListener(SelectionListener listener){
                selectionListener.add(listener);
        }
-       
+
        /**
         * <p>removeSelectionListener</p>
         *
        /**
         * <p>removeSelectionListener</p>
         *
@@ -173,30 +185,33 @@ public class ToggleableTextElement extends AbstractCdmFormElement implements Sel
        public void removeSelectionListener(SelectionListener listener){
                selectionListener.remove(listener);
        }
        public void removeSelectionListener(SelectionListener listener){
                selectionListener.remove(listener);
        }
-       
+
        /** {@inheritDoc} */
        /** {@inheritDoc} */
-       public void widgetDefaultSelected(SelectionEvent e) {}
+       @Override
+    public void widgetDefaultSelected(SelectionEvent e) {}
 
        /** {@inheritDoc} */
 
        /** {@inheritDoc} */
-       public void modifyText(ModifyEvent e) {
+       @Override
+    public void modifyText(ModifyEvent e) {
                firePropertyChangeEvent(new CdmPropertyChangeEvent(this, e));
        }
 
        /** {@inheritDoc} */
                firePropertyChangeEvent(new CdmPropertyChangeEvent(this, e));
        }
 
        /** {@inheritDoc} */
-       public void setIrrelevant(boolean irrelevant) {
+       @Override
+    public void setIrrelevant(boolean irrelevant) {
                String colorId = irrelevant ? Resources.COLOR_COMPOSITE_IRRELEVANT : Resources.COLOR_COMPOSITE_BACKGROUND;
                String colorId = irrelevant ? Resources.COLOR_COMPOSITE_IRRELEVANT : Resources.COLOR_COMPOSITE_BACKGROUND;
-               
+
                Color color = getColor(colorId);
                text_cache.setBackground(color);
        }
                Color color = getColor(colorId);
                text_cache.setBackground(color);
        }
-       
+
        /** {@inheritDoc} */
        @Override
        public void setBackground(Color color) {
                label.setBackground(color);
                container.setBackground(color);
        }
        /** {@inheritDoc} */
        @Override
        public void setBackground(Color color) {
                label.setBackground(color);
                container.setBackground(color);
        }
-       
+
        @Override
        public void setSelected(boolean selected) {
                setBackground(selected ? SELECTED : getPersistentBackground());
        @Override
        public void setSelected(boolean selected) {
                setBackground(selected ? SELECTED : getPersistentBackground());