59cdae3385a514508c0fc87a4a380d21aea8f45a
[phpeclipse.git] /
1 package net.sourceforge.phpeclipse.xdebug.php.launching;
2
3 import net.sourceforge.phpeclipse.xdebug.php.model.XDebugStackFrame;
4
5 import org.eclipse.core.runtime.CoreException;
6 import org.eclipse.debug.core.sourcelookup.AbstractSourceLookupParticipant;
7
8 public class PHPSourceLookupParticipant extends AbstractSourceLookupParticipant {
9
10         public String getSourceName(Object object) throws CoreException {
11                 if (object instanceof XDebugStackFrame) {
12                         return ((XDebugStackFrame) object).getSourceName();
13                 }
14                 return null;
15         }
16
17 }