use of com.intellij.execution.dashboard.DashboardRunConfigurationNode in project intellij-community by JetBrains.
the class ConfigurationTypeDashboardGroupingRule method getGroup.
@Nullable
@Override
public DashboardGroup getGroup(AbstractTreeNode<?> node) {
if (node instanceof DashboardRunConfigurationNode) {
RunnerAndConfigurationSettings configurationSettings = ((DashboardRunConfigurationNode) node).getConfigurationSettings();
ConfigurationType type = configurationSettings.getType();
if (type != null) {
return new DashboardGroupImpl<>(type, type.getDisplayName(), type.getIcon());
}
}
return null;
}
use of com.intellij.execution.dashboard.DashboardRunConfigurationNode in project intellij-community by JetBrains.
the class FolderDashboardGroupingRule method getGroup.
@Nullable
@Override
public DashboardGroup getGroup(AbstractTreeNode<?> node) {
if (node instanceof DashboardRunConfigurationNode) {
RunnerAndConfigurationSettings configurationSettings = ((DashboardRunConfigurationNode) node).getConfigurationSettings();
String folderName = configurationSettings.getFolderName();
if (folderName != null) {
return new DashboardGroupImpl<>(folderName, folderName, AllIcons.Nodes.Folder);
}
}
return null;
}
Aggregations