Mercurial > projects > dwt-addons
comparison dwtx/jface/text/DefaultUndoManager.d @ 133:7d818bd32d63
Fix ctors to this with gvim regexp
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:29:22 +0200 |
parents | c4fb132a086c |
children | 51e6e63f930e |
comparison
equal
deleted
inserted
replaced
132:77bd3bb3d7b8 | 133:7d818bd32d63 |
---|---|
242 * Creates a new text command. | 242 * Creates a new text command. |
243 * | 243 * |
244 * @param context the undo context for this command | 244 * @param context the undo context for this command |
245 * @since 3.1 | 245 * @since 3.1 |
246 */ | 246 */ |
247 TextCommand(IUndoContext context) { | 247 this(IUndoContext context) { |
248 super(JFaceTextMessages.getString("DefaultUndoManager.operationLabel")); //$NON-NLS-1$ | 248 super(JFaceTextMessages.getString("DefaultUndoManager.operationLabel")); //$NON-NLS-1$ |
249 addContext(context); | 249 addContext(context); |
250 } | 250 } |
251 | 251 |
252 /** | 252 /** |
590 * Creates a new compound text command. | 590 * Creates a new compound text command. |
591 * | 591 * |
592 * @param context the undo context for this command | 592 * @param context the undo context for this command |
593 * @since 3.1 | 593 * @since 3.1 |
594 */ | 594 */ |
595 CompoundTextCommand(IUndoContext context) { | 595 this(IUndoContext context) { |
596 super(context); | 596 super(context); |
597 } | 597 } |
598 | 598 |
599 /** | 599 /** |
600 * Adds a new individual command to this compound command. | 600 * Adds a new individual command to this compound command. |
988 /** | 988 /** |
989 * Creates a new undo manager who remembers the specified number of edit commands. | 989 * Creates a new undo manager who remembers the specified number of edit commands. |
990 * | 990 * |
991 * @param undoLevel the length of this manager's history | 991 * @param undoLevel the length of this manager's history |
992 */ | 992 */ |
993 public DefaultUndoManager(int undoLevel) { | 993 public this(int undoLevel) { |
994 fHistory= OperationHistoryFactory.getOperationHistory(); | 994 fHistory= OperationHistoryFactory.getOperationHistory(); |
995 setMaximalUndoLevel(undoLevel); | 995 setMaximalUndoLevel(undoLevel); |
996 } | 996 } |
997 | 997 |
998 /** | 998 /** |