Bug 65252 Restore Defaults in java hover preferences leads to wrong UI state
Preferences > Java > Editor > Hovers. The 'Restore Defaults' button restores the checked state of the checkboxes in the key modifiers table wrongly. The values of the preferences are correctly restored behind the scenes, but the checkboxes are always restored to the state they were when the dialog was opened. Steps in 3.0 RC1: - new workspace - Preferences > Java > Editor > Hovers - uncheck 'Combined Hover' - press OK - Preferences > Java > Editor > Hovers - press 'Restore Defaults' => expected: 'Combined Hover' is checked => was: 'Combined Hover' stays unchecked (but is logically checked, which can be seen by the error message that comes up when checking 'Variable Values'
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorHoverConfigurationBlock.java
fHoverConfigs[i].fStateMask= JavaEditorTextHoverDescriptor.computeStateMask(modifiers);
		
		
		fHoverTableViewer.refresh(getContributedHovers()[i]);
		
		updateStatus(fHoverConfigs[i]);
	}
	private void handleHoverListSelection() {	
		int i= fHoverTable.getSelectionIndex();
		
		if (i == -1) {
			if (fHoverTable.getSelectionCount() == 0)
				fModifierEditor.setEnabled(false);
			return;
		}
		
		boolean enabled= fHoverConfigs[i].fIsEnabled;
		fModifierEditor.setEnabled(enabled);
		fModifierEditor.setText(fHoverConfigs[i].fModifierString);
		String description= getContributedHovers()[i].getDescription();
		if (description == null)
			description= ""; 
		fDescription.setText(description);
	}
	IStatus getStatus() {
		if (fStatus == null)
			fStatus= new StatusInfo();
		return fStatus;
	}
	private void updateStatus(HoverConfig hoverConfig) {