Bug 93430 Access rules - 'Combine rules...' checkbox does not reflect status on required project
Build: I20050426-1700 Scenario: - create new project 'RequiredProject'; - create new project 'DependentProject'; - open the latter's properties; in the 'Java Build Path/Projects' tab, add RequiredProject; - expand the newly created node and select the 'Access rules: (No restrictions)' line; - click 'Edit...'; - check the 'Combine rules...' checkbox; - click 'OK'; notice the 'Access rules: Using rules of child entries' label; - click 'Edit...' again; - the 'Combine...' checkbox should be checked, but it isn't. As a side effect, I would expect the removal of this property to be difficult (else than by recreating the project from scratch).
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/AccessRulesDialog.java
patternList.setDownButtonIndex(IDX_DOWN);
		patternList.enableButton(IDX_EDIT, false);
	
		IAccessRule[] rules= (IAccessRule[]) entryToEdit.getAttribute(CPListElement.ACCESSRULES);
		ArrayList elements= new ArrayList(rules.length);
		for (int i= 0; i < rules.length; i++) {
			elements.add(rules[i]);
		}
		patternList.setElements(elements);
		patternList.selectFirstElement();
		return patternList;
	}
	protected Control createDialogArea(Composite parent) {
		Composite composite= (Composite) super.createDialogArea(parent);
				
		int maxLabelSize= 0;
		GC gc= new GC(composite);
		try {
			maxLabelSize= gc.textExtent(AccessRulesLabelProvider.getResolutionLabel(IAccessRule.K_ACCESSIBLE)).x;
			int len2= gc.textExtent(AccessRulesLabelProvider.getResolutionLabel(IAccessRule.K_DISCOURAGED)).x;
			if (len2 > maxLabelSize) {
				maxLabelSize= len2;
			}
			int len3= gc.textExtent(AccessRulesLabelProvider.getResolutionLabel(IAccessRule.K_NON_ACCESSIBLE)).x;
			if (len3 > maxLabelSize) {
				maxLabelSize= len3;
			}
		} finally {
			gc.dispose();
		}