Examples of ActionData


Examples of org.cybergarage.upnp.xml.ActionData

  ////////////////////////////////////////////////

  private ActionData getActionData()
  {
    Node node = getActionNode();
    ActionData userData = (ActionData)node.getUserData();
    if (userData == null) {
      userData = new ActionData();
      node.setUserData(userData);
      userData.setNode(node);
    }
    return userData;
  }
View Full Code Here

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

  }

  private DesignPosition performObjectMode() {
    DesignPosition result = null;
    IMovementMediator validator = new InlineEditingNavigationMediator(
        new ActionData(ActionData.KEYBOARD_NAVAGATION, null));
    DesignPosition position = getCurrentObjectPosition();
    if (position != null) {
      _viewer.setRange(position, position);
      if (!validator.isValidPosition(position)) {
        position = performInlineMode(_forward);
View Full Code Here

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

    if (range == null || !range.isValid()) {
      _log.error("invalid range"); //$NON-NLS-1$
      return;
    }
    IMovementMediator moveMediator = new InlineEditingNavigationMediator(
        new ActionData(ActionData.KEYBOARD_NAVAGATION, null));
    DesignPosition position = range.getEndPosition();
    Caret caret = _viewer.getCaret();
    Point point = null;
    DesignPosition newPos = position;
    EditPart containerpart = null, rootpart1;
View Full Code Here

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

  }

  public void execute() {
    Node document = _viewer.getModel().getDocument();
    IMovementMediator validator = new InlineEditingNavigationMediator(
        new ActionData(ActionData.KEYBOARD_NAVAGATION, null));
    Node htmlRoot = RootContainerPositionRule
        .getBasicContainer((Document) document);
    Node jsfRoot = JSFRootContainerPositionRule
        .getBasicContainer((Document) document, 3);
    Node root;
View Full Code Here

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

   * Delete one node or char at operation position.
   */
  private void deleteSingle() {
    IDOMPosition opPosition = getOperationPosition();
    opPosition = EditHelper.moveToNextEditPosition(getOperationPosition(),
        _forward, new InlineEditingNavigationMediator(new ActionData(
            ActionData.INLINE_EDIT, null)));
    // for inner debug
    if (INNER_DEBUG) {
      _log.info("EditHelper, now we are at:" + opPosition); //$NON-NLS-1$
    }
View Full Code Here

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

  public boolean checkInsertElement(LocalDropRequest request,
      EditPart[] host, Map results, DesignPosition[] dpHolder,
      IDOMPosition[] position) {
    DesignPosition designPosition = EditPartPositionHelper
        .findEditPartPosition(host[0], request.getLocation(),
            new DnDPositionValidator(new ActionData(
                ActionData.DATABINDING_DND, request)));
    dpHolder[0] = designPosition;
    if (designPosition == null) {
      return false;
    }
View Full Code Here

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

  /**
   * @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

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

    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(),
        positionMediator);
View Full Code Here

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

  }

  private DesignPosition findObjectModePosition() {
    DesignPosition result = null;
    IMovementMediator validator = new InlineEditingNavigationMediator(
        new ActionData(ActionData.KEYBOARD_NAVAGATION, null));
    DesignPosition position = getCurrentObjectPosition();
    if (position != null) {
      if (!validator.isValidPosition(position)) {
        result = null;
      } else {
View Full Code Here

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

      DesignPosition currentPosition, boolean forward) {
    IDOMPosition position;
    position = DOMPositionHelper.toDOMPosition(currentPosition);
    position = moveToNextEditPosition(position, forward,
        new InlineEditingNavigationMediator(
            new ActionData(action, null)));
    if (position == null) {
      return currentPosition;
    }

    EditValidateUtil.validPosition(position);
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.