CompoundEdit ce=new CompoundEdit();
ContextualActionProvider provider = (ContextualActionProvider)o;
provider.doAction(actionX, actionY, actionTarget, action, ce);
ce.end();
if (ce.isSignificant()) {
ShapesContainer.ShapesComponent sc=JSynoptic.gui.getActiveComponent();
sc.fireUndoableEditUpdate(new UndoableEditEvent(sc, ce));
}