blob: ae8fd9761e4da258d399a41ff9d6c67de0c1b0d6 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 Tasktop Technologies and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.context.ui;
import org.eclipse.ui.IEditorInput;
/**
* Adapter interface that specifies how editor inputs should be handled when a context is deactivated.
*
* @author Steffen Pingel
* @see IEditorInput#getAdapter(Class)
* @see IContextAwareEditor
* @since 3.7
*/
public abstract class ContextAwareEditorInput {
/**
* Returns true, if the editor is not tracked as part of the task context and a close is forced on context
* deactivation.
*
* @param contextHandle
* handle of the context that is being deactivated or cleared
*/
public abstract boolean forceClose(String contextHandle);
}