Package org.eclipse.gef.editparts

Examples of org.eclipse.gef.editparts.ScalableRootEditPart


    protected void initializeOverview() {
      LightweightSystem lws = new LightweightSystem(overview);
      RootEditPart rep = getGraphicalViewer().getRootEditPart();
      if (rep instanceof ScalableRootEditPart) {
        ScalableRootEditPart root = (ScalableRootEditPart) rep;
        thumbnail = new ScrollableThumbnail((Viewport) root.getFigure());
        thumbnail.setBorder(new MarginBorder(3));
        thumbnail.setSource(root
            .getLayer(LayerConstants.PRINTABLE_LAYERS));
        lws.setContents(thumbnail);
        disposeListener = new DisposeListener() {

          public void widgetDisposed(DisposeEvent e) {
View Full Code Here

TOP

Related Classes of org.eclipse.gef.editparts.ScalableRootEditPart

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.