fPatternEditor.getTextWidget().setFocus();
	protected Control createDialogArea(Composite ancestor) {		Composite parent= new Composite(ancestor, SWT.NONE);		GridLayout layout= new GridLayout();		layout.numColumns= 2;		parent.setLayout(layout);		parent.setLayoutData(new GridData(GridData.FILL_BOTH));				createLabel(parent, TemplateMessages.getString("EditTemplateDialog.name")); //$NON-NLS-1$					Composite composite= new Composite(parent, SWT.NONE);		composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));		layout= new GridLayout();				layout.numColumns= 3;		layout.marginWidth= 0;		layout.marginHeight= 0;		composite.setLayout(layout);		fNameText= createText(composite);		fNameText.addModifyListener(new ModifyListener() {			public void modifyText(ModifyEvent e) {				if (fSuppressError && (fNameText.getText().trim().length() != 0))					fSuppressError= false;				updateButtons();			}		});		createLabel(composite, TemplateMessages.getString("EditTemplateDialog.context")); //$NON-NLS-1$				fContextCombo= new Combo(composite, SWT.READ_ONLY);		for (Iterator iterator= fContextTypes.iterator(); iterator.hasNext(); )			fContextCombo.add((String) iterator.next());		fContextCombo.addModifyListener(new ModifyListener() {			public void modifyText(ModifyEvent e) {				String name= fContextCombo.getText();				fProcessor.setContextType(ContextTypeRegistry.getInstance().getContextType(name));							}		});				createLabel(parent, TemplateMessages.getString("EditTemplateDialog.description")); //$NON-NLS-1$				fDescriptionText= createText(parent);		composite= new Composite(parent, SWT.NONE);		composite.setLayoutData(new GridData(GridData.FILL_VERTICAL));		layout= new GridLayout();				layout.marginWidth= 0;		layout.marginHeight= 0;		composite.setLayout(layout);		createLabel(composite, TemplateMessages.getString("EditTemplateDialog.pattern")); //$NON-NLS-1$		fPatternEditor= createEditor(parent);				Label filler= new Label(composite, SWT.NONE);				filler.setLayoutData(new GridData(GridData.FILL_VERTICAL));				fInsertVariableButton= new Button(composite, SWT.NONE);		fInsertVariableButton.setLayoutData(getButtonGridData(fInsertVariableButton));		fInsertVariableButton.setText(TemplateMessages.getString("EditTemplateDialog.insert.variable")); //$NON-NLS-1$		fInsertVariableButton.addSelectionListener(new SelectionListener() {			public void widgetSelected(SelectionEvent e) {				fPatternEditor.doOperation(ISourceViewer.CONTENTASSIST_PROPOSALS);						}			public void widgetDefaultSelected(SelectionEvent e) {}		});		fNameText.setText(fTemplate.getName());		fDescriptionText.setText(fTemplate.getDescription());		fContextCombo.select(getIndex(fTemplate.getContextTypeName()));		initializeActions();		return composite;	}