mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
tests tree: speed search over presentable name (IDEA-199433)
inner name includes name of a containing class
This commit is contained in:
+6
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.execution.testframework.sm.runner.ui;
|
||||
|
||||
import com.intellij.execution.testframework.AbstractTestProxy;
|
||||
import com.intellij.execution.testframework.TestConsoleProperties;
|
||||
import com.intellij.execution.testframework.TestTreeView;
|
||||
import com.intellij.execution.testframework.sm.runner.SMTRunnerNodeDescriptor;
|
||||
@@ -75,4 +76,9 @@ public class SMTRunnerTestTreeView extends TestTreeView {
|
||||
}
|
||||
return super.getData(dataId);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getPresentableName(AbstractTestProxy testProxy) {
|
||||
return ((SMTestProxy)testProxy).getPresentableName();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@ public abstract class TestTreeView extends Tree implements DataProvider, CopyPro
|
||||
new TreeSpeedSearch(this, path -> {
|
||||
final AbstractTestProxy testProxy = getSelectedTest(path);
|
||||
if (testProxy == null) return null;
|
||||
return testProxy.getName();
|
||||
return getPresentableName(testProxy);
|
||||
});
|
||||
TreeUtil.installActions(this);
|
||||
PopupHandler.installPopupHandler(this, IdeActions.GROUP_TESTTREE_POPUP, ActionPlaces.TESTTREE_VIEW_POPUP);
|
||||
@@ -210,6 +210,10 @@ public abstract class TestTreeView extends Tree implements DataProvider, CopyPro
|
||||
});
|
||||
}
|
||||
|
||||
protected String getPresentableName(AbstractTestProxy testProxy) {
|
||||
return testProxy.getName();
|
||||
}
|
||||
|
||||
public boolean isExpandableHandlerVisibleForCurrentRow(int row) {
|
||||
final ExpandableItemsHandler<Integer> handler = getExpandableItemsHandler();
|
||||
final Collection<Integer> items = handler.getExpandedItems();
|
||||
|
||||
Reference in New Issue
Block a user