Package org.eclipse.jst.pagedesigner.tools

Examples of org.eclipse.jst.pagedesigner.tools.ExposeHelper


    Rectangle rect = new Rectangle(p.x, p.y, 1, 1);
    Viewport port = ((IHTMLGraphicalViewer) viewer).getViewport();

    Point viewLocation = port.getViewLocation();
    Point lastLocation = viewLocation.getCopy();
    new ExposeHelper((IHTMLGraphicalViewer) viewer).exposeArea(rect);
    viewLocation = port.getViewLocation();
    Dimension offset = lastLocation.getDifference(viewLocation);

    p.translate(offset.width, offset.height);
    EditPart part = viewer.findObjectAt(p);
View Full Code Here


          new IDOMPosition[1])) {
        Rectangle rect = EditPartPositionHelper
            .convertToAbsoluteCaretRect(holder[0]);
        showFeedbackRect(rect);
        if (getHost() instanceof GraphicalEditPart) {
          ExposeHelper exposeHelper = new ExposeHelper(
              getViewer(getHost()));
          exposeHelper.adjustVertical(r.getLocation());
        }
        return;
      }
    }
  }
View Full Code Here

  private void reveal() {
    Caret caret = _viewer.getCaret();
    if (caret != null && !caret.isDisposed() && _viewer.isInRangeMode()) {
      org.eclipse.swt.graphics.Rectangle rect = caret.getBounds();
      ExposeHelper helper = new ExposeHelper(_viewer);
      helper.exposeArea(new Rectangle(rect.x, rect.y, rect.width,
          rect.height));
    }
  }
View Full Code Here

        if (request instanceof DropRequest
                && request.getType() == ItemCreationRequest.REQ_ITEM_CREATION)
        {
            super.showTargetFeedback(request);
            if (getHost() instanceof GraphicalEditPart) {
                ExposeHelper exposeHelper = new ExposeHelper(
                        getViewer(getHost()));
                exposeHelper.adjustVertical(((DropRequest)request).getLocation());
            }
        }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.pagedesigner.tools.ExposeHelper

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.