Package org.eclipse.wb.internal.core.utils.xml

Examples of org.eclipse.wb.internal.core.utils.xml.DocumentTextNode


    DocumentTextNode textNode = getTextNode();
    return textNode.getText();
  }

  public void setName(String name) {
    DocumentTextNode textNode = getTextNode();
    if (textNode != null) {
      textNode.setText(name);
    } else {
      textNode = new DocumentTextNode(false);
      textNode.setText(name);
      setTextNode(textNode);
    }
  }
View Full Code Here


   * Creates {@link ContextDescription} for "<ui:style>" element.
   */
  private void createLocalContextDescription() throws Exception {
    DocumentElement styleElement = getLocalStyleElement();
    if (styleElement != null) {
      DocumentTextNode textNode = styleElement.getTextNode();
      String cssSource = textNode != null ? textNode.getRawText() : "";
      IDocument cssDocument = new Document(cssSource);
      CssEditContext cssContext = new CssEditContext(cssDocument);
      ContextDescription contextDescription =
          new UiBinderLocalContextDescription(m_context, styleElement, cssContext);
      m_contextDescriptions.add(contextDescription);
View Full Code Here

    @Override
    public void commit() throws Exception {
      getCommitListener().aboutToCommit();
      try {
        DocumentTextNode textNode = m_styleElement.getTextNode();
        String cssSource = getContext().getText();
        textNode.setText(cssSource);
      } finally {
        getCommitListener().doneCommit();
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.utils.xml.DocumentTextNode

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.