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
field.enableButton(IDX_EDIT, canEdit(selected));
	}
	
	private boolean canEdit(List selected) {
		return selected.size() == 1;
	}
	
	private void editEntry(ListDialogField field) {
		
		List selElements= field.getSelectedElements();
		if (selElements.size() != 1) {
			return;
		}
		IAccessRule rule= (IAccessRule) selElements.get(0);
		AccessRuleEntryDialog dialog= new AccessRuleEntryDialog(getShell(), rule, fCurrElement);
		if (dialog.open() == Window.OK) {
			field.replaceElement(rule, dialog.getRule());
		}
	}
	private void addEntry(ListDialogField field) {
		AccessRuleEntryDialog dialog= new AccessRuleEntryDialog(getShell(), null, fCurrElement);
		if (dialog.open() == Window.OK) {
			field.addElement(dialog.getRule());
		}
	}	
	
	
		
	
	private class TypeRestrictionAdapter implements IListAdapter, IDialogFieldListener {