01: /*******************************************************************************
02: * Copyright (c) 2004, 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.internal.part;
11:
12: import org.eclipse.swt.graphics.Image;
13: import org.eclipse.ui.IEditorInput;
14: import org.eclipse.ui.IPropertyListener;
15: import org.eclipse.ui.IWorkbenchPart;
16:
17: /**
18: * Provides the listeners and get methods that are available to Eclipse 3.0
19: * IWorkbenchPart, IEditorPart, IViewPart, and IWorkbenchPart2. Every new-style
20: * part needs to be supplied with one of these so that it can later be adapted
21: * back to an IWorkbenchPart.
22: * <p>
23: * If the new-style part wraps an old-style part, it supply an implementation that
24: * redirects directly to the old-style part (see <code>OldPartToNewAdapter</code>).
25: * When wrapping a new-style part inside an old-style part, the wrapper should supply
26: * an <code>IPartPropertyProvider</code>. Otherwise, the new-style part will use the
27: * default implementation (<code>PartPropertyProvider</code>).
28: * </p>
29: *
30: * @since 3.1
31: */
32: public interface IPartPropertyProvider {
33: public void addPropertyListener(IWorkbenchPart part,
34: IPropertyListener l);
35:
36: public void removePropertyListener(IWorkbenchPart part,
37: IPropertyListener l);
38:
39: public String getTitleToolTip();
40:
41: public Image getTitleImage();
42:
43: public String getPartName();
44:
45: public String getTitle();
46:
47: public String getContentDescription();
48:
49: public IEditorInput getEditorInput();
50:
51: public boolean isDirty();
52: }
|