Search in sources :

Example 1 with CommentElementAdapter

use of org.eclipse.wst.xml.core.internal.commentelement.CommentElementAdapter in project webtools.sourceediting by eclipse.

the class CommentElementFactory method create.

public Element create(String name, int nodeType) {
    IDOMElement element = (IDOMElement) fDocument.createElement(name);
    if (element == null)
        return null;
    element.setCommentTag(true);
    if (nodeType == IS_EMPTY) {
        element.setEmptyTag(true);
    }
    element.setJSPTag(fJSPTag);
    CommentElementAdapter adapter = new CommentElementAdapter((nodeType == IS_END), fHandler);
    element.addAdapter(adapter);
    return element;
}
Also used : CommentElementAdapter(org.eclipse.wst.xml.core.internal.commentelement.CommentElementAdapter) IDOMElement(org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement)

Example 2 with CommentElementAdapter

use of org.eclipse.wst.xml.core.internal.commentelement.CommentElementAdapter in project webtools.sourceediting by eclipse.

the class CommentElementConfiguration method setupCommentElement.

void setupCommentElement(IDOMElement element) {
    element.setCommentTag(true);
    CommentElementAdapter adapter = new CommentElementAdapter(false, fHandler);
    adapter.setConfiguration(this);
    element.addAdapter(adapter);
}
Also used : CommentElementAdapter(org.eclipse.wst.xml.core.internal.commentelement.CommentElementAdapter)

Aggregations

CommentElementAdapter (org.eclipse.wst.xml.core.internal.commentelement.CommentElementAdapter)2 IDOMElement (org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement)1