/** * the default implementation can just refer to the owning document */ public IDOMModel getModel() { if (this.ownerDocument == null) return null; return this.ownerDocument.getModel(); }
public void endRecording() { DocumentImpl doc = getDocument(); doc.getModel().endRecording(this); }
/** */ public void notifyStartTagChanged() { DocumentImpl document = (DocumentImpl) getContainerDocument(); if (document == null) return; DOMModelImpl model = (DOMModelImpl) document.getModel(); if (model == null) return; model.startTagChanged(this); }
/** * 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); }
/** * notifyValueChanged method */ protected void notifyNameChanged() { if (this.ownerElement == null) return; DocumentImpl document = (DocumentImpl) this.ownerElement.getContainerDocument(); if (document == null) return; DOMModelImpl model = (DOMModelImpl) document.getModel(); if (model == null) return; model.nameChanged(this); }
/** * notifyValueChanged method */ protected void notifyValueChanged() { if (this.ownerElement == null) return; DocumentImpl document = (DocumentImpl) this.ownerElement.getContainerDocument(); if (document == null) return; DOMModelImpl model = (DOMModelImpl) document.getModel(); if (model == null) return; model.valueChanged(this); }
public void beginRecording(String description) { getDocument().getModel().beginRecording(this, description); }
/** * 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); }
public void run() { DocumentImpl doc = (DocumentImpl) fSelectedComponent.getElement() .getOwnerDocument(); doc.getModel().beginRecording(this, getText()); MakeLocalElementGlobalCommand command = new MakeLocalElementGlobalCommand( fSelectedComponent); command.run(); doc.getModel().endRecording(this); }
public void run() { DocumentImpl doc = (DocumentImpl) component.getElement().getOwnerDocument(); doc.getModel().beginRecording( this, RefactoringMessages .getString("_UI_ACTION_MAKE_ANONYMOUS_TYPE_GLOBAL")); MakeAnonymousTypeGlobalCommand command = new MakeAnonymousTypeGlobalCommand( component, name); command.run(); doc.getModel().endRecording(this); } }
/** * notifyValueChanged method */ protected void notifyValueChanged() { DocumentImpl document = (DocumentImpl) getContainerDocument(); if (document == null) return; syncDataEditableState(); DOMModelImpl model = (DOMModelImpl) document.getModel(); if (model == null) return; model.valueChanged(this); }
/** * 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); }
public void run(){ if(fSelectedComponent == null){ return; } if(fSelectedComponent.getSchema() == null){ getSchema().updateElement(true); } DocumentImpl doc = (DocumentImpl) fSelectedComponent.getElement().getOwnerDocument(); doc.getModel().beginRecording( this, RefactoringWizardMessages.MakeAnonymousTypeGlobalAction_text); MakeAnonymousTypeGlobalCommand command = new MakeAnonymousTypeGlobalCommand( fSelectedComponent, getNewDefaultName()); command.run(); doc.getModel().endRecording(this); }
doc.getModel().beginRecording(this, XSDEditorPlugin.getXSDString("_UI_NAMESPACE_CHANGE")); doc.getModel().endRecording(this); doc.getModel().beginRecording(this, XSDEditorPlugin.getXSDString("_UI_SCHEMA_ELEMENTFORMDEFAULT_CHANGE")); if (elementFormQualified.equals(XSDForm.QUALIFIED_LITERAL.getName())) doc.getModel().endRecording(this); doc.getModel().beginRecording(this, XSDEditorPlugin.getXSDString("_UI_SCHEMA_ATTRIBUTEFORMDEFAULT_CHANGE")); if (attributeFormQualified.equals(XSDForm.QUALIFIED_LITERAL.getName())) doc.getModel().endRecording(this);