blob: 4117f40486853d7975511073971f5da7876b36ca [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.ui.text;
import org.eclipse.jdt.internal.ui.text.TypingRun.ChangeType;
/**
* Listener for <code>TypingRun</code> events.
*
* @since 3.0
*/
public interface ITypingRunListener {
/**
* Called when a new <code>TypingRun</code> is started.
*
* @param run the newly started run
*/
void typingRunStarted(TypingRun run);
/**
* Called whenever a <code>TypingRun</code> is ended.
*
* @param run the ended run
* @param reason the type of change that caused the end of the run
*/
void typingRunEnded(TypingRun run, ChangeType reason);
}