1 package fi.vtt.simantics.procore.internal;
\r
5 import org.eclipse.core.runtime.IPath;
\r
6 import org.eclipse.core.runtime.Platform;
\r
7 import org.osgi.framework.Bundle;
\r
10 public static File getBaseFile(Bundle b) {
\r
11 if(Platform.isRunning()) {
\r
12 IPath state = Platform.getStateLocation(b);
\r
13 return state.append("debug").toFile();
\r
15 return new File("");
\r
18 public static long convertHexStringToLong(String hex) {
\r
19 if (hex.length() < 16)
\r
20 return Long.parseLong(hex, 16);
\r
21 long f = Long.parseLong(hex.substring(0,1), 16) << 60;
\r
22 long l = Long.parseLong(hex.substring(1,16), 16);
\r