import org.eclipse.core.runtime.IProgressMonitor;\r
import org.eclipse.ui.IMemento;\r
\r
+import eu.etaxonomy.taxeditor.editor.l10n.Messages;\r
import eu.etaxonomy.taxeditor.model.ContextListenerAdapter;\r
import eu.etaxonomy.taxeditor.model.MessagingUtils;\r
import eu.etaxonomy.taxeditor.store.CdmStore;\r
/**\r
* The context listener will call this class when a new context is started.\r
* It will reset the UseObjectStore to guarantee the static\r
- * content of the store will be refreshed each time we load a new context. \r
+ * content of the store will be refreshed each time we load a new context.\r
* @author a.theys\r
* @author a.mueller\r
* @created mar 13, 2012\r
*/\r
public class UseObjectManager extends ContextListenerAdapter{\r
\r
- public UseObjectManager() {\r
+ private static final String RESET_USAGE_DATA = Messages.UseObjectManager_RESET_DATA;\r
+\r
+\r
+ public UseObjectManager() {\r
CdmStore.getContextManager().addContextListener(this);\r
}\r
\r
\r
@Override\r
public void contextRefresh(IProgressMonitor monitor) {\r
- monitor.subTask("Reset usage data");\r
- MessagingUtils.warn(getClass(), "Reset usage data");\r
+ monitor.subTask(RESET_USAGE_DATA);\r
+ MessagingUtils.warn(getClass(), RESET_USAGE_DATA);\r
UseObjectStore.reset();\r
}\r
\r