package org.odlabs.wiquery.ui.tooltip;

import org.apache.wicket.markup.head.HeaderItem;
import org.apache.wicket.request.resource.JavaScriptResourceReference;
import org.odlabs.wiquery.core.resources.JavaScriptHeaderItems;
import org.odlabs.wiquery.ui.core.CoreUIJavaScriptResourceReference;
import org.odlabs.wiquery.ui.position.PositionJavaScriptResourceReference;
import org.odlabs.wiquery.ui.widget.WidgetJavaScriptResourceReference;

public class TooltipJavaScriptResourceReference extends JavaScriptResourceReference
{
	private static final long serialVersionUID = -4771815414204892357L;

	/**
	 * Singleton instance.
	 */
	private static TooltipJavaScriptResourceReference instance =
		new TooltipJavaScriptResourceReference();

	/**
	 * Builds a new instance of {@link TooltipJavaScriptResourceReference}.
	 */
	private TooltipJavaScriptResourceReference()
	{
		super(TooltipJavaScriptResourceReference.class, "jquery.ui.tooltip.js");
	}

	/**
	 * Returns the {@link TooltipJavaScriptResourceReference} instance.
	 */
	public static TooltipJavaScriptResourceReference get()
	{
		return instance;
	}

	@Override
	public Iterable< ? extends HeaderItem> getDependencies()
	{
		return JavaScriptHeaderItems.forReferences(CoreUIJavaScriptResourceReference.get(),
			WidgetJavaScriptResourceReference.get(), PositionJavaScriptResourceReference.get());
	}
}

@@ -449,16 +449,22 @@
 %0Apublic 
+final 
 class To
@@ -653,32 +653,38 @@
 %09private static 
+final 
 TooltipJavaScrip
@@ -702,24 +702,24 @@
 ference 
-instance
+INSTANCE
  =%0D%0A%09%09ne
@@ -1132,24 +1132,24 @@
 %09return 
-instance
+INSTANCE
 ;%0D%0A%09%7D%0D%0A%0D

Apply the final treatment to the new TooltipJavaScriptResourceReference.