fExclusionPatternList.selectFirstElement();
	public ExclusionPatternDialog(Shell parent, CPListElement entryToEdit) {		super(parent);		fCurrElement= entryToEdit;		setTitle(NewWizardMessages.getString("ExclusionPatternDialog.title"));		String label= NewWizardMessages.getFormattedString("ExclusionPatternDialog.pattern.label", entryToEdit.getPath().makeRelative().toString());				String[] buttonLabels= new String[] {			/* IDX_ADD */ NewWizardMessages.getString("ExclusionPatternDialog.pattern.add"),			/* IDX_EDIT */ NewWizardMessages.getString("ExclusionPatternDialog.pattern.edit"),			null,			/* IDX_REMOVE */ NewWizardMessages.getString("ExclusionPatternDialog.pattern.remove")		};		ExclusionPatternAdapter adapter= new ExclusionPatternAdapter();		fExclusionPatternList= new ListDialogField(adapter, buttonLabels, new ExclusionPatternLabelProvider());		fExclusionPatternList.setDialogFieldListener(adapter);		fExclusionPatternList.setLabelText(label);		fExclusionPatternList.setRemoveButtonIndex(IDX_REMOVE);		fExclusionPatternList.enableButton(IDX_EDIT, false);			fCurrProject= entryToEdit.getJavaProject().getProject();				IPath[] pattern= (IPath[]) entryToEdit.getAttribute(CPListElement.EXCLUSION);				ArrayList elements= new ArrayList(pattern.length);		for (int i= 0; i < pattern.length; i++) {			elements.add(pattern[i].toString());		}		fExclusionPatternList.setElements(elements);	}