Bug 39264 Override method dialog: Selection get's lost when toggling tree/flat mode
20030624 1. Open the setter/getter dialog, enable the tree mode 2. select some getters and setters 3. toggle to the flat list: Elements still selected 4. toggle to the tree mode: Tree collapsed (Should remember the old state) 5. Open the tree: No nodes checked, description still stays '2 of 5 selected'
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/OverrideMethodDialog.java
private IDialogSettings fSettings;
	
		/**
		 * Constructor for OverrideMethodContentProvider.
		 */
		public OverrideMethodContentProvider() {
			IDialogSettings dialogSettings= JavaPlugin.getDefault().getDialogSettings();
			fSettings= dialogSettings.getSection(SETTINGS_SECTION);
			if (fSettings == null) {
				fSettings= dialogSettings.addNewSection(SETTINGS_SECTION);
				fSettings.put(SETTINGS_SHOWTYPES, true);
			}
			fShowTypes= fSettings.getBoolean(SETTINGS_SHOWTYPES);
		}
		
		public void init(IMethod[] methods, IType[] types) {
			fMethods= methods;
			fTypes= types;
		}		
				
		/*
		 * @see ITreeContentProvider#getChildren(Object)
		 */
		public Object[] getChildren(Object parentElement) {
			if (parentElement instanceof IType) {
				ArrayList result= new ArrayList(fMethods.length);
				for (int i= 0; i < fMethods.length; i++) {
					if (fMethods[i].getDeclaringType().equals(parentElement)) {
						result.add(fMethods[i]);
					}