Bug 84269 [implementation] Leak: Java Editor preference page: listener in SmartTypingConfigurationBlock
N20050202-0010 The SmartTypingConfigurationBlock adds a property change listener to the JavaPlugin combined preference store. This listener is not removed --> results in leakage for each open close of the Java preference pages. Test case: Window>Preferences>Java>Editor For each open close the state associated with the SmartTypingConfigurationBlock is leaked.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SmartTypingConfigurationBlock.java
composite= createSubsection(control, manager, PreferencesMessages.getString("SmartTypingConfigurationBlock.autoclose.title")); 
		addAutoclosingSection(composite);
		
		composite= createSubsection(control, manager, PreferencesMessages.getString("SmartTypingConfigurationBlock.automove.title")); 
		addAutopositionSection(composite);
		
		composite= createSubsection(control, manager, PreferencesMessages.getString("SmartTypingConfigurationBlock.tabs.title")); 
		addTabSection(composite);
		composite= createSubsection(control, manager, PreferencesMessages.getString("SmartTypingConfigurationBlock.pasting.title")); 
		addPasteSection(composite);
		
		composite= createSubsection(control, manager, PreferencesMessages.getString("SmartTypingConfigurationBlock.strings.title")); 
		addStringsSection(composite);
		
		composite= createSubsection(control, manager, PreferencesMessages.getString("SmartTypingConfigurationBlock.other.title")); 
		addOthersSection(composite);
		
		return control;
	}
	private Composite createSubsection(Composite parent, SectionManager manager, String label) {
		if (manager != null) {
			return manager.createSection(label);
		} else {
			Group group= new Group(parent, SWT.SHADOW_NONE);
			group.setText(label);
			GridData data= new GridData(SWT.FILL, SWT.CENTER, true, false);
			group.setLayoutData(data);
			return group;
		}