Package org.eclipse.sapphire.ui.swt.gef.contextbuttons

Examples of org.eclipse.sapphire.ui.swt.gef.contextbuttons.ContextButtonManager


              }
            }
        });
   
    // context button manager
    contextButtonManager = new ContextButtonManager(this);
   
    final int zoomLevel = getPart().state().getZoomLevel().content();
    final double zoom = (double) zoomLevel / 100;
       
        getZoomManager().setZoom( zoom );
View Full Code Here


  @Override
  public void activate() {
    if (!isActive()) {
      super.activate();
      getCastedModel().addPropertyChangeListener(this);
      ContextButtonManager contextButtonManager = getConfigurationManager().getDiagramEditor().getContextButtonManager();
      contextButtonManager.register(this);     
    }
  }
View Full Code Here

  }

  @Override
  public void deactivate() {
    if (isActive()) {
      ContextButtonManager contextButtonManager = getConfigurationManager().getDiagramEditor().getContextButtonManager();
      contextButtonManager.deRegister(this);
      getCastedModel().removePropertyChangeListener(this);
        ShapePresentation shapePresentation = getCastedModel().getShapePresentation();
        shapePresentation.dispose();
      super.deactivate();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.swt.gef.contextbuttons.ContextButtonManager

Copyright © 2018 www.massapicom. 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.