Examples of DesignPosition


Examples of org.eclipse.jst.pagedesigner.viewer.DesignPosition

   * @see org.eclipse.gef.editpolicies.AbstractEditPolicy#getCommand(org.eclipse.gef.Request)
   */
  public Command getCommand(Request request) {
    if (request instanceof ItemCreationRequest) {
      ItemCreationRequest r = (ItemCreationRequest) request;
      DesignPosition position = findPosition((ItemCreationRequest)request);
           
      if (position == null) {
        return null;
      }
            IDOMPosition domposition = DOMPositionHelper.toDOMPosition(position);
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.viewer.DesignPosition

   *
   * @see org.eclipse.gef.editpolicies.AbstractEditPolicy#getTargetEditPart(org.eclipse.gef.Request)
   */
  public EditPart getTargetEditPart(Request request) {
    if (request instanceof ItemCreationRequest) {
      DesignPosition position = findPosition((ItemCreationRequest)request);

      if (position == null) {
        return null;
      }

      EditPart container = position.getContainerPart();
      return container;
    }
    return null;
  }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.viewer.DesignPosition

        {
            return null;
        }
       
        final IDropLocationStrategy dropStrategy = createDropLocationStrategy(request);
        final DesignPosition position =
            dropStrategy.calculateDesignPosition(getHost(), request.getLocation(), mediator);
       
        // verify that the drop strategy has honoured it's contract that our
        // mediator be respected
        if (position != null)
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.viewer.DesignPosition

    }
    return super.isEnabled();
  }

  private EditPart convertToEditPart(DesignRange range) {
    DesignPosition startPosition = range.getStartPosition();
    EditPart startPart = startPosition.getContainerPart();

    DesignPosition endPosition = range.getEndPosition();
    EditPart endPart = endPosition.getContainerPart();

    if (startPosition == endPosition) {
      return null;
    }
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.