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