mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-63452: The dialog name "Choose Dependent Modules" needs to be changed
This commit is contained in:
+4
-3
@@ -489,7 +489,8 @@ public class ClasspathPanelImpl extends JPanel implements ClasspathPanel {
|
||||
Messages.showMessageDialog(ClasspathPanelImpl.this, ProjectBundle.message("message.no.module.dependency.candidates"), getTitle(), Messages.getInformationIcon());
|
||||
return null;
|
||||
}
|
||||
return new ModuleChooser(chooseItems, ProjectBundle.message("classpath.chooser.title.add.module.dependency"));
|
||||
return new ModuleChooser(chooseItems, ProjectBundle.message("classpath.chooser.title.add.module.dependency"),
|
||||
ProjectBundle.message("classpath.chooser.description.add.module.dependency"));
|
||||
}
|
||||
}
|
||||
);
|
||||
@@ -669,8 +670,8 @@ public class ClasspathPanelImpl extends JPanel implements ClasspathPanel {
|
||||
}
|
||||
|
||||
private class ModuleChooser extends ChooseModulesDialog implements ClasspathElementChooser<Module> {
|
||||
public ModuleChooser(final List<Module> items, final String title) {
|
||||
super(ClasspathPanelImpl.this, items, title);
|
||||
public ModuleChooser(final List<Module> items, final String title, String description) {
|
||||
super(ClasspathPanelImpl.this, items, title, description);
|
||||
}
|
||||
|
||||
public void doChoose() {
|
||||
|
||||
+5
@@ -25,6 +25,7 @@ package com.intellij.openapi.roots.ui.configuration.libraryEditor;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.ide.util.ChooseElementsDialog;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
@@ -36,6 +37,10 @@ public class ChooseModulesDialog extends ChooseElementsDialog<Module> {
|
||||
super(parent, items, title, null, true);
|
||||
}
|
||||
|
||||
public ChooseModulesDialog(Component parent, List<Module> items, String title, @Nullable String description) {
|
||||
super(parent, items, title, description, true);
|
||||
}
|
||||
|
||||
public ChooseModulesDialog(final Project project, final List<? extends Module> items, final String title, final String description) {
|
||||
super(project, items, title, description, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user