KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > IReusableEditor


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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 package org.eclipse.ui;
12
13 /**
14  * Interface for reusable editors.
15  *
16  * An editors may support changing its input so that
17  * the workbench may change its contents instead of
18  * opening a new editor.
19  */

20 public interface IReusableEditor extends IEditorPart {
21     /**
22      * Sets the input to this editor.
23      *
24      * <p><b>Note:</b> Clients must fire the {@link IEditorPart#PROP_INPUT }
25      * property change within their implementation of
26      * <code>setInput()</code>.<p>
27      *
28      * @param input the editor input
29      */

30     public void setInput(IEditorInput input);
31 }
32
33
Popular Tags