Example usage for com.intellij.openapi.actionSystem IdeActions GROUP_TESTSTATISTICS_POPUP

List of usage examples for com.intellij.openapi.actionSystem IdeActions GROUP_TESTSTATISTICS_POPUP

Introduction

In this page you can find the example usage for com.intellij.openapi.actionSystem IdeActions GROUP_TESTSTATISTICS_POPUP.

Prototype

String GROUP_TESTSTATISTICS_POPUP

To view the source code for com.intellij.openapi.actionSystem IdeActions GROUP_TESTSTATISTICS_POPUP.

Click Source Link

Usage

From source file:com.intellij.execution.junit2.ui.StatisticsPanel.java

License:Apache License

public StatisticsPanel() {
    super(new BorderLayout(0, 0));
    myChildInfo = new StatisticsTable(TestColumnInfo.COLUMN_NAMES);
    myTable = new TableView(myChildInfo) {
        @Override//ww w .j a  v a  2s . co  m
        public TableCellRenderer getCellRenderer(int row, int column) {
            return new TestTableRenderer(TestColumnInfo.COLUMN_NAMES);
        }
    };
    EditSourceOnDoubleClickHandler.install(myTable);
    PopupHandler.installPopupHandler(myTable, IdeActions.GROUP_TESTSTATISTICS_POPUP,
            ActionPlaces.TESTSTATISTICS_VIEW_POPUP);
    //    add(myTestCaseInfo, BorderLayout.NORTH);
    add(ScrollPaneFactory.createScrollPane(myTable), BorderLayout.CENTER);
    final JPanel eastPanel = new JPanel(new VerticalFlowLayout(VerticalFlowLayout.TOP, 0, 0, true, false));

    myTotalLabel = new SimpleColoredComponent();
    eastPanel.add(myTotalLabel);

    myTimeLabel = new SimpleColoredComponent();
    eastPanel.add(myTimeLabel);

    add(eastPanel, BorderLayout.SOUTH);
}