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
fDescriptionText.addModifyListener(new ModifyListener() {
			public void modifyText(ModifyEvent e) {
				if (fCurrent == null)
					return;
					
				fCurrent.setDescription(fDescriptionText.getText());
				fTableViewer.refresh(fCurrent);
			}
		});
		Label patternLabel= createLabel(fEditor, TemplateMessages.getString("TemplatePreferencePage.pattern")); 
		patternLabel.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
		fPatternEditor= createEditor(fEditor);
		StyledText text= fPatternEditor.getTextWidget();
		text.addModifyListener(new ModifyListener() {
			public void modifyText(ModifyEvent e) {
				if (fCurrent == null)
					return;
				
				fCurrent.setPattern(fPatternEditor.getTextWidget().getText());				
			}
		});
		Composite secondPage= new Composite(folder, SWT.NONE);
		layout= new GridLayout();
		layout.numColumns= 1;
		secondPage.setLayout(layout);		
		item= new TabItem(folder, SWT.NONE);
		item.setText(TemplateMessages.getString("TemplatePreferencePage.tab.options")); 
		item.setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_TEMPLATE));
		item.setControl(secondPage);