Lines 33-38
Link Here
|
33 |
import javax.swing.JFileChooser; |
33 |
import javax.swing.JFileChooser; |
34 |
import javax.swing.JPanel; |
34 |
import javax.swing.JPanel; |
35 |
|
35 |
|
|
|
36 |
import org.apache.commons.io.FilenameUtils; |
36 |
import org.apache.jmeter.gui.util.FileDialoger; |
37 |
import org.apache.jmeter.gui.util.FileDialoger; |
37 |
import org.apache.jmeter.util.JMeterUtils; |
38 |
import org.apache.jmeter.util.JMeterUtils; |
38 |
|
39 |
|
Lines 115-123
Link Here
|
115 |
return; |
116 |
return; |
116 |
} |
117 |
} |
117 |
|
118 |
|
118 |
setValue(chooser.getSelectedFile().getPath()); |
119 |
setValue(toUnix(chooser.getSelectedFile())); |
119 |
} |
120 |
} |
120 |
|
121 |
|
|
|
122 |
private String toUnix(final File file) { |
123 |
if (File.separatorChar == '\\') { |
124 |
return FilenameUtils.separatorsToUnix(file.getPath()); |
125 |
} |
126 |
return file.getPath(); |
127 |
} |
128 |
|
121 |
/** |
129 |
/** |
122 |
* {@inheritDoc} |
130 |
* {@inheritDoc} |
123 |
*/ |
131 |
*/ |
Lines 226-233
Link Here
|
226 |
} |
234 |
} |
227 |
|
235 |
|
228 |
@Override |
236 |
@Override |
229 |
public void setAsText(String text) throws IllegalArgumentException { |
237 |
public void setAsText(String text) { |
230 |
super.setValue(new File(text)); |
238 |
super.setValue(text); |
231 |
} |
239 |
} |
232 |
} |
240 |
} |
233 |
} |
241 |
} |