1 /******************************************************************************* 2 * Copyright (c) 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.ui; 13 14 15 /** 16 * Shows the given editor input. Used when an editor is being opened and an existing 17 * editor's input matches the one being opened. 18 * <p> 19 * Editors can optionally implement this interface, giving the editor the opportunity 20 * to show the given input if it represents a different subset of the editor's content 21 * than the one currently being shown. 22 * </p> 23 * 24 * @since 3.1 25 */ 26 public interface IShowEditorInput { 27 28 /** 29 * Shows the given input if it represents a different subset of the editor's content 30 * than the one currently being shown. 31 * 32 * @param editorInput the editor input to show 33 */ 34 void showEditorInput(IEditorInput editorInput); 35 36 } 37 38