comparison dwtx/jface/preference/PathEditor.d @ 50:7f9034e47984

Fix path separators
author Frank Benoit <benoit@tionex.de>
date Fri, 11 Apr 2008 17:09:04 +0200
parents ea8ff534f622
children 7ffeace6c47f
comparison
equal deleted inserted replaced
49:115258985f10 50:7f9034e47984
70 protected override String createList(String[] items) { 70 protected override String createList(String[] items) {
71 StringBuffer path = new StringBuffer("");//$NON-NLS-1$ 71 StringBuffer path = new StringBuffer("");//$NON-NLS-1$
72 72
73 for (int i = 0; i < items.length; i++) { 73 for (int i = 0; i < items.length; i++) {
74 path.append(items[i]); 74 path.append(items[i]);
75 path.append(FileConst.PathSeparatorString); 75 path.append(FileConst.SystemPathString);
76 } 76 }
77 return path.toString(); 77 return path.toString();
78 } 78 }
79 79
80 /* (non-Javadoc) 80 /* (non-Javadoc)
105 105
106 /* (non-Javadoc) 106 /* (non-Javadoc)
107 * Method declared on ListEditor. 107 * Method declared on ListEditor.
108 */ 108 */
109 protected override String[] parseString(String stringList) { 109 protected override String[] parseString(String stringList) {
110 return tango.text.Util.delimit(stringList.dup, FileConst.PathSeparatorString 110 return tango.text.Util.delimit(stringList.dup, FileConst.SystemPathString
111 ~ "\n\r");//$NON-NLS-1$ 111 ~ "\n\r");//$NON-NLS-1$
112 } 112 }
113 } 113 }