import java.util.Collection;
import java.util.List;
-import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang3.StringUtils;
import org.eclipse.nebula.widgets.nattable.data.IColumnPropertyAccessor;
import eu.etaxonomy.cdm.api.service.dto.RowWrapperDTO;
/**
* Property accessor class which maps setting and getting data for
* each row in the character matrix
+ *
* @author pplitzner
* @since Nov 26, 2017
*
FeatureDto feature = matrix.getIndexToFeatureMap().get(columnIndex);
if(feature.isSupportsCategoricalData()
&& newValue instanceof Collection){
-
+
List<TermDto> dtos = new ArrayList<>();
if (((Collection) newValue).stream().allMatch(o->o instanceof TermDto) ){
dtos = (List<TermDto>)newValue;
import javax.inject.Inject;
import javax.inject.Named;
-import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang3.StringUtils;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.ui.services.IServiceConstants;
*/
package eu.etaxonomy.taxeditor.preference;
-import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang3.StringUtils;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
*/
package eu.etaxonomy.taxeditor.ui.section.agent;
-import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang3.StringUtils;
import org.eclipse.swt.SWT;
import eu.etaxonomy.cdm.model.agent.Person;
@Override
public void fillFields() {
if (getEntity() != null) {
- text_nomenclaturalTitle.setText(getEntity().getNomenclaturalTitle());
+ text_nomenclaturalTitle.setText(getEntity().getNomenclaturalTitle());
toggleable_cache.setText(getEntity().getTitleCache());
toggleable_cache.setCacheEnabled(getEntity().isProtectedTitleCache());
text_collectorTitle.setText(getEntity().getCollectorTitle());
text_orcid.setText(getEntity().getOrcid() != null? getEntity().getOrcid().toString(): null);
text_lsid.setText(getEntity().getLsid()!= null? getEntity().getLsid().toString(): null);
}
-
+
}
}
\ No newline at end of file
*/
package eu.etaxonomy.taxeditor.ui.section.occurrence.media;
-import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang3.StringUtils;
import org.eclipse.swt.SWT;
import eu.etaxonomy.cdm.api.service.IVocabularyService;
@Override
public void fillFields() {
// TODO Auto-generated method stub
-
+
}
}