IDEA-78298 Nika RC2: Find Usages dialog is screen-wide

This commit is contained in:
Evgeny Zakrevsky
2011-12-12 22:04:38 +03:00
parent d98b1e9f97
commit bf1b01378e
2 changed files with 12 additions and 2 deletions
@@ -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;