debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/wizard/StopModeRomImageWizardPage.java
changeset 674 20c7966a3405
parent 569 369485fbe634
equal deleted inserted replaced
673:bc9a74f8e67b 674:20c7966a3405
    15 *
    15 *
    16 */
    16 */
    17 package com.nokia.cdt.internal.debug.launch.wizard;
    17 package com.nokia.cdt.internal.debug.launch.wizard;
    18 
    18 
    19 import com.nokia.cpp.internal.api.utils.core.Check;
    19 import com.nokia.cpp.internal.api.utils.core.Check;
       
    20 import com.nokia.cpp.internal.api.utils.ui.BrowseDialogUtils;
    20 
    21 
    21 import cwdbg.PreferenceConstants;
    22 import cwdbg.PreferenceConstants;
    22 
    23 
    23 import org.eclipse.cdt.utils.ui.controls.ControlFactory;
    24 import org.eclipse.cdt.utils.ui.controls.ControlFactory;
    24 import org.eclipse.core.runtime.CoreException;
    25 import org.eclipse.core.runtime.CoreException;
   165 
   166 
   166 				dialog.setText(Messages.getString("StopModeRomImageWizardPage.13")); //$NON-NLS-1$
   167 				dialog.setText(Messages.getString("StopModeRomImageWizardPage.13")); //$NON-NLS-1$
   167 				dialog.setFilterExtensions(new String[] {"*.img*", "*.*"}); //$NON-NLS-1$ //$NON-NLS-2$
   168 				dialog.setFilterExtensions(new String[] {"*.img*", "*.*"}); //$NON-NLS-1$ //$NON-NLS-2$
   168 				dialog.setFilterNames(new String[] {Messages.getString("StopModeRomImageWizardPage.14"), Messages.getString("StopModeRomImageWizardPage.10")}); //$NON-NLS-1$ //$NON-NLS-2$
   169 				dialog.setFilterNames(new String[] {Messages.getString("StopModeRomImageWizardPage.14"), Messages.getString("StopModeRomImageWizardPage.10")}); //$NON-NLS-1$ //$NON-NLS-2$
   169 
   170 
       
   171 				BrowseDialogUtils.initializeFrom(dialog, romImagePath);
       
   172 
   170 				String result = dialog.open();
   173 				String result = dialog.open();
   171 				if (result != null && new File(result).exists()) {
   174 				if (result != null && new File(result).exists()) {
   172 					romImagePath.setText(result);					
   175 					romImagePath.setText(result);					
   173 				}
   176 				}
   174 			}
   177 			}
   196 				FileDialog dialog = new FileDialog(getShell(), SWT.NONE);
   199 				FileDialog dialog = new FileDialog(getShell(), SWT.NONE);
   197 
   200 
   198 				dialog.setText(Messages.getString("StopModeRomImageWizardPage.8")); //$NON-NLS-1$
   201 				dialog.setText(Messages.getString("StopModeRomImageWizardPage.8")); //$NON-NLS-1$
   199 				dialog.setFilterExtensions(new String[] {"*.log*", "*.*"}); //$NON-NLS-1$ //$NON-NLS-2$
   202 				dialog.setFilterExtensions(new String[] {"*.log*", "*.*"}); //$NON-NLS-1$ //$NON-NLS-2$
   200 				dialog.setFilterNames(new String[] {Messages.getString("StopModeRomImageWizardPage.9"), Messages.getString("StopModeRomImageWizardPage.10")}); //$NON-NLS-1$ //$NON-NLS-2$
   203 				dialog.setFilterNames(new String[] {Messages.getString("StopModeRomImageWizardPage.9"), Messages.getString("StopModeRomImageWizardPage.10")}); //$NON-NLS-1$ //$NON-NLS-2$
       
   204 
       
   205 				BrowseDialogUtils.initializeFrom(dialog, romLogFilePath);
   201 
   206 
   202 				String result = dialog.open();
   207 				String result = dialog.open();
   203 				if (result != null && new File(result).exists()) {
   208 				if (result != null && new File(result).exists()) {
   204 					romLogFilePath.setText(result);					
   209 					romLogFilePath.setText(result);					
   205 				}
   210 				}