01: /*******************************************************************************
02: * Copyright (c) 2005, 2006 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.widgets.Control;
13: import org.eclipse.ui.IPersistable;
14:
15: /**
16: * A part is a high-level object that manages an SWT control. The lifecycle
17: * of a part matches that of its control. The part creates its
18: * control in its constructor, and it performs any cleanup by hooking
19: * a dispose listener on the control.
20: *
21: * <p>
22: * Not intended to be subclassed by clients.
23: * </p>
24: *
25: * @since 3.1
26: */
27: public abstract class Part implements IPersistable {
28:
29: /**
30: * Returns the part's control. The owner of a part may attach
31: * layout data to this control, and may give the part focus by
32: * calling getControl().setFocus().
33: *
34: * @return the part's control
35: */
36: public abstract Control getControl();
37:
38: }
|