Examples of HistoryItem


Examples of com.google.api.explorer.client.history.HistoryItem

    @SuppressWarnings("unchecked")
    ValueChangeEvent<String> event = EasyMock.createMock(ValueChangeEvent.class);
    EasyMock.expect(event.getValue()).andReturn(fragment);

    HistoryItem item = createEmptyHistoryItem();
    EasyMock.expect(historyCache.getHistoryItem("1")).andReturn(item);

    Capture<ExplorerContext> contextCapture = new Capture<ExplorerContext>();
    delegate.setContext(EasyMock.capture(contextCapture));
    EasyMock.expectLastCall();
View Full Code Here

Examples of com.google.api.explorer.client.history.HistoryItem

  /** This is necessary because history item cannot be subclassed. */
  private HistoryItem createEmptyHistoryItem() {
    ApiRequest mockRequest = EasyMock.createMock(ApiRequest.class);
    ApiResponse mockResponse = EasyMock.createMock(ApiResponse.class);
    return new HistoryItem("1", mockRequest, mockResponse, 0, 0);
  }
View Full Code Here

Examples of com.google.api.explorer.client.history.HistoryItem

    // Fill in the detail pane.
    detailPane.setVisible(context.isHistoryItemVisible() || context.isMethodFormVisible());
    detailPane.clear();

    if (context.isHistoryItemVisible()) {
      HistoryItem item = Iterables.getOnlyElement(context.getHistoryItems());
      EmbeddedHistoryItemView view = generateHistoryItemView(item);

      detailPane.add(view);
    } else if (context.isMethodFormVisible()) {
      ApiMethod method = context.getMethod();
View Full Code Here

Examples of org.jamesii.gui.utils.history.HistoryItem

  }

  @Override
  public HistoryList getTestObject() throws Exception {
    HistoryList l = new HistoryList("HelloWorld");
    l.putHistoryItem(new HistoryItem("Value1"));
    return l;
  }
View Full Code Here

Examples of org.jamesii.gui.utils.history.HistoryItem

    assertEquals(original, deserialisedVersion);
  }

  @Override
  public HistoryItem getTestObject() throws Exception {
    HistoryItem item = new HistoryItem("HelloWorld");
    item.update();
    return item;
  }
View Full Code Here

Examples of org.jboss.fresh.shell.impl.HistoryItem

    String val = null;

    try {
      Iterator it = h.list().iterator();
      while(it.hasNext()) {
        HistoryItem hi = (HistoryItem) it.next();

        if(objs) {
          if(oout == null)
            oout = new BufferObjectWriter(getStdOut());
          oout.writeObject(pout);
        } else {
          StringBuffer sb = new StringBuffer();
          if(time) {
            sb.append(sdf.format(new Date(hi.getTime())));
            sb.append(" ");
          }

          if(global) {
            val = hi.getProject();
            if(val == null)
              val = "<undefined>";
            sb.append(val);
            sb.append(" ");
          }

          if(user) {
            val = hi.getUser();
            if(val == null)
              val = "<undefined>";
            sb.append(val);
            sb.append(" ");         
          }

          sb.append(hi.getCmd());
          sb.append(" ");

          if(clientInfo) {
            String vuser = hi.getUser();
            String vhost = hi.getHost();
            String vapp = hi.getApp();
            if(vuser != null || vhost != null || vapp == null) {

              if(vuser == null) vuser = "<unknown>";
              if(vhost == null) vhost = "<unknown>";
              if(vapp == null) vapp = "<unknown>";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.