diff dwtx/jface/text/IRepairableDocument.d @ 129:eb30df5ca28b

Added JFace Text sources
author Frank Benoit <benoit@tionex.de>
date Sat, 23 Aug 2008 19:10:48 +0200
parents
children c4fb132a086c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dwtx/jface/text/IRepairableDocument.d	Sat Aug 23 19:10:48 2008 +0200
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ * Port to the D programming language:
+ *     Frank Benoit <benoit@tionex.de>
+ *******************************************************************************/
+module dwtx.jface.text.IRepairableDocument;
+
+import dwt.dwthelper.utils;
+
+
+/**
+ * Tagging interface to be implemented by
+ * {@link dwtx.jface.text.IDocument} implementers that offer a line
+ * repair method on the documents.
+ * <p>
+ * In order to provide backward compatibility for clients of
+ * <code>IRepairableDocument</code>, extension interfaces are used to provide
+ * a means of evolution. The following extension interfaces exist:
+ * <ul>
+ * <li> {@link dwtx.jface.text.IRepairableDocumentExtension} since version 3.4
+ *      adds the ability to query whether the repairable document needs to be repaired.</li>
+ * </ul>
+ * 
+ * 
+ * @see dwtx.jface.text.IDocument
+ * @see dwtx.jface.text.IRepairableDocumentExtension
+ * @since 3.0
+ */
+public interface IRepairableDocument {
+
+    /**
+     * Repairs the line information of the document implementing this interface.
+     */
+    void repairLineInformation();
+}