01: package org.drools.eclipse.launching;
02:
03: import org.eclipse.core.runtime.CoreException;
04: import org.eclipse.core.runtime.IProgressMonitor;
05: import org.eclipse.debug.core.ILaunchConfiguration;
06: import org.eclipse.debug.core.sourcelookup.ISourceContainer;
07: import org.eclipse.debug.core.sourcelookup.ISourcePathComputerDelegate;
08: import org.eclipse.debug.core.sourcelookup.containers.WorkspaceSourceContainer;
09:
10: public class DroolsSourcePathComputerDelegate implements
11: ISourcePathComputerDelegate {
12:
13: public ISourceContainer[] computeSourceContainers(
14: ILaunchConfiguration configuration, IProgressMonitor monitor)
15: throws CoreException {
16: // TODO this shows up the rule in the bin dir
17: // should try to reuse JavaSourcePathComputer
18: return new ISourceContainer[] { new WorkspaceSourceContainer() };
19: }
20:
21: }
|