Bug 4916 Potential IDE freeze on Template Preference Page
Comments from Adam Kiezun: SEVERE: 1. go to template pref page. 2. select the first one 3. edit the name - empty the field and then put a single space whole IDE freezes (infinite loop?)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
public void handleEvent(Event e) {
				remove();
			}
		});
		
		fEnableAllButton= new Button(buttons, SWT.PUSH);
		fEnableAllButton.setLayoutData(getButtonGridData(fEnableAllButton));
		fEnableAllButton.setText(TemplateMessages.getString("TemplatePreferencePage.enable.all")); 
		fEnableAllButton.addListener(SWT.Selection, new Listener() {
			public void handleEvent(Event e) {
				enableAll(true);
			}
		});
		fDisableAllButton= new Button(buttons, SWT.PUSH);
		fDisableAllButton.setLayoutData(getButtonGridData(fDisableAllButton));
		fDisableAllButton.setText(TemplateMessages.getString("TemplatePreferencePage.disable.all")); 
		fDisableAllButton.addListener(SWT.Selection, new Listener() {
			public void handleEvent(Event e) {
				enableAll(false);
			}
		});
		fEditor= new Group(firstPage, SWT.NULL);
		fEditor.setText(TemplateMessages.getString("TemplatePreferencePage.editor")); 
		fEditor.setLayoutData(new GridData(GridData.FILL_BOTH));
		layout= new GridLayout();
		layout.numColumns= 2;
		fEditor.setLayout(layout);
		createLabel(fEditor, TemplateMessages.getString("TemplatePreferencePage.name")); 
		
		Composite composite= new Composite(fEditor, SWT.NONE);