All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.uqbar.eclipse.jface.ReflectionLabelProvider.scala Maven / Gradle / Ivy

There is a newer version: 3.6.3
Show newest version
package org.uqbar.eclipse.jface

import org.eclipse.jface.viewers.LabelProvider
import org.uqbar.commons.model.utils.ReflectionUtils

class ReflectionLabelProvider(var propertyName:String) extends LabelProvider {

  override def getText(element:Object) = 
    if (propertyName != null) 
	    ReflectionUtils.invokeGetter(element, propertyName) + ""
    else
      element.toString
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy