@Override public void run() { enableSanityChecking(true); firePropertyChange(PROP_DIRTY); restoreSelection(); handleElementContentReplaced(); } };
@Override public void elementContentReplaced(Object element) { if (element != null && element.equals(getEditorInput())) { Runnable r = () -> { enableSanityChecking(true); firePropertyChange(PROP_DIRTY); restoreSelection(); handleElementContentReplaced(); }; execute(r, false); } }
d.getDocument(getEditorInput()).set(previousContent); updateStatusField(ITextEditorActionConstants.STATUS_CATEGORY_ELEMENT_STATE); restoreSelection(); }; execute(r2, doValidationAsync); } else restoreSelection();
execute(r2, doValidationAsync); } else restoreSelection();