Newer
Older
org.ntlab.reverseDebugger / org.ntlab.reverseDebugger / src / org / ntlab / reverseDebugger / ReverseDebuggerLaunchConfiguration.java
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();
	}
}