import java.util.Iterator;
import java.util.List;
-import org.eclipse.core.internal.utils.Assert;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.jface.util.Assert;
public class MultiTextEdit {
fChildren.add(((TextEdit)iter.next()).copy());
}
}
-
+
protected List getChildren() {
return fChildren;
}
-
+
/**
* Adds all <code>TextEdits</code> managed by the given multt text edit.
*
Assert.isNotNull(edit);
fChildren.add(edit);
}
-
+
/**
* Adds a text edit.
*
Assert.isNotNull(edit);
fChildren.add(edit);
}
-
+
/**
* Returns the children managed by this text edit collection.
*
editor.add((MultiTextEdit)element);
}
}
-
+
/**
- * Creates and returns a copy of this text edit collection. The copy method should
- * be implemented in a way so that the copy can be added to a different <code>
- * TextBuffer</code> without causing any harm to the object from which the copy
- * has been created.
- *
- * @return a copy of this object.
- */
+ * Creates and returns a copy of this text edit collection. The copy method should
+ * be implemented in a way so that the copy can be added to a different <code>
+ * TextBuffer</code> without causing any harm to the object from which the copy
+ * has been created.
+ *
+ * @return a copy of this object.
+ */
public MultiTextEdit copy() throws CoreException {
return new MultiTextEdit(fChildren);
}
-
+
/**
* Returns the <code>TextRange</code> that this text edit is going to
* manipulate. If this method is called before the <code>MultiTextEdit</code>
}
return new TextRange(start, end - start + 1);
}
-
+
/**
* Returns the element modified by this text edit. The method
* may return <code>null</code> if the modification isn't related to a
*/
public Object getModifiedElement() {
return null;
- }
+ }
}