List of usage examples for com.intellij.openapi.actionSystem ActionPlaces TESTSTATISTICS_VIEW_POPUP
String TESTSTATISTICS_VIEW_POPUP
To view the source code for com.intellij.openapi.actionSystem ActionPlaces TESTSTATISTICS_VIEW_POPUP.
Click Source Link
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 .ja v a2 s .c o 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); }