01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jface.text;
11:
12: /**
13: * An auto edit strategy can adapt changes that will be applied to
14: * a text viewer's document. The strategy is informed by the text viewer
15: * about each upcoming change in form of a document command. By manipulating
16: * this document command, the strategy can influence in which way the text
17: * viewer's document is changed. Clients may implement this interface.
18: *
19: * @since 2.1
20: */
21: public interface IAutoEditStrategy {
22:
23: /**
24: * Allows the strategy to manipulate the document command.
25: *
26: * @param document the document that will be changed
27: * @param command the document command describing the change
28: */
29: void customizeDocumentCommand(IDocument document,
30: DocumentCommand command);
31: }
|