mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
editing default run configuration: quickly navigate to default of selected configuration
This commit is contained in:
@@ -452,7 +452,13 @@ class RunConfigurable extends BaseConfigurable {
|
||||
group.add(new AnAction(ExecutionBundle.message("run.configuration.edit.default.configuration.settings.button"),
|
||||
ExecutionBundle.message("run.configuration.edit.default.configuration.settings.button"), EDIT_DEFAULTS_ICON) {
|
||||
public void actionPerformed(final AnActionEvent e) {
|
||||
final TreeNode defaults = TreeUtil.findNodeWithObject("Defaults", myTree.getModel(), myRoot);
|
||||
TreeNode defaults = TreeUtil.findNodeWithObject("Defaults", myTree.getModel(), myRoot);
|
||||
if (defaults != null) {
|
||||
final ConfigurationType configurationType = getSelectedConfigurationType();
|
||||
if (configurationType != null) {
|
||||
defaults = TreeUtil.findNodeWithObject(configurationType, myTree.getModel(), defaults);
|
||||
}
|
||||
}
|
||||
final DefaultMutableTreeNode defaultsNode = (DefaultMutableTreeNode)defaults;
|
||||
final TreePath path = TreeUtil.getPath(myRoot, defaultsNode);
|
||||
myTree.expandPath(path);
|
||||
|
||||
Reference in New Issue
Block a user