From c6630246d97e68971d50a34a58ef7aca6109e59c Mon Sep 17 00:00:00 2001 From: Dan Ungureanu Date: Tue, 18 Feb 2014 13:25:39 +0200 Subject: Bug 428367 - Fixed missing title for Properties dialog Change-Id: I5abc99be6aa8bf02b84a549c3c11fd929e9acbc7 Signed-off-by: Dan Ungureanu Reviewed-on: https://git.eclipse.org/r/22149 Reviewed-by: Marc Khouzam IP-Clean: Marc Khouzam Tested-by: Marc Khouzam --- .../org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java | 10 +++++++++- .../src/org/eclipse/cdt/launch/remote/tabs/RemoteCMainTab.java | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'cross') diff --git a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java index aa911f3e5c9..0fdf8712665 100644 --- a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java +++ b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java @@ -20,6 +20,7 @@ * Anna Dushistova (Mentor Graphics) - moved to org.eclipse.cdt.launch.remote.tabs * Anna Dushistova (Mentor Graphics) - [318052] [remote launch] Properties are not saved/used * Anna Dushistova (MontaVista) - [375067] [remote] Automated remote launch does not support project-less debug + * Dan Ungureanu (Freescale) - [428367] [remote launch] Fix missing title for Properties dialog *******************************************************************************/ package org.eclipse.cdt.launch.remote.tabs; @@ -337,14 +338,21 @@ public class RemoteCDSFMainTab extends CMainTab { boolean fbLocalHost; private Button fSkipDownloadBtn; private Text fWSRoot; + private String fDialogTitle; public RemoteConnectionPropertyDialog(Shell parentShell, String dialogTitle, IHost host) { super(parentShell); - parentShell.setText(dialogTitle); + fDialogTitle = dialogTitle; fHost = host; fbLocalHost = fHost.getSystemType().isLocal(); } + + @Override + protected void configureShell(Shell shell) { + super.configureShell(shell); + shell.setText(fDialogTitle); + } @Override protected Control createDialogArea(Composite parent) { diff --git a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCMainTab.java b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCMainTab.java index 37d897b2b91..8798bc2795b 100644 --- a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCMainTab.java +++ b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCMainTab.java @@ -20,6 +20,7 @@ * Anna Dushistova (Mentor Graphics) - moved to org.eclipse.cdt.launch.remote.tabs * Anna Dushistova (Mentor Graphics) - [318052] [remote launch] Properties are not saved/used * Anna Dushistova (Mentor Graphics) - [333453] adapted the fix from RemoteCDSFMainTab.java + * Dan Ungureanu (Freescale) - [428367] [remote launch] Fix missing title for Properties dialog *******************************************************************************/ package org.eclipse.cdt.launch.remote.tabs; @@ -420,14 +421,21 @@ public class RemoteCMainTab extends CMainTab { boolean fbLocalHost; private Button fSkipDownloadBtn; private Text fWSRoot; + private String fDialogTitle; public RemoteConnectionPropertyDialog(Shell parentShell, String dialogTitle, IHost host) { super(parentShell); - parentShell.setText(dialogTitle); + fDialogTitle = dialogTitle; fHost = host; fbLocalHost = fHost.getSystemType().isLocal(); } + + @Override + protected void configureShell(Shell shell) { + super.configureShell(shell); + shell.setText(fDialogTitle); + } @Override protected Control createDialogArea(Composite parent) { -- cgit v1.2.3