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