Revert: Per project modality state

This commit is contained in:
Denis Fokin
2016-09-22 12:45:39 +03:00
parent 8563d88c43
commit bb636184e9
3 changed files with 1 additions and 4 deletions
@@ -148,7 +148,7 @@ public class FindDialog extends DialogWrapper {
private volatile ProgressIndicatorBase myResultsPreviewSearchProgress;
public FindDialog(@NotNull Project project, @NotNull FindModel model, @NotNull Consumer<FindModel> myOkHandler){
super(project, true, IdeModalityType.PROJECT);
super(project, true);
myProject = project;
myModel = model;
@@ -27,7 +27,6 @@ import com.intellij.ui.components.dialog
import com.intellij.ui.layout.*
import com.intellij.util.io.encodeUrlQueryParameter
import java.awt.Component
import java.awt.Font
import javax.swing.JPasswordField
import javax.swing.JTextField
@@ -36,7 +35,6 @@ fun showJetBrainsAccountDialog(parent: Component, project: Project? = null): Dia
val credentials = ErrorReportConfigurable.getCredentials()
val userField = JTextField(credentials?.userName)
val passwordField = JPasswordField(credentials?.password?.toString())
passwordField.font = Font("Menlo", passwordField.font.style, passwordField.font.size)
// if no user name - never stored and so, defaults to remember. if user name set, but no password, so, previously was stored without password
val rememberCheckBox = CheckBox(CommonBundle.message("checkbox.remember.password"), selected = credentials?.userName == null || !credentials?.password.isNullOrEmpty())
@@ -23,7 +23,6 @@ TextFieldUI=com.intellij.ide.ui.laf.intellij.MacIntelliJTextFieldUI
TextField.border=com.intellij.ide.ui.laf.intellij.MacIntelliJTextBorder
PasswordFieldUI=com.intellij.ide.ui.laf.intellij.MacIntelliJPasswordFieldUI
PasswordField.border=com.intellij.ide.ui.laf.intellij.MacIntelliJTextBorder
PasswordField.font=com.intellij.ide.ui.laf.intellij.MacIntelliJTextBorder
SpinnerUI=com.intellij.ide.ui.laf.intellij.MacIntelliJSpinnerUI
Spinner.border=com.intellij.ide.ui.laf.intellij.MacIntelliJSpinnerBorder