Revision 2496

tmp/org.txm.rcp/src/main/java/org/txm/rcp/corpuswizard/SourceDirectoryPage.java (revision 2496)
78 78
					RCPPreferences.getInstance().put("lastSourcesLocation", path);
79 79
					RCPPreferences.getInstance().flush();
80 80
					
81
					corpusName.setText(AsciiUtils.buildId(new File(path).getName()).toUpperCase());
81
					String fixed = AsciiUtils.buildId(new File(path).getName()).toUpperCase();
82
					if (fixed.length() == 0) {
83
						Log.warning(
84
								"Warning: corpus name normalization: no valid character available to build the corpus name (try to use some American English - ASCII - characters in the folder name)");
85
					}
86
					corpusName.setText(fixed);
82 87
					
83 88
					setPageComplete(isCompleted());
84 89
				}

Also available in: Unified diff