1 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 26 public class AbstractWorkbenchWidget implements IWorkbenchWidget { 27 28 31 public void init(IWorkbenchWindow workbenchWindow) { 32 34 } 35 36 39 public void dispose() { 40 42 } 43 44 47 public void fill(Composite parent) { 48 50 } 51 52 55 public void fill(Menu parent, int index) { 56 58 } 59 60 63 public void fill(ToolBar parent, int index) { 64 66 } 67 68 71 public void fill(CoolBar parent, int index) { 72 74 } 75 76 79 public Point getPreferredSize() { 80 return null; 81 } 82 83 } 84 | Popular Tags |