Bug 63062 [templates] "Restore Removed" button on template pref page not updated as expected
Remove a template from the Ant editor templates or the Java editor templates. Click the Restore Removed After clicking, I would expect the button to return to the disabled state.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java
if (w == fNameText) {
			String name= fNameText.getText();
			if (fSuppressError && (name.trim().length() != 0))
				fSuppressError= false;
			fTemplate.setName(name);
			updateButtons();			
		} else if (w == fContextCombo) {
			String name= fContextCombo.getText();
			String contextId= getContextId(name);
			fTemplate.setContextTypeId(contextId);
			fTemplateProcessor.setContextType(fContextTypeRegistry.getContextType(contextId));
		} else if (w == fDescriptionText) {
			String desc= fDescriptionText.getText();
			fTemplate.setDescription(desc);
		}	
	}
	
	private String getContextId(String name) {
		if (name == null)
			return name;
		
		for (int i= 0; i < fContextTypes.length; i++) {
			if (name.equals(fContextTypes[i][1])) {
				return fContextTypes[i][0];	
			}
		}
		return name;
	}
	protected void doSourceChanged(IDocument document) {
		String text= document.get();