Package org.eclipse.gef.editparts

Examples of org.eclipse.gef.editparts.ZoomManager.addZoomListener()


  public ContextButtonManager(SapphireDiagramEditor editor) {
    this.editor = editor;

    ZoomManager zoomMgr = (ZoomManager) getEditor().getGraphicalViewer().getProperty(ZoomManager.class.toString());
    if (zoomMgr != null) {
      zoomMgr.addZoomListener(zoomListener);
    }
  }

  // ====================== getter/setter for fields ========================
View Full Code Here


        .getProperty(ZoomManager.class.toString());
    if (zoomMgr != null) {
      // this will force the font to be set
      cachedZoom = -1.0;
      updateScaledFont(zoomMgr.getZoom());
      zoomMgr.addZoomListener(zoomListener);
    } else
      getCellEditor().getControl().setFont(label.getFont());

    // Hook the cell editor's copy/paste actions to the actionBars so that
    // they can
View Full Code Here

      .getProperty(ZoomManager.class.toString());
  if (zoomMgr != null) {
    // this will force the font to be set
    cachedZoom = -1.0;
    updateScaledFont(zoomMgr.getZoom());
    zoomMgr.addZoomListener(zoomListener);
  } else
    getCellEditor().getControl().setFont(stickyNote.getFont());

  // Hook the cell editor's copy/paste actions to the actionBars so that they can
  // be invoked via keyboard shortcuts.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.