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
TabFolder folder= new TabFolder(parent, SWT.NONE);
		folder.setLayout(new TabFolderLayout());	
		folder.setLayoutData(new GridData(GridData.FILL_BOTH));
		Composite firstPage= new Composite(folder, SWT.NONE);
		layout= new GridLayout();
		layout.numColumns= 2;
		firstPage.setLayout(layout);		
		
		TabItem item= new TabItem(folder, SWT.NONE);
		item.setText(TemplateMessages.getString("TemplatePreferencePage.tab.edit")); 
		item.setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_TEMPLATE));
		item.setControl(firstPage);
		
		fTableViewer= new CheckboxTableViewer(firstPage, SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION);
		Table table= fTableViewer.getTable();
		
		GridData data= new GridData(GridData.FILL_BOTH);
		data.widthHint= convertWidthInCharsToPixels(80);
		data.heightHint= convertHeightInCharsToPixels(10);
		fTableViewer.getTable().setLayoutData(data);
				
		table.setHeaderVisible(true);
		table.setLinesVisible(true);		
		TableLayout tableLayout= new TableLayout();
		table.setLayout(tableLayout);
		
		TableColumn column1= table.getColumn(0);
		column1.setText(TemplateMessages.getString("TemplatePreferencePage.column.name")); 
	
		TableColumn column2= new TableColumn(table, SWT.NULL);