diff options
author | Alexander Kurtakov | 2020-08-07 14:53:42 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2020-08-07 15:18:46 +0000 |
commit | c7d863fd8b69315d6786be400f3c18db0680b6a3 (patch) | |
tree | 7951d6f2e1b9312e830fa148f6cbf814438cf53b /bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/storage/ChallengeResponseDialog.java | |
parent | 5fa169a893c4fd97788bd925c5b288ca98345aa6 (diff) | |
download | rt.equinox.bundles-c7d863fd8b69315d6786be400f3c18db0680b6a3.tar.gz rt.equinox.bundles-c7d863fd8b69315d6786be400f3c18db0680b6a3.tar.xz rt.equinox.bundles-c7d863fd8b69315d6786be400f3c18db0680b6a3.zip |
Modernize security.ui bundle.Y20200807-1200I20200808-0230I20200807-1800
* Enable more warnings and fix them.
* Disable warning about synthetic accessors
Change-Id: I773a6b6f25b6a469e8085c4a4a0f363567180d84
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/storage/ChallengeResponseDialog.java')
-rw-r--r-- | bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/storage/ChallengeResponseDialog.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/storage/ChallengeResponseDialog.java b/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/storage/ChallengeResponseDialog.java index 33485024c..e4d4a6d01 100644 --- a/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/storage/ChallengeResponseDialog.java +++ b/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/storage/ChallengeResponseDialog.java @@ -43,22 +43,26 @@ public class ChallengeResponseDialog extends TitleAreaDialog { answers = new Text[this.size]; } + @Override protected void configureShell(Shell shell) { super.configureShell(shell); shell.setText(SecUIMessages.passwordRecoveryTitle); PlatformUI.getWorkbench().getHelpSystem().setHelp(shell, HELP_ID); } + @Override protected void createButtonsForButtonBar(Composite parent) { okButton = createButton(parent, IDialogConstants.OK_ID, SecUIMessages.passwordButtonOK, true); okButton.setEnabled(false); createButton(parent, IDialogConstants.CANCEL_ID, SecUIMessages.passwordButtonCancel, false); } + @Override protected boolean isResizable() { return true; } + @Override protected Control createDialogArea(Composite parent) { Composite compositeTop = (Composite) super.createDialogArea(parent); setTitle(SecUIMessages.passwordRecoveryTitleMsg); @@ -121,6 +125,7 @@ public class ChallengeResponseDialog extends TitleAreaDialog { okButton.setEnabled(valid); } + @Override protected void okPressed() { questionsText = new String[size]; answersText = new String[size]; |