]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.procore.ui/src/org/simantics/db/procore/ui/internal/UI.java
Externalize strings in org.simantics.db.procore.ui
[simantics/platform.git] / bundles / org.simantics.db.procore.ui / src / org / simantics / db / procore / ui / internal / UI.java
index 00cca9311329ff43eaf8afe4ae0835d69139a0d4..a36c6a20dc246e810b0404f739985050be4d9c1f 100644 (file)
@@ -19,10 +19,10 @@ import org.simantics.db.server.ProCoreException;
 
 public class UI {
     public static boolean delete(Shell shell, File folder) {
 
 public class UI {
     public static boolean delete(Shell shell, File folder) {
-        return HandlerUtil.delete(shell, folder, "Database Delete", null);
+        return HandlerUtil.delete(shell, folder, Messages.UI_DatabaseDelete, null);
     }
     public static boolean purge(Shell shell, File folder) {
     }
     public static boolean purge(Shell shell, File folder) {
-        return HandlerUtil.purge(shell, folder, "Database Purge", null);
+        return HandlerUtil.purge(shell, folder, Messages.UI_DatabasePurge, null);
     }
     public static boolean handleStart(Shell shell, InternalException e) throws ProCoreException {
         if (!(e instanceof ProCoreException))
     }
     public static boolean handleStart(Shell shell, InternalException e) throws ProCoreException {
         if (!(e instanceof ProCoreException))
@@ -50,7 +50,7 @@ public class UI {
     private static <E extends ProCoreException> long getId(E pe) {
         long id = 0;
         try {
     private static <E extends ProCoreException> long getId(E pe) {
         long id = 0;
         try {
-            Method m = pe.getClass().getMethod("getHandlerId");
+            Method m = pe.getClass().getMethod("getHandlerId"); //$NON-NLS-1$
             Object value = m.invoke(null);
             id = (long)value;
         } catch (RuntimeException e) {
             Object value = m.invoke(null);
             id = (long)value;
         } catch (RuntimeException e) {