Bug 78867 Using new registry API
Following some rework of the registry, please apply this patch to make use of the new method called getNamespace() on IConfigurationElement. This patch will convert most occurrences of: configurationElement.getDeclaringExtension().getNamespace() into configurationElement.getNamespace()
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavaEditorTextHoverDescriptor.java
import org.eclipse.swt.SWT;
import org.eclipse.jface.text.Assert;
import org.eclipse.jdt.ui.PreferenceConstants;
import org.eclipse.jdt.ui.text.java.hover.IJavaEditorTextHover;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.javaeditor.EditorUtility;
import org.osgi.framework.Bundle;
/**
 * Describes a Java editor text hover.
 * 
 * @since 2.1
 */
public class JavaEditorTextHoverDescriptor implements Comparable {
	private static final String JAVA_EDITOR_TEXT_HOVER_EXTENSION_POINT= "org.eclipse.jdt.ui.javaEditorTextHovers"; 
	private static final String HOVER_TAG= "hover"; 
	private static final String ID_ATTRIBUTE= "id"; 
	private static final String CLASS_ATTRIBUTE= "class"; 
	private static final String LABEL_ATTRIBUTE= "label"; 
	private static final String ACTIVATE_PLUG_IN_ATTRIBUTE= "activate"; 
	private static final String DESCRIPTION_ATTRIBUTE= "description"; 
	public static final String NO_MODIFIER= "0"; 
	public static final String DISABLED_TAG= "!"; 
	public static final String VALUE_SEPARATOR= ";"; 
	private int fStateMask;
	private String fModifierString;
	private boolean fIsEnabled;
	private IConfigurationElement fElement;
	
	
	/**