/** * @see org.apache.wicket.jmx.DebugSettingsMBean#isDevelopmentUtilitiesEnabled() */ @Override public boolean isDevelopmentUtilitiesEnabled() { return application.getDebugSettings().isDevelopmentUtilitiesEnabled(); } }
@Override public boolean isVisible() { return getApplication().getDebugSettings().isDevelopmentUtilitiesEnabled(); }
public static void initDebugBar(Application application) { if (application.getDebugSettings().isDevelopmentUtilitiesEnabled()) { DebugBar.registerContributor(WicketConsoleDebugPanel.DEBUG_BAR_CONTRIB); } }
@Override public boolean isVisible() { return getApplication().getDebugSettings().isDevelopmentUtilitiesEnabled(); }
/** * Verifies that development utilities are enabled. */ public static void check() { if (Application.get().getDebugSettings().isDevelopmentUtilitiesEnabled() == false) { throw new DevelopmentUtilitiesNotEnabledException(); } } }
/** * Verifies that development utilities are enabled. */ public static void check() { if (Application.get().getDebugSettings().isDevelopmentUtilitiesEnabled() == false) { throw new DevelopmentUtilitiesNotEnabledException(); } } }
/** {@inheritDoc} */ @Override public void init(final Application application) { if (application.getDebugSettings().isDevelopmentUtilitiesEnabled()) { // register standard debug contributors DebugBar.registerContributor(VersionDebugContributor.DEBUG_BAR_CONTRIB, application); DebugBar.registerContributor(InspectorDebugPanel.DEBUG_BAR_CONTRIB, application); DebugBar.registerContributor(SessionSizeDebugPanel.DEBUG_BAR_CONTRIB, application); DebugBar.registerContributor(PageSizeDebugPanel.DEBUG_BAR_CONTRIB, application); } }
/** {@inheritDoc} */ @Override public void init(final Application application) { if (application.getDebugSettings().isDevelopmentUtilitiesEnabled()) { // register standard debug contributors DebugBar.registerContributor(VersionDebugContributor.DEBUG_BAR_CONTRIB, application); DebugBar.registerContributor(InspectorDebugPanel.DEBUG_BAR_CONTRIB, application); DebugBar.registerContributor(SessionSizeDebugPanel.DEBUG_BAR_CONTRIB, application); DebugBar.registerContributor(PageSizeDebugPanel.DEBUG_BAR_CONTRIB, application); } }