Mercurial > projects > dwt-addons
annotate dwtx/jface/text/DocumentRewriteSessionType.d @ 172:d994a8b2cdf7
again compile fixes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 10 Sep 2008 23:14:02 +0200 |
parents | 1a5b8f8129df |
children |
rev | line source |
---|---|
129 | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2006 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module dwtx.jface.text.DocumentRewriteSessionType; | |
14 | |
15 import dwt.dwthelper.utils; | |
16 | |
17 /** | |
18 * A document rewrite session type. | |
19 * <p> | |
20 * Allowed values are: | |
21 * <ul> | |
22 * <li>{@link DocumentRewriteSessionType#UNRESTRICTED}</li> | |
23 * <li>{@link DocumentRewriteSessionType#UNRESTRICTED_SMALL} (since 3.3)</li> | |
24 * <li>{@link DocumentRewriteSessionType#SEQUENTIAL}</li> | |
25 * <li>{@link DocumentRewriteSessionType#STRICTLY_SEQUENTIAL}</li> | |
26 * </ul> | |
27 * </p> | |
28 * | |
29 * @see dwtx.jface.text.IDocument | |
30 * @see dwtx.jface.text.IDocumentExtension4 | |
31 * @see dwtx.jface.text.IDocumentRewriteSessionListener | |
32 * @since 3.1 | |
33 */ | |
34 public class DocumentRewriteSessionType { | |
35 | |
162 | 36 static this(){ |
37 UNRESTRICTED= new DocumentRewriteSessionType(); | |
38 UNRESTRICTED_SMALL= new DocumentRewriteSessionType(); | |
39 SEQUENTIAL= new DocumentRewriteSessionType(); | |
40 STRICTLY_SEQUENTIAL= new DocumentRewriteSessionType(); | |
41 } | |
42 | |
129 | 43 /** |
44 * An unrestricted rewrite session is a sequence of unrestricted replace operations. This | |
45 * session type should only be used for <em>large</em> operations that touch more than about | |
46 * fifty lines. Use {@link #UNRESTRICTED_SMALL} for small operations. | |
47 */ | |
162 | 48 public const static DocumentRewriteSessionType UNRESTRICTED; |
129 | 49 /** |
50 * An small unrestricted rewrite session is a short sequence of unrestricted replace operations. | |
51 * This should be used for changes that touch less than about fifty lines. | |
162 | 52 * |
129 | 53 * @since 3.3 |
54 */ | |
162 | 55 public const static DocumentRewriteSessionType UNRESTRICTED_SMALL; |
129 | 56 /** |
57 * A sequential rewrite session is a sequence of non-overlapping replace | |
58 * operations starting at an arbitrary document offset. | |
59 */ | |
162 | 60 public const static DocumentRewriteSessionType SEQUENTIAL; |
129 | 61 /** |
62 * A strictly sequential rewrite session is a sequence of non-overlapping | |
63 * replace operations from the start of the document to its end. | |
64 */ | |
162 | 65 public const static DocumentRewriteSessionType STRICTLY_SEQUENTIAL; |
129 | 66 |
67 | |
68 /** | |
69 * Prohibit external object creation. | |
70 */ | |
133
7d818bd32d63
Fix ctors to this with gvim regexp
Frank Benoit <benoit@tionex.de>
parents:
131
diff
changeset
|
71 private this() { |
129 | 72 } |
73 } |