Révision 1235
tmp/org.txm.translate.rcp/src/org/txm/rcp/translate/i18n/PluginMessages.java (revision 1235) | ||
---|---|---|
314 | 314 |
// test to find files using the specified key |
315 | 315 |
HashMap<File, String> files = dict.getFilesUsingKey("Base_5"); |
316 | 316 |
for (Map.Entry<File, String> entry : files.entrySet()) { |
317 |
System.out.println("find files using keys: file " + entry.getKey() + " contains key " + entry.getValue());
|
|
317 |
System.out.println("find files using key: file " + entry.getKey() + " contains key " + entry.getValue()); |
|
318 | 318 |
} |
319 | 319 |
|
320 | 320 |
// test to find unused keys |
321 | 321 |
ArrayList<String> unusedKeys = dict.findUnusedKeys(); |
322 | 322 |
for (int i = 0; i < unusedKeys.size(); i++) { |
323 |
System.out.println("findUnusedKeys: key " + unusedKeys.get(i) + " is unused in project " + dict.getProjectDirectory() + " (main lang value = " + dict.getMessagesForLang("").get(unusedKeys.get(i)) + ")"); |
|
323 |
System.out.println("findUnusedKeys: key " + unusedKeys.get(i) + " is unused in project " + dict.getProjectDirectory() + " (main language value = " + dict.getMessagesForLang("").get(unusedKeys.get(i)) + ")");
|
|
324 | 324 |
} |
325 | 325 |
|
326 | 326 |
|
tmp/org.txm.translate.rcp/src/org/txm/rcp/translate/i18n/WorkspaceMessagesManager.java (revision 1235) | ||
---|---|---|
74 | 74 |
public File getWorkspaceLocation() { |
75 | 75 |
return workspaceLocation; |
76 | 76 |
} |
77 |
|
|
78 |
// TODO |
|
79 |
// dedicated to get a manager that use the specified key in the project source files for example to move an unused message to another plugin (move dedicated string from core/rcp to dedicated plugin) |
|
80 |
public PluginMessages getPluginMessagesManagersUsingKey(String key) { |
|
81 |
return null; |
|
82 |
} |
|
83 |
|
|
77 | 84 |
} |
Formats disponibles : Unified diff