Bug 89808 Wording on the acess rules pages
20050329 - we should use 'Forbidden' instead of 'Non-accessible' to be consistent with jdt.core and the compiler settings - the text on the 'new access rules' should give examples for patterns
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/TypeRestrictionEntryDialog.java
import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField;
import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener;
import org.eclipse.jdt.internal.ui.wizards.dialogfields.StringDialogField;
public class TypeRestrictionEntryDialog extends StatusDialog {
	
	private StringDialogField fPatternDialog;
	private StatusInfo fPatternStatus;
	
	private String fPattern;
	private ComboDialogField fRuleKindCombo;
	private int[] fRuleKinds;
		
	public TypeRestrictionEntryDialog(Shell parent, IAccessRule ruleToEdit, CPListElement entryToEdit) {
		super(parent);
		setShellStyle(getShellStyle() | SWT.RESIZE);
		
		String title, message;
		if (ruleToEdit == null) {
			title= NewWizardMessages.getString("TypeRestrictionEntryDialog.add.title"); 
		} else {
			title= NewWizardMessages.getString("TypeRestrictionEntryDialog.edit.title"); 
		}
		message= NewWizardMessages.getFormattedString("TypeRestrictionEntryDialog.pattern.label", entryToEdit.getPath().makeRelative().toString());  
		setTitle(title);
		
		fPatternStatus= new StatusInfo();
		
		TypeRulesAdapter adapter= new TypeRulesAdapter();
		fPatternDialog= new StringDialogField();
		fPatternDialog.setLabelText(message);