Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: c0e48790d5d048a55ca4a67184e9252c27b26591 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package org.eclipse.jface.text;

/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved.
 */


/**
 * An auto indent strategy can adapt changes that will be applied to
 * a text viewer's document. The strategy is informed by the text viewer
 * about each upcoming change in form of a document command. By manipulating
 * this document command, the strategy can influence in which way the text 
 * viewer's document is changed. Clients may implement this interface or
 * use the standard implementation <code>DefaultAutoIndentStrategy</code>.
 */
public interface IAutoIndentStrategy {
	
	/**
	 * Allows the strategy to manipulate the document command.
	 *
	 * @param document the document that will be changed
	 * @param command the document command describing the indented change
	 */
	void customizeDocumentCommand(IDocument document, DocumentCommand command);	
}

Back to the top