Mercurial > projects > dwt2
comparison org.eclipse.text/src/org/eclipse/text/edits/MalformedTreeException.d @ 12:bc29606a740c
Added dwt-addons in original directory structure of eclipse.org
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 14 Mar 2009 18:23:29 +0100 |
parents | |
children | 5feec68b4556 |
comparison
equal
deleted
inserted
replaced
11:43904fec5dca | 12:bc29606a740c |
---|---|
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 org.eclipse.text.edits.MalformedTreeException; | |
14 | |
15 import org.eclipse.text.edits.MultiTextEdit; // packageimport | |
16 import org.eclipse.text.edits.CopySourceEdit; // packageimport | |
17 import org.eclipse.text.edits.MoveSourceEdit; // packageimport | |
18 import org.eclipse.text.edits.CopyingRangeMarker; // packageimport | |
19 import org.eclipse.text.edits.ReplaceEdit; // packageimport | |
20 import org.eclipse.text.edits.EditDocument; // packageimport | |
21 import org.eclipse.text.edits.UndoCollector; // packageimport | |
22 import org.eclipse.text.edits.DeleteEdit; // packageimport | |
23 import org.eclipse.text.edits.MoveTargetEdit; // packageimport | |
24 import org.eclipse.text.edits.CopyTargetEdit; // packageimport | |
25 import org.eclipse.text.edits.TextEditCopier; // packageimport | |
26 import org.eclipse.text.edits.ISourceModifier; // packageimport | |
27 import org.eclipse.text.edits.TextEditMessages; // packageimport | |
28 import org.eclipse.text.edits.TextEditProcessor; // packageimport | |
29 import org.eclipse.text.edits.TreeIterationInfo; // packageimport | |
30 import org.eclipse.text.edits.TextEditVisitor; // packageimport | |
31 import org.eclipse.text.edits.TextEditGroup; // packageimport | |
32 import org.eclipse.text.edits.TextEdit; // packageimport | |
33 import org.eclipse.text.edits.RangeMarker; // packageimport | |
34 import org.eclipse.text.edits.UndoEdit; // packageimport | |
35 import org.eclipse.text.edits.InsertEdit; // packageimport | |
36 | |
37 | |
38 import java.lang.all; | |
39 import java.util.Set; | |
40 | |
41 /** | |
42 * Thrown to indicate that an edit got added to a parent edit | |
43 * but the child edit somehow conflicts with the parent or | |
44 * one of it siblings. | |
45 * <p> | |
46 * This class is not intended to be serialized. | |
47 * </p> | |
48 * | |
49 * @see TextEdit#addChild(TextEdit) | |
50 * @see TextEdit#addChildren(TextEdit[]) | |
51 * | |
52 * @since 3.0 | |
53 */ | |
54 public class MalformedTreeException : RuntimeException { | |
55 | |
56 // Not intended to be serialized | |
57 private static const long serialVersionUID= 1L; | |
58 | |
59 private TextEdit fParent; | |
60 private TextEdit fChild; | |
61 | |
62 /** | |
63 * Constructs a new malformed tree exception. | |
64 * | |
65 * @param parent the parent edit | |
66 * @param child the child edit | |
67 * @param message the detail message | |
68 */ | |
69 public this(TextEdit parent, TextEdit child, String message) { | |
70 super(message); | |
71 fParent= parent; | |
72 fChild= child; | |
73 } | |
74 | |
75 /** | |
76 * Returns the parent edit that caused the exception. | |
77 * | |
78 * @return the parent edit | |
79 */ | |
80 public TextEdit getParent() { | |
81 return fParent; | |
82 } | |
83 | |
84 /** | |
85 * Returns the child edit that caused the exception. | |
86 * | |
87 * @return the child edit | |
88 */ | |
89 public TextEdit getChild() { | |
90 return fChild; | |
91 } | |
92 | |
93 void setParent(TextEdit parent) { | |
94 fParent= parent; | |
95 } | |
96 } |