if (item == null) {
Messagebox.show("Select a function");
return;
}
FormulaMetaInfo info = (FormulaMetaInfo) item.getValue();
if (info.getRequiredParameter() == 0) {
getDesktopWorkbenchContext().getWorkbookCtrl().insertFormula(rowIdx, colIdx, "=" + info.getFunction() + "()");
} else {
info.setRowIndex(rowIdx);
info.setColIndex(colIdx);
getDesktopWorkbenchContext().getWorkbenchCtrl().
openComposeFormulaDialog((FormulaMetaInfo)item.getValue());
}
_insertFormulaDialog.fireOnClose(null);