src/main/java/com/mxgraph/util/mxUndoManager.java
public void undoableEditHappened(mxUndoableEdit undoableEdit)
	{
		trim();

		if (size > 0 && size == history.size())
		{
			history.remove(0);
		}

		history.add(undoableEdit);
		indexOfNextAdd = history.size();
		fireEvent(new mxEventObject(mxEvent.ADD, "edit", undoableEdit));
	}
/**
	 * Method to be called to add new undoable edits to the history.
	 */
Method to be called to add new undoable edits to the history.
Method to be called to add new undoable edits to the history .
public void undoableEditHappened(mxUndoableEdit undoableEdit)
	{
		trim();
		if (size > 0 && size == history.size())
		{
			history.remove(0);
		}
		history.add(undoableEdit);
		indexOfNextAdd = history.size();
		fireEvent(new mxEventObject(mxEvent.ADD, "edit", undoableEdit));
	}
public void undoableEditHappened ( mxUndoableEdit undoableEdit ) { trim ( ) ; if ( size > 0 && size == history . size ( ) ) { history . remove ( 0 ) ; } history . add ( undoableEdit ) ; indexOfNextAdd = history . size ( ) ; fireEvent ( new mxEventObject ( mxEvent . ADD , "edit" , undoableEdit ) ) ; }
Method to be called to add new undoable edits to the history.
Method to be called to add new undoable edits to the history .