Author: mgrigorov
Date: Wed Dec 22 20:15:21 2010
New Revision: 1052056
URL: http://svn.apache.org/viewvc?rev=1052056&view=rev
Log:
Clean up devutils.
Fix a typo.
Remove commented and unused code.
Modified:
wicket/trunk/wicket-devutils/src/main/java/org/apache/wicket/devutils/DevelopmentUtilitiesNotEnabledException.java
wicket/trunk/wicket-devutils/src/main/java/org/apache/wicket/devutils/debugbar/DebugBar.java
Modified:
wicket/trunk/wicket-devutils/src/main/java/org/apache/wicket/devutils/DevelopmentUtilitiesNotEnabledException.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/wicket-devutils/src/main/java/org/apache/wicket/devutils/DevelopmentUtilitiesNotEnabledException.java?rev=1052056&r1=1052055&r2=1052056&view=diff
==============================================================================
---
wicket/trunk/wicket-devutils/src/main/java/org/apache/wicket/devutils/DevelopmentUtilitiesNotEnabledException.java
(original)
+++
wicket/trunk/wicket-devutils/src/main/java/org/apache/wicket/devutils/DevelopmentUtilitiesNotEnabledException.java
Wed Dec 22 20:15:21 2010
@@ -20,7 +20,7 @@ import org.apache.wicket.Application;
import org.apache.wicket.WicketRuntimeException;
/**
- * Just an exception that can be thrown if aa development utility is invoked,
+ * Just an exception that can be thrown if a development utility is invoked,
* constructed, etc, and the setting in the application is not enabled.
*
* Includes a static method that also does this check so that it is not carbon
Modified:
wicket/trunk/wicket-devutils/src/main/java/org/apache/wicket/devutils/debugbar/DebugBar.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/wicket-devutils/src/main/java/org/apache/wicket/devutils/debugbar/DebugBar.java?rev=1052056&r1=1052055&r2=1052056&view=diff
==============================================================================
---
wicket/trunk/wicket-devutils/src/main/java/org/apache/wicket/devutils/debugbar/DebugBar.java
(original)
+++
wicket/trunk/wicket-devutils/src/main/java/org/apache/wicket/devutils/debugbar/DebugBar.java
Wed Dec 22 20:15:21 2010
@@ -86,16 +86,6 @@ public class DebugBar extends DevUtilsPa
add(new Image("removeImg", new
PackageResourceReference(DebugBar.class, "remove.png")));
List<IDebugBarContributor> contributors = getContributors();
- // no longer necessary, registered from DebugBarInitializer
- // if (contributors.isEmpty())
- // {
- // we do this so that if you have multiple applications running in
- // the same container,
- // each ends up registering its' own contributors (wicket-examples
- // for example)
- // registerStandardContributors(Application.get());
- // contributors = getContributors();
- // }
add(new ListView<IDebugBarContributor>("contributors", contributors)
{
private static final long serialVersionUID = 1L;
@@ -176,14 +166,4 @@ public class DebugBar extends DevUtilsPa
return list == null ? new ArrayList<IDebugBarContributor>() : list;
}
-
- /**
- * Called from {...@link DebugBarInitializer}
- */
- static void registerStandardContributors(Application application)
- {
- registerContributor(VersionDebugContributor.DEBUG_BAR_CONTRIB,
application);
- registerContributor(InspectorDebugPanel.DEBUG_BAR_CONTRIB,
application);
- registerContributor(SessionSizeDebugPanel.DEBUG_BAR_CONTRIB,
application);
- }
}