debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/RomLogFileTab.java
equal
deleted
inserted
replaced
38 import org.eclipse.swt.widgets.Label; |
38 import org.eclipse.swt.widgets.Label; |
39 import org.eclipse.swt.widgets.Text; |
39 import org.eclipse.swt.widgets.Text; |
40 import org.eclipse.ui.PlatformUI; |
40 import org.eclipse.ui.PlatformUI; |
41 import com.freescale.swt.widgets.CheckboxGroup; |
41 import com.freescale.swt.widgets.CheckboxGroup; |
42 import com.nokia.cdt.internal.debug.launch.LaunchPlugin; |
42 import com.nokia.cdt.internal.debug.launch.LaunchPlugin; |
|
43 import com.nokia.cpp.internal.api.utils.ui.BrowseDialogUtils; |
43 |
44 |
44 |
45 |
45 import cwdbg.PreferenceConstants; |
46 import cwdbg.PreferenceConstants; |
46 |
47 |
47 public class RomLogFileTab extends CLaunchConfigurationTab { |
48 public class RomLogFileTab extends CLaunchConfigurationTab { |
136 |
137 |
137 dialog.setText(Messages.getString("RomLogFileTab.6")); //$NON-NLS-1$ |
138 dialog.setText(Messages.getString("RomLogFileTab.6")); //$NON-NLS-1$ |
138 dialog.setFilterExtensions(new String[] {"*.log*", "*.*"}); //$NON-NLS-1$ //$NON-NLS-2$ |
139 dialog.setFilterExtensions(new String[] {"*.log*", "*.*"}); //$NON-NLS-1$ //$NON-NLS-2$ |
139 dialog.setFilterNames(new String[] {Messages.getString("RomLogFileTab.7"), Messages.getString("RomLogFileTab.8")}); //$NON-NLS-1$ //$NON-NLS-2$ |
140 dialog.setFilterNames(new String[] {Messages.getString("RomLogFileTab.7"), Messages.getString("RomLogFileTab.8")}); //$NON-NLS-1$ //$NON-NLS-2$ |
140 |
141 |
|
142 BrowseDialogUtils.initializeFrom(dialog, romLogFilePath); |
|
143 |
141 String result = dialog.open(); |
144 String result = dialog.open(); |
142 if (result != null && new File(result).exists()) { |
145 if (result != null && new File(result).exists()) { |
143 romLogFilePath.setText(result); |
146 romLogFilePath.setText(result); |
144 updateLaunchConfigurationDialog(); |
147 updateLaunchConfigurationDialog(); |
145 } |
148 } |
169 epoc32DirBrowse.setData(".uid", "RomLogFileTab.epoc32DirBrowse"); //$NON-NLS-1$ //$NON-NLS-2$ |
172 epoc32DirBrowse.setData(".uid", "RomLogFileTab.epoc32DirBrowse"); //$NON-NLS-1$ //$NON-NLS-2$ |
170 epoc32DirBrowse.addSelectionListener(new SelectionAdapter() { |
173 epoc32DirBrowse.addSelectionListener(new SelectionAdapter() { |
171 |
174 |
172 public void widgetSelected(SelectionEvent evt) { |
175 public void widgetSelected(SelectionEvent evt) { |
173 DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.NONE); |
176 DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.NONE); |
|
177 BrowseDialogUtils.initializeFrom(dialog, epoc32DirPath); |
174 |
178 |
175 dialog.setText(Messages.getString("RomLogFileTab.11")); //$NON-NLS-1$ |
179 dialog.setText(Messages.getString("RomLogFileTab.11")); //$NON-NLS-1$ |
176 String result = dialog.open(); |
180 String result = dialog.open(); |
177 |
181 |
178 if (result != null && new File(result).exists()) { |
182 if (result != null && new File(result).exists()) { |