Compatibility fragment commit
[phpeclipse.git] / net.sourceforge.phpeclipse.32.compatibility / src / net / sourceforge / phpeclipse / xdebug / php / launching / PHPSourceLookupParticipant.java
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 }