debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/FileTransferTab.java
changeset 664 18b0c24adafe
parent 245 0575745dfefb
child 672 d1a48eefce6b
equal deleted inserted replaced
660:749482434cfa 664:18b0c24adafe
    16 */
    16 */
    17 package com.nokia.cdt.internal.debug.launch.ui;
    17 package com.nokia.cdt.internal.debug.launch.ui;
    18 
    18 
    19 import com.nokia.cdt.debug.cw.symbian.SettingsData;
    19 import com.nokia.cdt.debug.cw.symbian.SettingsData;
    20 import com.nokia.cdt.internal.debug.launch.LaunchPlugin;
    20 import com.nokia.cdt.internal.debug.launch.LaunchPlugin;
       
    21 import com.nokia.cpp.internal.api.utils.core.HostOS;
    21 
    22 
    22 import cwdbg.PreferenceConstants;
    23 import cwdbg.PreferenceConstants;
    23 
    24 
    24 import org.eclipse.cdt.launch.ui.CLaunchConfigurationTab;
    25 import org.eclipse.cdt.launch.ui.CLaunchConfigurationTab;
    25 import org.eclipse.core.runtime.*;
    26 import org.eclipse.core.runtime.*;
    88 				String filesString = configuration.getAttribute(PreferenceConstants.J_PN_FilesToTransfer, ""); //$NON-NLS-1$
    89 				String filesString = configuration.getAttribute(PreferenceConstants.J_PN_FilesToTransfer, ""); //$NON-NLS-1$
    89 				if (filesString.length() > 0) {
    90 				if (filesString.length() > 0) {
    90 					StringTokenizer tokenizer = new StringTokenizer(filesString, ","); //$NON-NLS-1$
    91 					StringTokenizer tokenizer = new StringTokenizer(filesString, ","); //$NON-NLS-1$
    91 					while (tokenizer.hasMoreTokens()) {
    92 					while (tokenizer.hasMoreTokens()) {
    92 						IPath hp = new Path(tokenizer.nextToken());
    93 						IPath hp = new Path(tokenizer.nextToken());
    93 						IPath tp = new Path(tokenizer.nextToken());
    94 						IPath tp = HostOS.createPathFromString(tokenizer.nextToken());
    94 						// ensure there was no filename before
    95 						// ensure there was no filename before
    95 						if (tp.getFileExtension() == null) {
    96 						if (tp.getFileExtension() == null) {
    96 							tp = tp.append(hp.lastSegment());
    97 							tp = tp.append(hp.lastSegment());
    97 						}
    98 						}
    98 						String enabled = tokenizer.nextToken();
    99 						String enabled = tokenizer.nextToken();