Package org.eclipse.jst.pagedesigner.validation.caret

Examples of org.eclipse.jst.pagedesigner.validation.caret.InlineEditingPositionMediator


  /**
   * @return
   */
  private boolean shouldStartRangeSelection() {
    IPositionMediator positionMediator = new InlineEditingPositionMediator(
        new ActionData(ActionData.INLINE_EDIT, null));
    if (positionMediator.isEditable(new Target(getSourceEditPart()))) {
      return getSourceEditPart() instanceof TextEditPart
          || !(((NodeEditPart) getSourceEditPart()).isWidget());
    }
        return false;
  }
View Full Code Here


    //to avoid 219038 and possibility of current viewer changing
    final EditPartViewer viewer = getCurrentViewer();
    final IHTMLGraphicalViewer graphicalViewer = (IHTMLGraphicalViewer)viewer;
    EditPart editPart = viewer.findObjectAtExcluding(
        getLocation(), Collections.EMPTY_LIST);
    IPositionMediator positionMediator = new InlineEditingPositionMediator(
        new ActionData(ActionData.INLINE_EDIT, null));
    ExposeHelper exposeHelper = new ExposeHelper(graphicalViewer);
    exposeHelper.adjustVertical(getCurrentInput().getMouseLocation());
    DesignPosition position = EditPartPositionHelper.findEditPartPosition(
        editPart, getCurrentInput().getMouseLocation(),
View Full Code Here

TOP

Related Classes of org.eclipse.jst.pagedesigner.validation.caret.InlineEditingPositionMediator

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.