Package org.eclipse.ui.menus
Class AbstractWorkbenchTrimWidget
java.lang.Object
org.eclipse.jface.menus.AbstractTrimWidget
org.eclipse.ui.menus.AbstractWorkbenchTrimWidget
- All Implemented Interfaces:
- IWidget,- IWorkbenchWidget
public abstract class AbstractWorkbenchTrimWidget
extends AbstractTrimWidget
implements IWorkbenchWidget
Extension for trim widgets contributed to the workbench. The extension point
 handler will call the 
init method to inform the contributed
 widgets as to which workbench window they're currently being hosted in.- Since:
- 3.2
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionConvenience method to get the IWorkbenchWindow that is hosting this widget.voidinit(IWorkbenchWindow workbenchWindow) Define the IWorkbenchWindow that this trim is being hosted in.Methods inherited from class org.eclipse.jface.menus.AbstractTrimWidgetdispose, fill, fill, fill, fill, fill
- 
Constructor Details- 
AbstractWorkbenchTrimWidgetpublic AbstractWorkbenchTrimWidget()
 
- 
- 
Method Details- 
initDefine the IWorkbenchWindow that this trim is being hosted in. Note that subclasses may extend but should not override. The base implementation caches the value for access through thegetWorkbenchWindowmethod.- Specified by:
- initin interface- IWorkbenchWidget
- Parameters:
- workbenchWindow- the current workbench
- See Also:
 
- 
getWorkbenchWindowConvenience method to get the IWorkbenchWindow that is hosting this widget.- Returns:
- The IWorkbenchWindow hosting this widget.
 
- 
getPreferredSize- Returns:
- The preferred size of this item
- Since:
- 3.3
 
 
-