-package fi.vtt.simantics.procore.internal;\r
-\r
-import java.io.File;\r
-\r
-import org.eclipse.core.runtime.IPath;\r
-import org.eclipse.core.runtime.Platform;\r
-import org.osgi.framework.Bundle;\r
-\r
-public class Utils {\r
- public static File getBaseFile(Bundle b) {\r
- if(Platform.isRunning()) {\r
- IPath state = Platform.getStateLocation(b);\r
- return state.append("debug").toFile();\r
- } else {\r
- return new File("");\r
- }\r
- }\r
- public static long convertHexStringToLong(String hex) {\r
- if (hex.length() < 16)\r
- return Long.parseLong(hex, 16);\r
- long f = Long.parseLong(hex.substring(0,1), 16) << 60;\r
- long l = Long.parseLong(hex.substring(1,16), 16);\r
- return f | l;\r
- }\r
-}\r
+package fi.vtt.simantics.procore.internal;
+
+import java.io.File;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Platform;
+import org.osgi.framework.Bundle;
+
+public class Utils {
+ public static File getBaseFile(Bundle b) {
+ if(Platform.isRunning()) {
+ IPath state = Platform.getStateLocation(b);
+ return state.append("debug").toFile();
+ } else {
+ return new File("");
+ }
+ }
+ public static long convertHexStringToLong(String hex) {
+ if (hex.length() < 16)
+ return Long.parseLong(hex, 16);
+ long f = Long.parseLong(hex.substring(0,1), 16) << 60;
+ long l = Long.parseLong(hex.substring(1,16), 16);
+ return f | l;
+ }
+}