comparison dwtx/text/edits/package.html @ 129:eb30df5ca28b

Added JFace Text sources
author Frank Benoit <benoit@tionex.de>
date Sat, 23 Aug 2008 19:10:48 +0200
parents
children
comparison
equal deleted inserted replaced
128:8df1d4193877 129:eb30df5ca28b
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 transitional//EN">
2 <html><head>
3 <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
4 <meta content="IBM" name="Author">
5 <meta content="Eclipse Text Editor" name="GENERATOR">
6 <title>Text Edits</title>
7 </head>
8
9 <body>
10 Provides support for describing and applying textual document editions.
11 <p>
12 A complex textual edition can be described by a tree of <tt>TextEdit</tt>s. An edit
13 can be applied to an <tt>IDocument</tt> by calling <tt>TextEdit.apply</tt> or by
14 using a <tt>TextEditProcessor</tt>. Applying a text edit can record a reverse edit
15 description that can be used to undo the edition.
16 </p>
17 Use the standard edit kinds to describe the basic document editing operations:
18 <ul>
19 <li><em>replace</em> a document range: <tt>ReplaceEdit</tt></li>
20 <li><em>delete</em> a document range: <tt>DeleteEdit</tt></li>
21 <li><em>insert</em> text: <tt>InsertEdit</tt></li>
22 <li><em>track</em> a range while the document is being modified: <tt>RangeMarker</tt></li>
23 </ul>
24 <p>
25 Other subclasses of <tt>TextEdit</tt> exist for specialized tasks. Use <tt>MultiTextEdit</tt> to
26 compose a complex edit tree, or subclass it to provide a custom edit.
27 </p>
28 </body></html>