Project

General

Profile

« Previous | Next » 

Revision 07e8f52b

Added by Andreas Müller over 9 years ago

unknown change in NumberWithLabelElement

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/NumberWithLabelElement.java
10 10

  
11 11
package eu.etaxonomy.taxeditor.ui.element;
12 12

  
13
import org.apache.commons.lang.StringUtils;
13 14
import org.eclipse.swt.SWT;
14 15
import org.eclipse.swt.events.ModifyEvent;
15 16
import org.eclipse.swt.widgets.Display;
16 17

  
17
import eu.etaxonomy.cdm.common.CdmUtils;
18

  
19 18

  
20 19
/**
21 20
 * <p>NumberWithLabelElement class.</p>
......
101 100
	@Override
102 101
	public void modifyText(ModifyEvent event) {
103 102
		String value = text.getText();
104
		if(CdmUtils.isEmpty(value)){
103
		if(StringUtils.isBlank(value)){
105 104
			text.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
106 105
			return;
107 106
		}

Also available in: Unified diff