3m9 compatible;
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / text / ITypingRunListener.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.ui.text;
12
13 import net.sourceforge.phpdt.internal.ui.text.TypingRun.ChangeType;
14
15
16 /**
17  * Listener for <code>TypingRun</code> events.
18  * 
19  * @since 3.0
20  */
21 public interface ITypingRunListener {
22         /**
23          * Called when a new <code>TypingRun</code> is started.
24          * 
25          * @param run the newly started run
26          */
27         void typingRunStarted(TypingRun run);
28         
29         /**
30          * Called whenever a <code>TypingRun</code> is ended.
31          * 
32          * @param run the ended run
33          * @param reason the type of change that caused the end of the run
34          */
35         void typingRunEnded(TypingRun run, ChangeType reason);
36 }