KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > text > IAutoEditStrategy


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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  *******************************************************************************/

11
12 package org.eclipse.jface.text;
13
14
15 /**
16  * An auto edit strategy can adapt changes that will be applied to
17  * a text viewer's document. The strategy is informed by the text viewer
18  * about each upcoming change in form of a document command. By manipulating
19  * this document command, the strategy can influence in which way the text
20  * viewer's document is changed. Clients may implement this interface.
21  *
22  * @since 2.1
23  */

24 public interface IAutoEditStrategy {
25
26     /**
27      * Allows the strategy to manipulate the document command.
28      *
29      * @param document the document that will be changed
30      * @param command the document command describing the change
31      */

32     void customizeDocumentCommand(IDocument document, DocumentCommand command);
33 }
34
Popular Tags