Package org.eclipse.zest.core.viewers
Class ZoomContributionViewItem
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.zest.core.viewers.ZoomContributionViewItem
- All Implemented Interfaces:
- org.eclipse.draw2d.zoom.ZoomListener,- IContributionItem
public class ZoomContributionViewItem
extends ContributionItem
implements org.eclipse.draw2d.zoom.ZoomListener
A contribution item that adds a combo to a toolbar or coolbar, or a list of
 zooms to a menu. Can only be used for one toolbar, coolbar, or menu.
 In order to use this item, let your workbench part implement
 IZoomableWorkbenchPart. If the workbench part then supplies a viewer that is
 zoomable, the combo or menu created by this item will be enabled.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new contribution item that will work on the given part service.initialZooms will be used to populate the combo or the menu.
- 
Method SummaryMethods inherited from class org.eclipse.jface.action.ContributionItemfill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
- 
Field Details- 
FIT_WIDTHZooms to fit the width.
- 
FIT_HEIGHTZooms to fit the height.
- 
FIT_ALLZooms to fit entirely within the viewport.
 
- 
- 
Constructor Details- 
ZoomContributionViewItemCreates a new contribution item that will work on the given part service.initialZooms will be used to populate the combo or the menu. Valid values for initialZooms are percentage numbers (e.g., "100%"), or FIT_WIDTH, FIT_HEIGHT, FIT_ALL.- Parameters:
- part- service used to see whether the view is zoomable.
 
 
- 
- 
Method Details- 
fill- Specified by:
- fillin interface- IContributionItem
- Overrides:
- fillin class- ContributionItem
 
- 
fill- Specified by:
- fillin interface- IContributionItem
- Overrides:
- fillin class- ContributionItem
 
- 
fill- Specified by:
- fillin interface- IContributionItem
- Overrides:
- fillin class- ContributionItem
 
- 
zoomChangedpublic void zoomChanged(double z) - Specified by:
- zoomChangedin interface- org.eclipse.draw2d.zoom.ZoomListener
- See Also:
 
- 
disposepublic void dispose()- Specified by:
- disposein interface- IContributionItem
- Overrides:
- disposein class- ContributionItem
 
 
-