Bug 4358 Template - steals closing bracket
Steps to reproduce - press new - enter name for - enter description for(collection, type, var) - iterate over collection - enter pattern for (Iterator iter= ${0}.iterator; iter.hasNext(); ) { ${1} ${2}= (${1})iter.next(); ${cursor} - press return several times - position cursor after ${cursor} - press enter - press } - press OK - reopen dialog ==> observe: closing bracket } is missing.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
layout.marginWidth= 0;
		layout.marginHeight= 0;
		composite.setLayout(layout);
		fNameText= createText(composite);
		fNameText.addModifyListener(new ModifyListener() {
			public void modifyText(ModifyEvent e) {
				if (fCurrent == null)
					return;
				fCurrent.setName(fNameText.getText());				
				fTableViewer.refresh(fCurrent);
				updateButtons();
			}
		});
		createLabel(composite, TemplateMessages.getString("TemplatePreferencePage.context")); 		
		fContextCombo= new Combo(composite, SWT.READ_ONLY);
		fContextCombo.setItems(new String[] {"java", "javadoc"}); 
		fContextCombo.addModifyListener(new ModifyListener() {
			public void modifyText(ModifyEvent e) {
				if (fCurrent == null)
					return;
				fCurrent.setContext(fContextCombo.getText());
				fTableViewer.refresh(fCurrent);
			}
		});
		
		createLabel(fEditor, TemplateMessages.getString("TemplatePreferencePage.description")); 		
		fDescriptionText= createText(fEditor);
		fDescriptionText.addModifyListener(new ModifyListener() {
			public void modifyText(ModifyEvent e) {
				if (fCurrent == null)