super.commandStackChanged(event);
}
protected void configureGraphicalViewer() {
super.configureGraphicalViewer();
ScalableRootEditPart root = new ScalableRootEditPart();
List<String> zoomLevels = new ArrayList<String>();
zoomLevels.add(ZoomManager.FIT_ALL);
zoomLevels.add(ZoomManager.FIT_WIDTH);
zoomLevels.add(ZoomManager.FIT_HEIGHT);
root.getZoomManager().setZoomLevelContributions(zoomLevels);
root.getZoomManager().setZoomLevels(
new double[] { 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1,
1.5, 2, 2.5, 3 });
IAction zoomIn = new ZoomInAction(root.getZoomManager());
IAction zoomOut = new ZoomOutAction(root.getZoomManager());
getActionRegistry().registerAction(zoomIn);
getActionRegistry().registerAction(zoomOut);
getActionRegistry().registerAction(new ExportAction(this));
getSite().getKeyBindingService().registerAction(zoomIn);