Examples of formatNode()


Examples of org.eclipse.wst.sse.core.internal.format.IStructuredFormatProcessor.formatNode()

        viewer.getDocument().addPosition(end);

        // get new element node
        IDOMNode newElementNode = (IDOMNode) ContentAssistUtils.getNodeAt(viewer, startTagOffset);
        IStructuredFormatProcessor formatProcessor = new FormatProcessorXML();
        formatProcessor.formatNode(newElementNode);

        // rename new element
        apply(viewer, trigger, stateMask, start, end, ELEMENT_NAME.length());
      } finally {
        viewer.getDocument().removePosition(start);
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.format.IStructuredFormatProcessor.formatNode()

      // tell the model that we are about to make a big model change
      fModel.aboutToChangeModel();

      // format selected node
      IStructuredFormatProcessor formatProcessor = new FormatProcessorXML();
      formatProcessor.formatNode(newElement);
    }
    finally {
      // tell the model that we are done with the big model change
      fModel.changedModel();
    }
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.format.IStructuredFormatProcessor.formatNode()

      // tell the model that we are about to make a big model change
      model.aboutToChangeModel();

      // format selected node
      IStructuredFormatProcessor formatProcessor = new FormatProcessorXML();
      formatProcessor.formatNode(newElement);
    }
    finally {
      // tell the model that we are done with the big model change
      model.changedModel();
    }
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.format.IStructuredFormatProcessor.formatNode()

      // Format the new element node
      IStructuredFormatProcessor formatProcessor = new FormatProcessorXML();
      CleanupProcessorXML cleanupProcessor = new CleanupProcessorXML();
      cleanupProcessor.getCleanupPreferences().setCompressEmptyElementTags(true);

      formatProcessor.formatNode(namespaceJndiElement);
      cleanupProcessor.cleanupNode(namespaceJndiElement);

      legacyXmlElement.getParentNode().removeChild(legacyXmlElement);
    }
    finally {
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.format.IStructuredFormatProcessor.formatNode()

          Text spacerNode = document.createTextNode("\n\n");
          beanElement.getParentNode().insertBefore(spacerNode, newBeanElement);

          IStructuredFormatProcessor formatProcessor = new FormatProcessorXML();
          formatProcessor.formatNode(newBeanElement);
          XmlQuickFixUtil.saveMarkedFile(marker);

          IEditorPart editor = XmlQuickFixUtil.getMarkedEditor(marker);
          setCursorPositionToClassAttribute((MultiPageEditorPart) editor, (ElementImpl) newBeanElement);
        }
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.format.IStructuredFormatProcessor.formatNode()

          spacerNode = document.createTextNode("\n\n");
          beanElement.appendChild(spacerNode);

          IStructuredFormatProcessor formatProcessor = new FormatProcessorXML();
          formatProcessor.formatNode(newBeanProperty);

          IEditorPart editor = XmlQuickFixUtil.getMarkedEditor(marker);
          setCursorPositionToPropertyValue((XMLMultiPageEditorPart) editor, (ElementImpl) newBeanProperty);

          CleanupProcessorXML cleanupProcessor = new CleanupProcessorXML();
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.provisional.format.FormatProcessorXML.formatNode()

        viewer.getDocument().addPosition(end);

        // get new element node
        IDOMNode newElementNode = (IDOMNode) ContentAssistUtils.getNodeAt(viewer, startTagOffset);
        IStructuredFormatProcessor formatProcessor = new FormatProcessorXML();
        formatProcessor.formatNode(newElementNode);

        // rename new element
        apply(viewer, trigger, stateMask, start, end, ELEMENT_NAME.length());
      } finally {
        viewer.getDocument().removePosition(start);
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.provisional.format.FormatProcessorXML.formatNode()

      // tell the model that we are about to make a big model change
      fModel.aboutToChangeModel();

      // format selected node
      IStructuredFormatProcessor formatProcessor = new FormatProcessorXML();
      formatProcessor.formatNode(newElement);
    }
    finally {
      // tell the model that we are done with the big model change
      fModel.changedModel();
    }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.provisional.format.FormatProcessorXML.formatNode()

      // tell the model that we are about to make a big model change
      model.aboutToChangeModel();

      // format selected node
      IStructuredFormatProcessor formatProcessor = new FormatProcessorXML();
      formatProcessor.formatNode(newElement);
    }
    finally {
      // tell the model that we are done with the big model change
      model.changedModel();
    }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.provisional.format.FormatProcessorXML.formatNode()

      // Format the new element node
      IStructuredFormatProcessor formatProcessor = new FormatProcessorXML();
      CleanupProcessorXML cleanupProcessor = new CleanupProcessorXML();
      cleanupProcessor.getCleanupPreferences().setCompressEmptyElementTags(true);

      formatProcessor.formatNode(namespaceJndiElement);
      cleanupProcessor.cleanupNode(namespaceJndiElement);

      legacyXmlElement.getParentNode().removeChild(legacyXmlElement);
    }
    finally {
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.