コード例 #1
0
    public Object getValueAt(int row, int column) {
      Object ret = null;
      HistoryEntry he = (HistoryEntry) history_clone[row];
      if (column == 0) {
        ret = "" + he.getStepNumber();
      } else if (column == 1) {
        ret = he.getThreadId();
      } else if (column == 2) {
        ret = he.getActivity().getBreakpointId();
      } else if (column == 3) {
        MPool pool = he.getActivity().getPool();
        if (pool != null) ret = pool.getName();
      } else if (column == 4) {
        MLane lane = he.getActivity().getLane();
        if (lane != null) ret = lane.getName();
      }

      return ret;
    }
コード例 #2
0
 public Object getValueAt(int row, int column) {
   Object ret = null;
   ProcessThreadInfo pti = (ProcessThreadInfo) threads_clone[row];
   if (column == 0) {
     ret = pti.getId();
   } else if (column == 1) {
     ret = pti.getActivity().getBreakpointId();
   } else if (column == 2) {
     MPool pool = pti.getActivity().getPool();
     if (pool != null) ret = pool.getName();
   } else if (column == 3) {
     MLane lane = pti.getActivity().getLane();
     if (lane != null) ret = lane.getName();
   } else if (column == 4) {
     ret = pti.getException();
   } else if (column == 5) {
     ret = pti.getData();
   } else if (column == 6) {
     ret = pti.isWaiting() ? "waiting" : "ready";
   }
   return ret;
 }