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.presentations.util;
11:
12: import org.eclipse.swt.widgets.Widget;
13:
14: /**
15: * @since 3.1
16: */
17: public abstract class WidgetTabItem extends AbstractTabItem {
18:
19: private Object data;
20: private Widget widget;
21:
22: public WidgetTabItem(Widget theWidget) {
23: this .widget = theWidget;
24: }
25:
26: /* (non-Javadoc)
27: * @see org.eclipse.ui.internal.presentations.util.AbstractTabItem#dispose()
28: */
29: public void dispose() {
30: widget.dispose();
31: }
32:
33: /* (non-Javadoc)
34: * @see org.eclipse.ui.internal.presentations.util.AbstractTabItem#getData()
35: */
36: public Object getData() {
37: return data;
38: }
39:
40: /* (non-Javadoc)
41: * @see org.eclipse.ui.internal.presentations.util.AbstractTabItem#setData(java.lang.Object)
42: */
43: public void setData(Object data) {
44: this .data = data;
45: }
46:
47: public Widget getWidget() {
48: return widget;
49: }
50: }
|