01: /*******************************************************************************
02: * Copyright (c) 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.menus;
11:
12: import org.eclipse.swt.graphics.Point;
13: import org.eclipse.swt.widgets.Composite;
14: import org.eclipse.swt.widgets.CoolBar;
15: import org.eclipse.swt.widgets.Menu;
16: import org.eclipse.swt.widgets.ToolBar;
17: import org.eclipse.ui.IWorkbenchWindow;
18: import org.eclipse.ui.menus.IWorkbenchWidget;
19:
20: /**
21: * @since 3.3
22: *
23: */
24: public class AbstractWorkbenchWidget implements IWorkbenchWidget {
25:
26: /* (non-Javadoc)
27: * @see org.eclipse.ui.menus.IWorkbenchWidget#init(org.eclipse.ui.IWorkbenchWindow)
28: */
29: public void init(IWorkbenchWindow workbenchWindow) {
30: // TODO Auto-generated method stub
31:
32: }
33:
34: /* (non-Javadoc)
35: * @see org.eclipse.jface.menus.IWidget#dispose()
36: */
37: public void dispose() {
38: // TODO Auto-generated method stub
39:
40: }
41:
42: /* (non-Javadoc)
43: * @see org.eclipse.jface.menus.IWidget#fill(org.eclipse.swt.widgets.Composite)
44: */
45: public void fill(Composite parent) {
46: // TODO Auto-generated method stub
47:
48: }
49:
50: /* (non-Javadoc)
51: * @see org.eclipse.jface.menus.IWidget#fill(org.eclipse.swt.widgets.Menu, int)
52: */
53: public void fill(Menu parent, int index) {
54: // TODO Auto-generated method stub
55:
56: }
57:
58: /* (non-Javadoc)
59: * @see org.eclipse.jface.menus.IWidget#fill(org.eclipse.swt.widgets.ToolBar, int)
60: */
61: public void fill(ToolBar parent, int index) {
62: // TODO Auto-generated method stub
63:
64: }
65:
66: /* (non-Javadoc)
67: * @see org.eclipse.jface.menus.IWidget#fill(org.eclipse.swt.widgets.CoolBar, int)
68: */
69: public void fill(CoolBar parent, int index) {
70: // TODO Auto-generated method stub
71:
72: }
73:
74: /**
75: * @return The preferred size of this item
76: */
77: public Point getPreferredSize() {
78: return null;
79: }
80:
81: }
|