Bug 3975 New Class Wizard does not detect package if a resource is selected (1GFCU9G)
1. JUnit setup 2. Select ok.gif in junit.swingui 3. Open New Class wizard ==> package is default instead of junit.swingui (as if a class would have been selected) NOTES:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java
}
	
	protected void setFocusOnContainer() {
		fContainerDialogField.setFocus();
	}
	
	private class ContainerFieldAdapter implements IStringButtonAdapter, IDialogFieldListener {
		
		public void changeControlPressed(DialogField field) {
			containerChangeControlPressed(field);
		}
		
		
		public void dialogFieldChanged(DialogField field) {
			containerDialogFieldChanged(field);
		}
	}
	
	private void containerChangeControlPressed(DialogField field) {
		
		IPackageFragmentRoot root= getPackageFragmentRoot();
		root= chooseSourceContainer(root);
		if (root != null) {
			setPackageFragmentRoot(root, true);
		}
	}
	
	private void containerDialogFieldChanged(DialogField field) {
		if (field == fContainerDialogField) {
			fContainerStatus= containerChanged();