public IStructuredModel newModel() { return new DOMModelImpl(); }
/** */ private XMLModelParser getModelParser() { if (this.parser == null) { this.parser = createModelParser(); } return this.parser; }
/** */ private XMLModelUpdater getModelUpdater() { if (this.updater == null) { this.updater = createModelUpdater(); } return this.updater; }
/** */ protected void startTagChanged(Element element) { if (element == null) return; if (getActiveParser() == null) { XMLModelUpdater updater = getModelUpdater(); setActive(updater); updater.initialize(); updater.changeStartTag(element); setActive(null); } getModelNotifier().startTagChanged(element); }
if (isModelChangeStateOnVergeOfEnding()) { endLock(); getModelNotifier().endChanging(); handleRefresh();
/** * nameChanged method * * @param node * org.w3c.dom.Node */ protected void nameChanged(Node node) { if (node == null) return; if (getActiveParser() == null) { XMLModelUpdater updater = getModelUpdater(); setActive(updater); updater.initialize(); updater.changeName(node); setActive(null); } // notification is already sent }
/** */ protected void notifyDocumentTypeChanged() { if (this.document == null) return; IDOMModel model = this.document.getModel(); if (model == null) return; ((DOMModelImpl) model).documentTypeChanged(); }
/** * notifyValueChanged method */ public void notifyEndTagChanged() { DocumentImpl document = (DocumentImpl) getContainerDocument(); if (document == null) return; DOMModelImpl model = (DOMModelImpl) document.getModel(); if (model == null) return; model.endTagChanged(this); }
protected void notifyEditableChanged() { DocumentImpl document = (DocumentImpl) getContainerDocument(); if (document == null) return; DOMModelImpl model = (DOMModelImpl) document.getModel(); if (model == null) return; model.editableChanged(this); }
/** * notifyAttrReplaced method * * @param newAttr * org.w3c.dom.Attr * @param oldAttr * org.w3c.dom.Attr */ protected void notifyAttrReplaced(Attr newAttr, Attr oldAttr) { DocumentImpl document = (DocumentImpl) getContainerDocument(); if (document == null) return; DOMModelImpl model = (DOMModelImpl) document.getModel(); if (model == null) return; model.attrReplaced(this, newAttr, oldAttr); }
/** * notifyChildReplaced method * * @param newChild * org.w3c.dom.Node * @param oldChild * org.w3c.dom.Node */ protected void notifyChildReplaced(Node newChild, Node oldChild) { DocumentImpl document = (DocumentImpl) getContainerDocument(); if (document == null) return; syncChildEditableState(newChild); DOMModelImpl model = (DOMModelImpl) document.getModel(); if (model == null) return; model.childReplaced(this, newChild, oldChild); }
/** */ protected void endTagChanged(Element element) { if (element == null) return; if (getActiveParser() == null) { XMLModelUpdater updater = getModelUpdater(); setActive(updater); updater.initialize(); updater.changeEndTag(element); setActive(null); } getModelNotifier().endTagChanged(element); }
/** * valueChanged method * * @param node * org.w3c.dom.Node */ protected void valueChanged(Node node) { if (node == null) return; if (getActiveParser() == null) { XMLModelUpdater updater = getModelUpdater(); setActive(updater); updater.initialize(); updater.changeValue(node); setActive(null); } getModelNotifier().valueChanged(node); }
/** * childReplaced method * * @param parentNode * org.w3c.dom.Node * @param newChild * org.w3c.dom.Node * @param oldChild * org.w3c.dom.Node */ protected void childReplaced(Node parentNode, Node newChild, Node oldChild) { if (parentNode == null) return; if (getActiveParser() == null) { XMLModelUpdater updater = getModelUpdater(); setActive(updater); updater.initialize(); updater.replaceChild(parentNode, newChild, oldChild); setActive(null); } getModelNotifier().childReplaced(parentNode, newChild, oldChild); }
/** * attrReplaced method * * @param element * org.w3c.dom.Element * @param newAttr * org.w3c.dom.Attr * @param oldAttr * org.w3c.dom.Attr */ protected void attrReplaced(Element element, Attr newAttr, Attr oldAttr) { if (element == null) return; if (getActiveParser() == null) { XMLModelUpdater updater = getModelUpdater(); setActive(updater); updater.initialize(); updater.replaceAttr(element, newAttr, oldAttr); setActive(null); } getModelNotifier().attrReplaced(element, newAttr, oldAttr); }