Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Grunberg2016-06-01 15:17:29 +0000
committerJeff Johnston2016-06-01 17:46:00 +0000
commite8f64be12b7fa7a2e5bd03290054726c172bae24 (patch)
tree9765da59db6c6fd942c88048537dc0b8fb3c1898
parentadc69a671ff438fbf80b29475f0d52b99b7ff290 (diff)
downloadorg.eclipse.linuxtools-e8f64be12b7fa7a2e5bd03290054726c172bae24.tar.gz
org.eclipse.linuxtools-e8f64be12b7fa7a2e5bd03290054726c172bae24.tar.xz
org.eclipse.linuxtools-e8f64be12b7fa7a2e5bd03290054726c172bae24.zip
Bug 495074: Set the title for dialog that adds/edits registry accounts.
The parent shell (Preferences dialog) was having its title overriden with the registry account dialog's expected title. Change the actual dialog title by overriding configureShell. Change-Id: I95cea1391658999809f3f2a68dd1750b10289818 Reviewed-on: https://git.eclipse.org/r/74259 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/wizards/RegistryAccountDialog.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/wizards/RegistryAccountDialog.java b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/wizards/RegistryAccountDialog.java
index 3aa6760ce7..e03a30ed8d 100644
--- a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/wizards/RegistryAccountDialog.java
+++ b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/internal/docker/ui/wizards/RegistryAccountDialog.java
@@ -19,10 +19,17 @@ public class RegistryAccountDialog extends Dialog {
private String username;
private String email;
private char[] password;
+ private String title;
public RegistryAccountDialog(Shell parentShell, String title) {
super(parentShell);
- parentShell.setText(title);
+ this.title = title;
+ }
+
+ @Override
+ protected void configureShell(Shell shell) {
+ super.configureShell(shell);
+ shell.setText(title);
}
@Override

Back to the top