Révision 1297
tmp/org.txm.translate.rcp/src/org/txm/rcp/translate/i18n/PluginMessagesManager.java (revision 1297) | ||
---|---|---|
79 | 79 |
/** |
80 | 80 |
* Index of the keys used and their associated files. |
81 | 81 |
*/ |
82 |
protected TreeMap<String, TreeSet<File>> usedKeysFilesIndex; |
|
82 |
protected TreeMap<String, TreeSet<File>> usedKeysFilesIndex = new TreeMap<String, TreeSet<File>>();
|
|
83 | 83 |
|
84 | 84 |
/** |
85 | 85 |
* the XXXMessages.java messages keys |
... | ... | |
275 | 275 |
} |
276 | 276 |
} |
277 | 277 |
else { |
278 |
System.err.println("PluginMessagesManager.PluginMessagesManager(): skipped, java message file not found for project " + this.projectDirectory + "."); |
|
278 |
if (debug) { |
|
279 |
System.err.println("PluginMessagesManager.PluginMessagesManager(): skipped, java message file not found for project " + this.projectDirectory + "."); |
|
280 |
} |
|
279 | 281 |
} |
280 | 282 |
} |
281 | 283 |
|
... | ... | |
342 | 344 |
if (!messagesPackageDir.exists()) { |
343 | 345 |
messagesPackageDir = new File(projectDirectory2, "src/java/"+projectDirectory2.getName().replaceAll("\\.", "/")+"/messages"); |
344 | 346 |
} |
345 |
|
|
347 |
|
|
346 | 348 |
if (!messagesPackageDir.exists()) { |
347 | 349 |
messagesPackageDir = new File(projectDirectory2, "src/main/java/"+projectDirectory2.getName().replaceAll("\\.", "/")+"/messages"); |
348 | 350 |
} |
349 |
|
|
351 |
|
|
350 | 352 |
if (!messagesPackageDir.exists()) { |
351 | 353 |
return null; |
352 | 354 |
} |
353 |
|
|
355 |
|
|
354 | 356 |
for (File messagesJavaFile : messagesPackageDir.listFiles()) { |
355 | 357 |
if (messagesJavaFile.isDirectory()) continue; |
356 | 358 |
if (!messagesJavaFile.getName().endsWith("Messages.java")) continue; |
Formats disponibles : Unified diff