Commit 9b0f0104 authored by Konstantin Aleev's avatar Konstantin Aleev
Browse files

RunDashboard: actions messages cleanup

parent 42fd6271
Showing with 5 additions and 16 deletions
+5 -16
......@@ -27,12 +27,12 @@ public class CopyConfigurationAction extends AnAction {
Project project = e.getProject();
RunDashboardRunConfigurationNode node = project == null ? null : RunDashboardActionUtils.getTarget(e);
boolean enabled = node != null && RunDashboardManager.getInstance(project).isShowConfigurations() &&
RunManager.getInstance(node.getProject()).hasSettings(node.getConfigurationSettings());
RunManager.getInstance(project).hasSettings(node.getConfigurationSettings());
e.getPresentation().setEnabled(enabled);
boolean popupPlace = ActionPlaces.isPopupPlace(e.getPlace());
e.getPresentation().setVisible(enabled || !popupPlace);
if (popupPlace) {
e.getPresentation().setText(ExecutionBundle.message("copy.configuration.action.name") + "...");
e.getPresentation().setText(getTemplatePresentation().getText() + "...");
}
}
......
......@@ -30,12 +30,12 @@ public class EditConfigurationAction extends AnAction {
public void update(@NotNull AnActionEvent e) {
Project project = e.getProject();
RunDashboardRunConfigurationNode node = project == null ? null : RunDashboardActionUtils.getTarget(e);
boolean enabled = node != null && RunManager.getInstance(node.getProject()).hasSettings(node.getConfigurationSettings());
boolean enabled = node != null && RunManager.getInstance(project).hasSettings(node.getConfigurationSettings());
e.getPresentation().setEnabled(enabled);
boolean popupPlace = ActionPlaces.isPopupPlace(e.getPlace());
e.getPresentation().setVisible(enabled || !popupPlace);
if (popupPlace) {
e.getPresentation().setText(ExecutionBundle.message("run.dashboard.edit.configuration.action.name") + "...");
e.getPresentation().setText(getTemplatePresentation().getText() + "...");
}
}
......
......@@ -36,7 +36,7 @@ public class GroupConfigurationsAction extends AnAction {
public void update(@NotNull AnActionEvent e) {
e.getPresentation().setEnabledAndVisible(getTargets(e).isNotEmpty());
if (ActionPlaces.isPopupPlace(e.getPlace())) {
e.getPresentation().setText(ExecutionBundle.message("run.dashboard.group.configurations.action.name") + "...");
e.getPresentation().setText(getTemplatePresentation().getText() + "...");
}
}
......
......@@ -400,19 +400,8 @@ run.dashboard.debug.action.name=Debug
run.dashboard.debug.action.description=Debug selected configuration(s)
run.dashboard.restart.debugger.action.name=Rerun in Debug Mode
run.dashboard.restart.debugger.action.description=Rerun selected configuration(s) in Debug Mode
run.dashboard.stop.action.name=Stop
run.dashboard.stop.action.description=Stop selected configuration(s)
run.dashboard.edit.configuration.action.name=Edit Configuration
run.dashboard.edit.configuration.dialog.title=Edit Configuration
run.dashboard.remove.configuration.action.name=Remove Configuration
run.dashboard.remove.configuration.action.description=Remove Configuration(s)
run.dashboard.group.configurations.action.name=Group Configurations
run.dashboard.ungroup.configurations.action.name=Ungroup Configurations
run.dashboard.show.configurations.action.name=Show Configurations
run.dashboard.previous.configuration.action.name=Previous Started Configuration
run.dashboard.next.configuration.action.name=Next Started Configuration
run.dashboard.remove.configuration.dialog.title=Remove Configuration
run.dashboard.remove.configuration.dialog.message=Are you sure to remove selected configuration(s)?
run.dashboard.started.group.name=Running
run.dashboard.stopped.group.name=Finished
run.dashboard.configured.group.name=Configured
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment