KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > part > IPartPropertyProvider


1 /*******************************************************************************
2  * Copyright (c) 2004, 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 package org.eclipse.ui.internal.part;
12
13 import org.eclipse.swt.graphics.Image;
14 import org.eclipse.ui.IEditorInput;
15 import org.eclipse.ui.IPropertyListener;
16 import org.eclipse.ui.IWorkbenchPart;
17
18 /**
19  * Provides the listeners and get methods that are available to Eclipse 3.0
20  * IWorkbenchPart, IEditorPart, IViewPart, and IWorkbenchPart2. Every new-style
21  * part needs to be supplied with one of these so that it can later be adapted
22  * back to an IWorkbenchPart.
23  * <p>
24  * If the new-style part wraps an old-style part, it supply an implementation that
25  * redirects directly to the old-style part (see <code>OldPartToNewAdapter</code>).
26  * When wrapping a new-style part inside an old-style part, the wrapper should supply
27  * an <code>IPartPropertyProvider</code>. Otherwise, the new-style part will use the
28  * default implementation (<code>PartPropertyProvider</code>).
29  * </p>
30  *
31  * @since 3.1
32  */

33 public interface IPartPropertyProvider {
34     public void addPropertyListener(IWorkbenchPart part, IPropertyListener l);
35     public void removePropertyListener(IWorkbenchPart part, IPropertyListener l);
36     public String JavaDoc getTitleToolTip();
37     public Image getTitleImage();
38     public String JavaDoc getPartName();
39     public String JavaDoc getTitle();
40     public String JavaDoc getContentDescription();
41     public IEditorInput getEditorInput();
42     public boolean isDirty();
43 }
44
Popular Tags