From ca4a9403bf5fbbb79fbc0d8ef96d5ecd9c94b2d4 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Wed, 20 Feb 2019 18:38:25 +0300 Subject: [PATCH] replace title with action name for IDEA-CR-43679 --- .../classpath/AnalyzeModuleDependencyAction.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/classpath/AnalyzeModuleDependencyAction.java b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/classpath/AnalyzeModuleDependencyAction.java index 556ca4b48052..84714fb51b6f 100644 --- a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/classpath/AnalyzeModuleDependencyAction.java +++ b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/classpath/AnalyzeModuleDependencyAction.java @@ -4,7 +4,6 @@ package com.intellij.openapi.roots.ui.configuration.classpath; import com.intellij.CommonBundle; import com.intellij.analysis.AnalysisScope; import com.intellij.analysis.AnalysisScopeBundle; -import com.intellij.find.FindBundle; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.diagnostic.Logger; @@ -74,14 +73,14 @@ class AnalyzeModuleDependencyAction extends AnAction { Messages.showInfoMessage(myProject, "Dependencies were successfully collected in \"" + ToolWindowId.DEPENDENCIES + "\" toolwindow", - FindBundle.message("find.pointcut.applications.not.found.title")); + getTemplateText()); return true; } List usedEntries = usedScopes.stream().map(additionalScopes::get).filter(Objects::nonNull).distinct().collect(Collectors.toList()); if (usedEntries.isEmpty()) { String message = "No code dependencies were found." + generateSkipImportsWarning() + " Would you like to remove the dependency?"; - if (Messages.showOkCancelDialog(myProject, message, "Dependencies Not Found", CommonBundle.message("button.remove"), Messages.CANCEL_BUTTON, + if (Messages.showOkCancelDialog(myProject, message, getTemplateText(), CommonBundle.message("button.remove"), Messages.CANCEL_BUTTON, Messages.getWarningIcon()) == Messages.OK) { myPanel.getRootModel().removeOrderEntry(selectedEntry); } @@ -101,7 +100,7 @@ class AnalyzeModuleDependencyAction extends AnAction { + StringUtil.decapitalize(selectedEntry.getPresentableName()) + "' " + (usedEntries.size() > 1 ? "are" : "is") + " used in code.\n" + "Do you want to replace dependency on '" + selectedEntry.getPresentableName() + "' by " + replacementText + "?"; String[] options = {"Replace", "Show Dependencies", Messages.CANCEL_BUTTON}; - switch (Messages.showDialog(myProject, message, "Dependencies Not Found", options, 0, Messages.getWarningIcon())) { + switch (Messages.showDialog(myProject, message, getTemplateText(), options, 0, Messages.getWarningIcon())) { case 0: InlineModuleDependencyAction.inlineEntry(myPanel, selectedEntry, usedEntries::contains); return false;