KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > presentations > defaultpresentation > EmptyTabItem


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.presentations.defaultpresentation;
12
13 import org.eclipse.swt.graphics.Rectangle;
14 import org.eclipse.ui.internal.presentations.util.AbstractTabItem;
15 import org.eclipse.ui.internal.presentations.util.PartInfo;
16
17 /**
18  * @since 3.1
19  */

20 public class EmptyTabItem extends AbstractTabItem {
21
22     /* (non-Javadoc)
23      * @see org.eclipse.ui.internal.presentations.util.AbstractTabItem#getBounds()
24      */

25     public Rectangle getBounds() {
26         return new Rectangle(0,0,0,0);
27     }
28
29     /* (non-Javadoc)
30      * @see org.eclipse.ui.internal.presentations.util.AbstractTabItem#setInfo(org.eclipse.ui.internal.presentations.util.PartInfo)
31      */

32     public void setInfo(PartInfo info) {
33
34     }
35
36     /* (non-Javadoc)
37      * @see org.eclipse.ui.internal.presentations.util.AbstractTabItem#dispose()
38      */

39     public void dispose() {
40
41     }
42
43     /* (non-Javadoc)
44      * @see org.eclipse.ui.internal.presentations.util.AbstractTabItem#getData()
45      */

46     public Object JavaDoc getData() {
47         return null;
48     }
49
50     /* (non-Javadoc)
51      * @see org.eclipse.ui.internal.presentations.util.AbstractTabItem#setData(java.lang.Object)
52      */

53     public void setData(Object JavaDoc data) {
54
55     }
56 }
57
Popular Tags