* @param pAction the action to add
*/
public static void addAction(PendingAction pAction) {
// Tricky stuff -- if the top level object is associated with a body grid cell, this is a pending
// action for a JTable component, not a standard pending action
BodyGridCell cell = BodyGridCell.getAssociatedCell(pAction.getComponent());
if (cell != null) {
cell.add(pAction);
// TF:29/9/07: We might be doing something like setting the background colour on a click. Hence we
// need to invalidate the cell and force it to be re-painted.
cell.getBodyGrid().getTable().repaint();
}
else {
if (SwingUtilities.isEventDispatchThread()) {
pAction.performAction();
}