debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/RomImageTab.java
changeset 419 57e6a837cd3c
parent 245 0575745dfefb
child 674 20c7966a3405
equal deleted inserted replaced
397:5354388b2a6b 419:57e6a837cd3c
    61 	private Label epoc32DirLabel;
    61 	private Label epoc32DirLabel;
    62 	private Text epoc32DirPath;
    62 	private Text epoc32DirPath;
    63 	private Button epoc32DirBrowse;
    63 	private Button epoc32DirBrowse;
    64 	
    64 	
    65 	private Button logUnresolvedModules;
    65 	private Button logUnresolvedModules;
    66 	//private Button logUnresolvedSym;
       
    67 	private Button debugNonXip;
       
    68 
    66 
    69 
    67 
    70 	/* (non-Javadoc)
    68 	/* (non-Javadoc)
    71 	 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(org.eclipse.swt.widgets.Composite)
    69 	 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(org.eclipse.swt.widgets.Composite)
    72 	 */
    70 	 */
   285 			public void widgetSelected(SelectionEvent e) {
   283 			public void widgetSelected(SelectionEvent e) {
   286 				updateLaunchConfigurationDialog();
   284 				updateLaunchConfigurationDialog();
   287 			}
   285 			}
   288 		});			
   286 		});			
   289 		
   287 		
   290 		debugNonXip = createCheckButton(parseRomLogGroup.getGroup(), Messages.getString("RomLogFileTab.15")); //$NON-NLS-1$
       
   291 		data = new GridData(GridData.FILL_HORIZONTAL);
       
   292 		data.horizontalSpan = 3;
       
   293 		debugNonXip.setLayoutData(data);
       
   294 		debugNonXip.setToolTipText(Messages.getString("RomLogFileTab.16")); //$NON-NLS-1$
       
   295 		debugNonXip.addSelectionListener(new SelectionAdapter() {
       
   296 			public void widgetSelected(SelectionEvent e) {
       
   297 				updateLaunchConfigurationDialog();
       
   298 			}
       
   299 		});		
       
   300 
       
   301 	}
   288 	}
   302 	
   289 	
   303 	/* (non-Javadoc)
   290 	/* (non-Javadoc)
   304 	 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
   291 	 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
   305 	 */
   292 	 */
   314 			
   301 			
   315 			parseRomLogGroup.setSelection(configuration.getAttribute( PreferenceConstants.J_PN_ParseRomLogFile , false ));
   302 			parseRomLogGroup.setSelection(configuration.getAttribute( PreferenceConstants.J_PN_ParseRomLogFile , false ));
   316 			romLogFilePath.setText(configuration.getAttribute( PreferenceConstants.J_PN_RomLogFilePath , "" )); //$NON-NLS-1$	
   303 			romLogFilePath.setText(configuration.getAttribute( PreferenceConstants.J_PN_RomLogFilePath , "" )); //$NON-NLS-1$	
   317 			epoc32DirPath.setText(configuration.getAttribute( PreferenceConstants.J_PN_SymbianKitEpoc32Dir , "" )); //$NON-NLS-1$
   304 			epoc32DirPath.setText(configuration.getAttribute( PreferenceConstants.J_PN_SymbianKitEpoc32Dir , "" )); //$NON-NLS-1$
   318 			logUnresolvedModules.setSelection(configuration.getAttribute( PreferenceConstants.J_PN_LogUnresolved , false ));
   305 			logUnresolvedModules.setSelection(configuration.getAttribute( PreferenceConstants.J_PN_LogUnresolved , false ));
   319 			debugNonXip.setSelection(configuration.getAttribute( PreferenceConstants.J_PN_DebugNonXip , false ));
       
   320 
   306 
   321 			downloadImgGroup.setSelection(configuration.getAttribute( PreferenceConstants.J_PN_DownloadRomImage , false ));
   307 			downloadImgGroup.setSelection(configuration.getAttribute( PreferenceConstants.J_PN_DownloadRomImage , false ));
   322 			osImagePath.setText(configuration.getAttribute( PreferenceConstants.J_PN_RomImagePath , "" )); //$NON-NLS-1$
   308 			osImagePath.setText(configuration.getAttribute( PreferenceConstants.J_PN_RomImagePath , "" )); //$NON-NLS-1$
   323 			
   309 			
   324 			int downloadAddressValue = configuration.getAttribute( PreferenceConstants.J_PN_DownloadAddress , 0);
   310 			int downloadAddressValue = configuration.getAttribute( PreferenceConstants.J_PN_DownloadAddress , 0);
   343 		if ((epoc32Dir!=null) && (epoc32Dir.length()>0) && (epoc32Dir.charAt(epoc32Dir.length()-1) == '\\')) {
   329 		if ((epoc32Dir!=null) && (epoc32Dir.length()>0) && (epoc32Dir.charAt(epoc32Dir.length()-1) == '\\')) {
   344 			epoc32Dir = epoc32Dir.substring(0, epoc32Dir.length()-1);
   330 			epoc32Dir = epoc32Dir.substring(0, epoc32Dir.length()-1);
   345 		}	
   331 		}	
   346 		configuration.setAttribute( PreferenceConstants.J_PN_SymbianKitEpoc32Dir, epoc32Dir);
   332 		configuration.setAttribute( PreferenceConstants.J_PN_SymbianKitEpoc32Dir, epoc32Dir);
   347 		configuration.setAttribute( PreferenceConstants.J_PN_LogUnresolved, logUnresolvedModules.getSelection());		
   333 		configuration.setAttribute( PreferenceConstants.J_PN_LogUnresolved, logUnresolvedModules.getSelection());		
   348 		configuration.setAttribute( PreferenceConstants.J_PN_DebugNonXip, debugNonXip.getSelection());
       
   349 		
   334 		
   350 		configuration.setAttribute( PreferenceConstants.J_PN_DownloadRomImage, downloadImgGroup.getSelection());
   335 		configuration.setAttribute( PreferenceConstants.J_PN_DownloadRomImage, downloadImgGroup.getSelection());
   351 		configuration.setAttribute( PreferenceConstants.J_PN_RomImagePath, osImagePath.getText());
   336 		configuration.setAttribute( PreferenceConstants.J_PN_RomImagePath, osImagePath.getText());
   352 		
   337 		
   353 		String downloadAddressText = downloadAddress.getText().trim().toLowerCase();
   338 		String downloadAddressText = downloadAddress.getText().trim().toLowerCase();