mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-78298 Nika RC2: Find Usages dialog is screen-wide
This commit is contained in:
@@ -276,7 +276,17 @@ public abstract class AbstractFindUsagesDialog extends DialogWrapper {
|
||||
if (isInFileOnly()) return null;
|
||||
JPanel optionsPanel = new JPanel(new BorderLayout());
|
||||
String scope = myFindUsagesOptions.searchScope.getDisplayName();
|
||||
myScopeCombo = new ScopeChooserCombo(myProject, mySearchInLibrariesAvailable, true, scope);
|
||||
myScopeCombo = new ScopeChooserCombo(myProject, mySearchInLibrariesAvailable, true, scope) {
|
||||
@Override
|
||||
public Dimension getMinimumSize() {
|
||||
return new Dimension(200, super.getMinimumSize().height);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dimension getPreferredSize() {
|
||||
return new Dimension(400, super.getPreferredSize().height);
|
||||
}
|
||||
};
|
||||
Disposer.register(myDisposable, myScopeCombo);
|
||||
optionsPanel.add(myScopeCombo, BorderLayout.CENTER);
|
||||
JComponent separator = SeparatorFactory.createSeparator(FindBundle.message("find.scope.label"), myScopeCombo.getComboBox());
|
||||
|
||||
@@ -769,7 +769,7 @@ public class FindDialog extends DialogWrapper {
|
||||
|
||||
gbConstraints.gridx = 1;
|
||||
gbConstraints.weightx = 1;
|
||||
myDirectoryComboBox = new ComboBox(-1);
|
||||
myDirectoryComboBox = new ComboBox(200);
|
||||
Component editorComponent = myDirectoryComboBox.getEditor().getEditorComponent();
|
||||
if (editorComponent instanceof JTextField) {
|
||||
JTextField field = (JTextField)editorComponent;
|
||||
|
||||
Reference in New Issue
Block a user