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 class OverrideFlatTreeAction extends Action {
		private boolean fToggle;
		
		public OverrideFlatTreeAction() {
			super(); 
			setToolTipText(JavaUIMessages.getString("OverrideMethodDialog.groupMethodsByTypes")); 
	
			JavaPluginImages.setLocalImageDescriptors(this, "impl_co.gif"); 
			fToggle= getOverrideContentProvider().isShowTypes();
			setChecked(fToggle);
		}
	
		public void run() {
			fToggle= !fToggle;
			setChecked(fToggle);
			getOverrideContentProvider().setShowTypes(fToggle);			
		}
		
		private OverrideMethodContentProvider getOverrideContentProvider() {
			return (OverrideMethodContentProvider) getContentProvider();
		}
		
	}
	
	private static class OverrideMethodContentProvider implements ITreeContentProvider {