protected void endRecording() { if (domNode != null) domNode.getModel().endRecording(this); }
public void endRecording() { DocumentImpl doc = getDocument(); doc.getModel().endRecording(this); }
/** * if preExecute() return true, then this method will always be called even * preExecute()/doExecute() and postExecute() fail. */ protected final void postExecute() { getModel().changedModel(); getModel().endRecording(this); setSelection(); }
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); } }
DOMUtil.insertNode(insertPosition, originalNode); } finally { getModel().endRecording(this);
doc.getModel().endRecording(this);
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); }
.convertFromDesignSelectionToTextSelection(sel); if (textSel != null) { getModel().endRecording(this, textSel.getOffset(), textSel.getLength()); } else { getModel().endRecording(this); getModel().endRecording(this);
doc.getModel().endRecording(this); doc.getModel().endRecording(this); doc.getModel().endRecording(this);
protected void doExecute() { getOriginalElement().getModel().beginRecording(this); try { if (_styleProperties != null) { IDOMElement original = this.getOriginalElement(); DOMStyleUtil.insertStyle(original, _styleProperties); } else if (_context != null) { ICSSStyleDeclaration styleDeclaration = (ICSSStyleDeclaration) ((ElementCSSInlineStyle) getOriginalElement()) .getStyle(); if (styleDeclaration == null) { getOriginalElement().setAttribute(IJSFConstants.ATTR_STYLE, ""); //$NON-NLS-1$ styleDeclaration = (ICSSStyleDeclaration) ((ElementCSSInlineStyle) getOriginalElement()) .getStyle(); } _context.applyModified(styleDeclaration); } } finally { getOriginalElement().getModel().endRecording(this); } } }