if (table == null)
{
return;
}
final ExpressionEditorDialog editorDialog;
final Object o = LibSwingUtil.getWindowAncestor(table);
if (o instanceof Dialog)
{
editorDialog = new ExpressionEditorDialog((Dialog) o);
}
else if (o instanceof Frame)
{
editorDialog = new ExpressionEditorDialog((Frame) o);
}
else
{
editorDialog = new ExpressionEditorDialog();
}
final Expression expression = editorDialog.performEditExpression
(reportDesignerContext, value);
if (editorDialog.isConfirmed() == false)
{
cancelCellEditing();
return;
}