use of org.eclipse.wst.jsdt.web.core.javascript.DocumentChangeListenerToTextEdit in project webtools.sourceediting by eclipse.
the class AddJavaDocStubOperation method getJavaDocumentFromNode.
protected IDocument getJavaDocumentFromNode() {
if (copy == null) {
IJsTranslation tran = node.getTranslation();
copy = new Document(tran.getJsText());
textEditListener = new DocumentChangeListenerToTextEdit();
copy.addDocumentListener(textEditListener);
}
return copy;
}
Aggregations