>hi,
>
[quoted text clipped - 29 lines]
>
>has anyone an idea?
As I undestand it, when you call e.getEdit(), you get back an instance
of DefaultDocumentEvent (which, in turn, may contain one or more
AttributeUndoableEdits). So all you have to do is check the type of
the DefaultDocumentEvent:
public void undoableEditHappened(UndoableEditEvent e) {
UndoableEdit edit = e.getEdit();
if (edit instanceof DefaultDocumentEvent &&
((DefaultDocumentEvent)edit).getType() ==
DefaultDocumentEvent.EventType.CHANGE) {
return;
}
undo.addEdit(edit);
}
Mark Baker - 04 Jan 2004 18:42 GMT
> >hi,
> >
[quoted text clipped - 44 lines]
> undo.addEdit(edit);
> }
cool, i was a bit confused about all these event-things!
but finally it works, thanks a lot!
Mark