ref #9537: new label for ratio to
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / UseObjectManager.java
index 4755d34bccd3b39fa3b56299bd20ee447d2788fc..747e0b69e02d32fc1c82f2092e1dfd8c12b8cd07 100644 (file)
@@ -11,6 +11,7 @@ package eu.etaxonomy.taxeditor.editor;
 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
@@ -19,22 +20,25 @@ import eu.etaxonomy.taxeditor.store.UseObjectStore;
 /**\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