Bug 94777 new project wizard: remove button enablement
I20050509-2000 (M7 test pass) new project wizard, 2nd page, projects dependencies tab: - the 'Remove' button is always enabled, even when the selection is on a access rule definition. Pressing it has no effect. It should only be enabled if the selection exclusively containes projects.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ProjectsWorkbookPage.java
}
	protected void projectPageKeyPressed(TreeListDialogField field, KeyEvent event) {
		if (field == fProjectsList) {
			if (event.character == SWT.DEL && event.stateMask == 0) {
				List selection= field.getSelectedElements();
				if (canRemove(selection)) {
					removeEntry();
				}
			}
		}	
	}
	
	private void projectPageDialogFieldChanged(DialogField field) {
		if (fCurrJProject != null) {
			
			updateClasspathList();
		}
	}
	
	private void projectPageSelectionChanged(DialogField field) {
		List selElements= fProjectsList.getSelectedElements();
		fProjectsList.enableButton(IDX_EDIT, canEdit(selElements));
		fProjectsList.enableButton(IDX_REMOVE, canRemove(selElements));
		
		boolean noAttributes= !hasAttributes(selElements);
		fProjectsList.enableButton(IDX_ADDPROJECT, noAttributes);
	}
	
}