switch (event.getKeyChar()) { case 't': showThreadList(out, ST_ALL, "[All threads]"); break; case 'r': showThreadList(out, ST_RUNNING, "[Running threads]"); break; case 'w': showThreadList(out, ST_WAITING, "[Waiting threads]"); break; case 'n': showNextThread(out); break; case 'h': case '?': case 'H': help(out);
DebugState st = this.state;  while ((st != null) && (!event.isConsumed())) { final DebugState newState = st.process(event); if (event.isConsumed()) { newState.print(out); this.state = newState; out.println(); } else { st = st.getParent(); } }  if (!event.isConsumed()) { switch (event.getKeyChar()) { case 'p': state.print(out); out.println(); break; case '.': out.println("State trace:"); out.println(state.getStateTrace()); out.println(); break; case 'h': case '?': case 'H': help(out); }
    public Object run() {        final PrintStream out = VmSystem.getOut();        switch (event.getKeyChar()) {        case 't':            showThreadList(out, ST_ALL, "[All threads]");            break;        case 'r':            showThreadList(out, ST_RUNNING, "[Running threads]");            break;        case 'w':            showThreadList(out, ST_WAITING, "[Waiting threads]");            break;        case 'n':            showNextThread(out);            break;        case 'h':        case '?':        case 'H':            help(out);        }        return null;    }