fix sorting in termcombo
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / element / TextActionElement.java
index d2d84cc0e959f803cf878282bf14ec5b81aa0e4e..300ef154699a00efcb833a819a7683c412418757 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * 
+ *
  */
 package eu.etaxonomy.taxeditor.ui.element;
 
@@ -14,13 +14,11 @@ import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Text;
 
 import eu.etaxonomy.cdm.common.CdmUtils;
-import eu.etaxonomy.taxeditor.ui.campanula.compatibility.ICdmFormElement;
 
 /**
  * <p>TextActionElement class.</p>
  *
  * @author nho
- * @version $Id: $
  */
 public class TextActionElement extends AbstractCdmFormElement implements ModifyListener, ISelectable{
 
@@ -41,21 +39,21 @@ public class TextActionElement extends AbstractCdmFormElement implements ModifyL
         */
        protected TextActionElement(CdmFormFactory toolkit, ICdmFormElement parentElement, String labelString, String buttonLabel, String initialText, int style) {
                super(toolkit, parentElement);
-               
+
                label = toolkit.createLabel(getLayoutComposite(), labelString, SWT.WRAP);
                addControl(label);
-               
+
                box = formFactory.createComposite(getLayoutComposite());
                box.setLayout(LayoutConstants.LAYOUT(2, false));
                box.setLayoutData(LayoutConstants.FILL_HORIZONTALLY());
                addControl(box);
-               
+
                text = toolkit.createText(box, "", style);
                addControl(text);
                text.setLayoutData(LayoutConstants.FILL_HORIZONTALLY());
-               
+
                setText(CdmUtils.Nz(initialText));
-               
+
                button = toolkit.createButton(box, buttonLabel, SWT.PUSH);
                addControl(button);
        }
@@ -96,14 +94,11 @@ public class TextActionElement extends AbstractCdmFormElement implements ModifyL
                button.removeSelectionListener(listener);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)
-        */
-       /** {@inheritDoc} */
-       public void modifyText(ModifyEvent e) {
+       @Override
+    public void modifyText(ModifyEvent e) {
                propertyChange(null);
        }
-       
+
        /**
         * <p>addModifyListener</p>
         *
@@ -112,7 +107,7 @@ public class TextActionElement extends AbstractCdmFormElement implements ModifyL
        public void addModifyListener(ModifyListener listener){
                text.addModifyListener(listener);
        }
-       
+
        /**
         * <p>removeModifyListener</p>
         *
@@ -121,13 +116,12 @@ public class TextActionElement extends AbstractCdmFormElement implements ModifyL
        public void removeModifyListener(ModifyListener listener){
                text.removeModifyListener(listener);
        }
-       
-       /** {@inheritDoc} */
+
        @Override
        public void setBackground(Color color) {
                label.setBackground(color);
        }
-       
+
        @Override
        public void setSelected(boolean selected) {
                setBackground(selected ? SELECTED : getPersistentBackground());