public UndoHandlerImpl(IApplication application, ISQLEntryPanel entry)
{
if (!entry.hasOwnUndoableManager())
{
SquirrelDefaultUndoManager undoManager = new SquirrelDefaultUndoManager();
Resources res = application.getResources();
_undoAction = new UndoAction(application, undoManager);
_redoAction = new RedoAction(application, undoManager);
JComponent comp = entry.getTextComponent();
comp.registerKeyboardAction(_undoAction, res.getKeyStroke(_undoAction),
JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
comp.registerKeyboardAction(_redoAction, res.getKeyStroke(_redoAction),
JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
entry.setUndoManager(undoManager);
}
else