KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > menus > AbstractWorkbenchWidget


1 /*******************************************************************************
2  * Copyright (c) 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
12 package org.eclipse.ui.internal.menus;
13
14 import org.eclipse.swt.graphics.Point;
15 import org.eclipse.swt.widgets.Composite;
16 import org.eclipse.swt.widgets.CoolBar;
17 import org.eclipse.swt.widgets.Menu;
18 import org.eclipse.swt.widgets.ToolBar;
19 import org.eclipse.ui.IWorkbenchWindow;
20 import org.eclipse.ui.menus.IWorkbenchWidget;
21
22 /**
23  * @since 3.3
24  *
25  */

26 public class AbstractWorkbenchWidget implements IWorkbenchWidget {
27
28     /* (non-Javadoc)
29      * @see org.eclipse.ui.menus.IWorkbenchWidget#init(org.eclipse.ui.IWorkbenchWindow)
30      */

31     public void init(IWorkbenchWindow workbenchWindow) {
32         // TODO Auto-generated method stub
33

34     }
35
36     /* (non-Javadoc)
37      * @see org.eclipse.jface.menus.IWidget#dispose()
38      */

39     public void dispose() {
40         // TODO Auto-generated method stub
41

42     }
43
44     /* (non-Javadoc)
45      * @see org.eclipse.jface.menus.IWidget#fill(org.eclipse.swt.widgets.Composite)
46      */

47     public void fill(Composite parent) {
48         // TODO Auto-generated method stub
49

50     }
51
52     /* (non-Javadoc)
53      * @see org.eclipse.jface.menus.IWidget#fill(org.eclipse.swt.widgets.Menu, int)
54      */

55     public void fill(Menu parent, int index) {
56         // TODO Auto-generated method stub
57

58     }
59
60     /* (non-Javadoc)
61      * @see org.eclipse.jface.menus.IWidget#fill(org.eclipse.swt.widgets.ToolBar, int)
62      */

63     public void fill(ToolBar parent, int index) {
64         // TODO Auto-generated method stub
65

66     }
67
68     /* (non-Javadoc)
69      * @see org.eclipse.jface.menus.IWidget#fill(org.eclipse.swt.widgets.CoolBar, int)
70      */

71     public void fill(CoolBar parent, int index) {
72         // TODO Auto-generated method stub
73

74     }
75
76     /**
77      * @return The preferred size of this item
78      */

79     public Point getPreferredSize() {
80         return null;
81     }
82
83 }
84
Popular Tags