Revision 1318

tmp/org.txm.translate.rcp/src/org/txm/rcp/translate/devtools/NormalizeKeys.java (revision 1318)
284 284
//		
285 285
//		wmm.saveKeyModificationsInSources();
286 286
		
287
		//File projectFile = new File(new File(System.getProperty("user.dir")).getParentFile().getAbsolutePath() + "/org.txm.core");
288
		File projectFile = new File(new File(System.getProperty("user.dir")).getParentFile().getAbsolutePath() + "/org.txm.progression.core");
289
		PluginMessagesManager pmManager = new PluginMessagesManager(projectFile, true);
290
		keysNormalizer.normalize(pmManager);
287

  
288
		WorkspaceMessagesManager wmm = new WorkspaceMessagesManager(false);
289
		
290
		for (PluginMessagesManager pmManager : wmm.getPluginMessages().values()) {
291
			if (!pmManager.getProjectDirectory().getName().equals("org.txm.chartsengine.core")) continue;
292

  
293

  
294
			System.out.println("KEYS="+pmManager.getMessageKeys());
295
			keysNormalizer.normalize(pmManager);
296
			System.out.println("KEYS2="+pmManager.getMessageKeys());
297
			System.out.println("MODIFS="+pmManager.getKeyModifications());
298
			pmManager.saveChanges(true); // mode homme
299

  
300
			//pmManager.saveChanges(false);
291 301
			
292
			//pmManager.saveChanges(true); // mode homme
293
			//pmManager.saveChanges(false);
302
			System.out.println("INDEX="+pmManager.getUsedKeysFilesIndex());
294 303
		}
295
		
304

  
305
		//System.out.println("FULLINDEX="+wmm.getUsedKeysFilesIndex().);
306
		//wmm.saveKeyModificationsInSources();
307
	}
296 308
}

Also available in: Unified diff