package org.ntlab.reverseDebugger;
import java.io.IOException;
import org.eclipse.core.runtime.FileLocator;
import org.ntlab.traceCollector.IAdditionalLaunchConfiguration;
public class ReverseDebuggerLaunchConfiguration implements IAdditionalLaunchConfiguration {
public static final String ANALYZER_PATH = "org/ntlab/reverseDebugger/OnlineTraceAnalyzer.class";
@Override
public String[] getAdditionalClasspath() {
try {
String tracerClassPath = FileLocator.resolve(this.getClass().getClassLoader().getResource(ANALYZER_PATH)).getPath();
String classPath = tracerClassPath.substring(1, tracerClassPath.length() - ANALYZER_PATH.length());
return new String[]{classPath};
} catch (IOException e) {
e.printStackTrace();
}
throw new IllegalStateException();
}
}