public class ZoomContributionViewItem extends ContributionItem implements org.eclipse.zest.core.viewers.internal.ZoomListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FIT_ALL
Zooms to fit entirely within the viewport.
|
static java.lang.String |
FIT_HEIGHT
Zooms to fit the height.
|
static java.lang.String |
FIT_WIDTH
Zooms to fit the width.
|
Constructor and Description |
---|
ZoomContributionViewItem(IZoomableWorkbenchPart part)
Creates a new contribution item that will work on the given part
service.initialZooms will be used to populate the combo or the menu.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
fill(CoolBar parent,
int index) |
void |
fill(Menu menu,
int index) |
void |
fill(ToolBar parent,
int index) |
void |
zoomChanged(double z)
Called whenever the ZoomManager's zoom level changes.
|
fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
public static final java.lang.String FIT_WIDTH
public static final java.lang.String FIT_HEIGHT
public static final java.lang.String FIT_ALL
public ZoomContributionViewItem(IZoomableWorkbenchPart part)
partService
- service used to see whether the view is zoomable.public void fill(Menu menu, int index)
fill
in interface IContributionItem
fill
in class ContributionItem
public void fill(CoolBar parent, int index)
fill
in interface IContributionItem
fill
in class ContributionItem
public void fill(ToolBar parent, int index)
fill
in interface IContributionItem
fill
in class ContributionItem
public void zoomChanged(double z)
org.eclipse.zest.core.viewers.internal.ZoomListener
zoomChanged
in interface org.eclipse.zest.core.viewers.internal.ZoomListener
z
- the new zoom level.public void dispose()
dispose
in interface IContributionItem
dispose
in class ContributionItem
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.