debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/AddEditFileToTransferDialog.java
changeset 674 20c7966a3405
parent 664 18b0c24adafe
equal deleted inserted replaced
673:bc9a74f8e67b 674:20c7966a3405
    36 import org.eclipse.swt.widgets.Label;
    36 import org.eclipse.swt.widgets.Label;
    37 import org.eclipse.swt.widgets.Shell;
    37 import org.eclipse.swt.widgets.Shell;
    38 import org.eclipse.swt.widgets.Text;
    38 import org.eclipse.swt.widgets.Text;
    39 import org.eclipse.ui.PlatformUI;
    39 import org.eclipse.ui.PlatformUI;
    40 
    40 
    41 import com.nokia.cpp.internal.api.utils.core.HostOS;
    41 import com.nokia.cpp.internal.api.utils.ui.BrowseDialogUtils;
    42 
    42 
    43 public class AddEditFileToTransferDialog extends StatusDialog {
    43 public class AddEditFileToTransferDialog extends StatusDialog {
    44 
    44 
    45 	private FileToTransfer fFile;
    45 	private FileToTransfer fFile;
    46 	private Text hostPath;
    46 	private Text hostPath;
   105 				FileDialog dialog = new FileDialog(getShell(), SWT.NONE);
   105 				FileDialog dialog = new FileDialog(getShell(), SWT.NONE);
   106 
   106 
   107 				dialog.setText(Messages.getString("AddEditFileToTransferDialog.4")); //$NON-NLS-1$
   107 				dialog.setText(Messages.getString("AddEditFileToTransferDialog.4")); //$NON-NLS-1$
   108 				dialog.setFilterExtensions(new String[] {"*"}); //$NON-NLS-1$
   108 				dialog.setFilterExtensions(new String[] {"*"}); //$NON-NLS-1$
   109 				dialog.setFilterNames(new String[] {Messages.getString("AddEditFileToTransferDialog.11")}); //$NON-NLS-1$
   109 				dialog.setFilterNames(new String[] {Messages.getString("AddEditFileToTransferDialog.11")}); //$NON-NLS-1$
   110 
   110 				
       
   111 				BrowseDialogUtils.initializeFrom(dialog, hostPath);
       
   112 				
   111 				String result = dialog.open();
   113 				String result = dialog.open();
   112 				if (result != null) {
   114 				if (result != null) {
   113 					IPath path = new Path(result);
   115 					IPath path = new Path(result);
   114 					if (path.toFile().exists()) {
   116 					if (path.toFile().exists()) {
   115 						hostPath.setText(result);
   117 						hostPath.setText(result);