Examples of IDOMNode


Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode

   * @return the design position
   */
  public static DesignPosition toDesignRefPosition(DOMRefPosition position) {
    Node node = position.getReferenceNode();
    do {
      IDOMNode container = (IDOMNode) node.getParentNode();
      EditPart part = (EditPart) container.getAdapterFor(EditPart.class);
      if (part != null) {
        // XXX: what if the node has not corresponding part?
        EditPart child = DOMPositionHelper.findEditPart(part, node);
        if (child != null) {
          return new DesignRefPosition(child, position.isForward());
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode

    }
    if (position instanceof DOMRefPosition) {
      return toDesignRefPosition((DOMRefPosition) position);
    }
    do {
      IDOMNode container = (IDOMNode) position.getContainerNode();
      EditPart part = (EditPart) container.getAdapterFor(EditPart.class);
      if (part != null) {
        if (container instanceof Text) {
          String textData = ((Text) container).getData();
          String displayData = ((TextEditPart) part).getTextData();
          return new DesignPosition(part,
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.