Package org.erlide.backend.launch

Source Code of org.erlide.backend.launch.ErlangSourceLookupParticipant

package org.erlide.backend.launch;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.sourcelookup.AbstractSourceLookupParticipant;
import org.erlide.backend.debug.model.ErlangStackFrame;

public class ErlangSourceLookupParticipant extends AbstractSourceLookupParticipant {

    public ErlangSourceLookupParticipant() {
        super();
    }

    @Override
    public String getSourceName(final Object object) throws CoreException {
        if (!(object instanceof ErlangStackFrame)) {
            return null;
        }
        final ErlangStackFrame f = (ErlangStackFrame) object;
        return f.getModule() + ".erl";
    }
}
TOP

Related Classes of org.erlide.backend.launch.ErlangSourceLookupParticipant

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.