KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > ui > text > ITypingRunListener


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 package org.eclipse.jdt.internal.ui.text;
12
13 import org.eclipse.jdt.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 }
37
Popular Tags