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 12 package org.eclipse.jface.text; 13 14 15 /** 16 * Extension interface for {@link org.eclipse.jface.text.ITextOperationTarget}. 17 * <p> 18 * Allows a client to control the enable state of operations provided by this 19 * target. 20 * 21 * @see org.eclipse.jface.text.ITextOperationTarget 22 * @since 2.0 23 */ 24 public interface ITextOperationTargetExtension { 25 26 /** 27 * Enables/disabled the given text operation. 28 * 29 * @param operation the operation to enable/disable 30 * @param enable <code>true</code> to enable the operation otherwise <code>false</code> 31 */ 32 void enableOperation(int operation, boolean enable); 33 } 34 35