boolean shouldShowDebug =
Window.Location.getParameter("debug") != null;
menu.setVisible(shouldShowDebug);
menu.addItem("OOPHM", navigateTaskOophm(Window.Location.getHref(), false));
menu.addItem("Show log", new Task() {
@Override public void execute() {
Walkaround.ensureDomLog();
}
});
menu.addItem("log level 'debug'", navigateTask(
Window.Location.getHref() + "&ll=debug", false));
menu.addItem("Frame: " + Window.Location.getHref(),
navigateTask(Window.Location.getHref(), true));
menu.addItem("Throw Exception", new Task() {
@Override public void execute() {
throw new RuntimeException("TEST EXCEPTION", a());
}
private Exception a() {