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;
}
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);
}
Aggregations