01: /*******************************************************************************
02: * Copyright (c) 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui;
11:
12: /**
13: * Shows the given editor input. Used when an editor is being opened and an existing
14: * editor's input matches the one being opened.
15: * <p>
16: * Editors can optionally implement this interface, giving the editor the opportunity
17: * to show the given input if it represents a different subset of the editor's content
18: * than the one currently being shown.
19: * </p>
20: *
21: * @since 3.1
22: */
23: public interface IShowEditorInput {
24:
25: /**
26: * Shows the given input if it represents a different subset of the editor's content
27: * than the one currently being shown.
28: *
29: * @param editorInput the editor input to show
30: */
31: void showEditorInput(IEditorInput editorInput);
32:
33: }
|