Skip to content

Commit bec31f4

Browse files
author
jantje
committed
tidy up long filenames must use / on all oses
1 parent 6603e84 commit bec31f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

io.sloeber.ui/src/io/sloeber/ui/project/properties/BoardSelectionPage.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,13 @@ public void draw(Composite composite) {
266266
}
267267

268268
private static String[] tidyUpLength(String[] pLongNames) {
269+
final String separator = "/"; //$NON-NLS-1$
269270
ArrayList<String> shortNames = new ArrayList<>();
270271
for (String longName : pLongNames) {
271-
String[] pathParts = longName.split(File.separator);
272+
System.err.println(longName);
273+
String[] pathParts = longName.split(separator);
272274
if (pathParts.length > 10) {
273-
StringJoiner sj = new StringJoiner(File.separator);
275+
StringJoiner sj = new StringJoiner(separator);
274276
sj.add(pathParts[0]);
275277
sj.add(pathParts[1]);
276278
sj.add(pathParts[2]);

0 commit comments

Comments
 (0)