refactory: added UI removed from core plugin.
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / 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  * Listener for <code>TypingRun</code> events.
17  * 
18  * @since 3.0
19  */
20 public interface ITypingRunListener {
21         /**
22          * Called when a new <code>TypingRun</code> is started.
23          * 
24          * @param run
25          *            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
33          *            the ended run
34          * @param reason
35          *            the type of change that caused the end of the run
36          */
37         void typingRunEnded(TypingRun run, ChangeType reason);
38 }