protected JComponent buildContent() {
    JComponent component = super.buildContent();

    inspectorPanel = JInspectorPanelFactory.build(component);
    assertionsPanel = buildAssertionsPanel();

    assertionInspector =
        new JComponentInspector<JComponent>(
            assertionsPanel,
            "Assertions (" + getModelItem().getAssertionCount() + ")",
            "Assertions for this Request",
            true);

    inspectorPanel.addInspector(assertionInspector);

    logInspector =
        new JComponentInspector<JComponent>(
            buildLogPanel(), "Request Log (0)", "Log of requests", true);
    inspectorPanel.addInspector(logInspector);
    inspectorPanel.setDefaultDividerLocation(0.6F);
    inspectorPanel.setCurrentInspector("Assertions");

    updateStatusIcon();

    return inspectorPanel.getComponent();
  }
  private Component buildContent() {
    inspectorPanel = JInspectorPanelFactory.build(createPropertiesTable());

    inspectorPanel.addInspector(
        new JComponentInspector<JComponent>(
            buildLog(), "TestCase Log", "log output from testcase run", true));

    return inspectorPanel.getComponent();
  }
Exemple #3
0
  public Editor(T document) {
    super(new BorderLayout());
    this.document = document;

    setBackground(Color.LIGHT_GRAY);
    inputTabs = new JTabbedPane(JTabbedPane.LEFT, JTabbedPane.SCROLL_TAB_LAYOUT);
    inputTabs.setUI(new VerticalTabbedPaneUI());

    inputTabs.setFont(inputTabs.getFont().deriveFont(8));
    inputTabsChangeListener = new InputTabsChangeListener();
    inputTabs.addChangeListener(inputTabsChangeListener);

    inspectorPanel = JInspectorPanelFactory.build(inputTabs);
    add(inspectorPanel.getComponent(), BorderLayout.CENTER);
  }