IDEMPIERE-542 Zk: IColumnCallout extension doesn't work. Fixed org.compiere.model.Callout extension point not working.

This commit is contained in:
Heng Sin Low 2013-01-03 00:16:06 +08:00
parent d112a9c316
commit bf3f098726
1 changed files with 2 additions and 1 deletions

View File

@ -41,6 +41,7 @@ import javax.swing.event.EventListenerList;
import org.adempiere.base.Core; import org.adempiere.base.Core;
import org.adempiere.base.IColumnCallout; import org.adempiere.base.IColumnCallout;
import org.adempiere.base.Service; import org.adempiere.base.Service;
import org.adempiere.base.ServiceQuery;
import org.adempiere.util.ContextRunnable; import org.adempiere.util.ContextRunnable;
import org.compiere.Adempiere; import org.compiere.Adempiere;
import org.compiere.util.CLogMgt; import org.compiere.util.CLogMgt;
@ -2798,7 +2799,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
{ {
String className = cmd.substring(0,methodStart); String className = cmd.substring(0,methodStart);
//first, check matching extension id in extension registry //first, check matching extension id in extension registry
call = Service.locator().locate(Callout.class, className).getService(); call = Service.locator().locate(Callout.class, className, (ServiceQuery)null).getService();
if (call == null) { if (call == null) {
//no match from extension registry, check java classpath //no match from extension registry, check java classpath
Class<?> cClass = Class.forName(className); Class<?> cClass = Class.forName(className);