는
<!-- language: lang-java -->
ZoomManager zoomManager = rootEditPart.getZoomManager();
editor.getActionRegistry().registerAction(new ZoomInAction(zoomManager));
editor.getActionRegistry().registerAction(new ZoomOutAction(zoomManager));
List<String> zoomContributions = Arrays.asList(new String[] {ZoomManager.FIT_ALL, ZoomManager.FIT_HEIGHT, ZoomManager.FIT_WIDTH });
double[] zoomLevels = {0.07,0.1,0.15, 0.2, 0.3, 0.4, 0.5, 0.75, 1.0, 1.2, 1.5, 2};
zoomManager.setZoomLevelContributions(zoomContributions);
zoomManager.setZoomLevels(zoomLevels);
IAction zoomIn = new ZoomInAction(zoomManager);
IAction zoomOut = new ZoomOutAction(zoomManager);
editor.getActionRegistry().registerAction(zoomIn);
editor.getActionRegistry().registerAction(zoomOut);
IHandlerService handlerService = (IHandlerService)
editor.getSite().getService(IHandlerService.class);
ActionHandler handler = new ActionHandler(zoomIn);
handlerService.activateHandler(GEFActionConstants.ZOOM_IN, handler);
handler = new ActionHandler(zoomOut);
handlerService.activateHandler(GEFActionConstants.ZOOM_OUT, handler);
자세한 정보 나 예를 제공하십시오 그래픽 편집기로 줌 동작 레벨을 추가하는 것입니다 – Shashwat