mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-130637 Find: "Context" chooser combobox cut-off
(cherry picked from commit 4c65152)
This commit is contained in:
@@ -620,7 +620,7 @@ public class FindDialog extends DialogWrapper {
|
||||
|
||||
findOptionsPanel.add(regExPanel);
|
||||
|
||||
mySearchContext = new ComboBox(new Object[] {FindBundle.message("find.context.anywhere.scope.label", 200),
|
||||
mySearchContext = new ComboBox(new Object[] {FindBundle.message("find.context.anywhere.scope.label"),
|
||||
FindBundle.message("find.context.in.comments.scope.label"), FindBundle.message("find.context.in.literals.scope.label"),
|
||||
FindBundle.message("find.context.except.comments.scope.label"),
|
||||
FindBundle.message("find.context.except.literals.scope.label"),
|
||||
@@ -633,9 +633,12 @@ public class FindDialog extends DialogWrapper {
|
||||
JPanel panel = new JPanel();
|
||||
panel.setAlignmentX(Component.LEFT_ALIGNMENT);
|
||||
panel.add(searchContextLabel);
|
||||
panel.add(mySearchContext);
|
||||
searchContextPanel.add(panel, BorderLayout.WEST);
|
||||
|
||||
panel = new JPanel(new BorderLayout());
|
||||
panel.add(mySearchContext, BorderLayout.NORTH);
|
||||
searchContextPanel.add(panel, BorderLayout.CENTER);
|
||||
|
||||
if (FindManagerImpl.ourHasSearchInCommentsAndLiterals) {
|
||||
findOptionsPanel.add(searchContextPanel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user