use of com.intellij.execution.impl.EditConfigurationsDialog in project intellij-community by JetBrains.
the class ProjectStartupConfigurable method editRunConfiguration.
private void editRunConfiguration() {
final int row = myTable.getSelectedRow();
if (row < 0)
return;
final RunnerAndConfigurationSettings selected = myModel.getAllConfigurations().get(row);
final RunManager runManager = RunManager.getInstance(myProject);
final RunnerAndConfigurationSettings was = runManager.getSelectedConfiguration();
try {
runManager.setSelectedConfiguration(selected);
new EditConfigurationsDialog(myProject).showAndGet();
} finally {
runManager.setSelectedConfiguration(was);
}
myModel.fireTableDataChanged();
refreshDataUpdateSelection(selected);
}
use of com.intellij.execution.impl.EditConfigurationsDialog in project intellij-community by JetBrains.
the class EditMavenRunConfigurationAction method actionPerformed.
@Override
public void actionPerformed(@NotNull AnActionEvent e) {
Project project = e.getProject();
RunnerAndConfigurationSettings settings = MavenDataKeys.RUN_CONFIGURATION.getData(e.getDataContext());
assert settings != null && project != null;
RunManager.getInstance(project).setSelectedConfiguration(settings);
EditConfigurationsDialog dialog = new EditConfigurationsDialog(project);
dialog.show();
}
Aggregations