use of org.eclipse.wst.dtd.core.internal.DTDNode in project webtools.sourceediting by eclipse.
the class AddCommentAction method run.
public void run() {
DTDNode selectedNode = getFirstNodeSelected();
// $NON-NLS-1$
getModel().getDTDFile().createComment(selectedNode, "NewComment", true);
}
use of org.eclipse.wst.dtd.core.internal.DTDNode in project webtools.sourceediting by eclipse.
the class AddParameterEntityReferenceAction method run.
public void run() {
DTDFile dtdFile = getModel().getDTDFile();
String extEntity = getFirstExternalParameterEntity(dtdFile);
DTDNode selectedNode = getFirstNodeSelected();
if (extEntity != null) {
dtdFile.createParameterEntityReference(selectedNode, extEntity, true);
} else {
// $NON-NLS-1$
dtdFile.createParameterEntityReference(selectedNode, "%NewEntityReference;", true);
}
}
Aggregations