* a change and notify event via the model.
*/
protected mxUndoableEdit createUndoableEdit(
mxAtomicGraphModelChange[] changes)
{
mxUndoableEdit edit = new mxUndoableEdit(this, significantRemoteChanges)
{
public void dispatch()
{
// LATER: Remove changes property (deprecated)
((mxGraphModel) source).fireEvent(new mxEventObject(
mxEvent.CHANGE, "edit", this, "changes", changes));
((mxGraphModel) source).fireEvent(new mxEventObject(
mxEvent.NOTIFY, "edit", this, "changes", changes));
}
};
for (int i = 0; i < changes.length; i++)
{
edit.add(changes[i]);
}
return edit;
}