org.eclipse.m2m.atl.adt.launching.sourcelookup
Class AtlSourceLocator

java.lang.Object
  extended by org.eclipse.m2m.atl.adt.launching.sourcelookup.AtlSourceLocator
All Implemented Interfaces:
org.eclipse.debug.core.model.ISourceLocator

public class AtlSourceLocator
extends java.lang.Object
implements org.eclipse.debug.core.model.ISourceLocator


Constructor Summary
AtlSourceLocator()
           
 
Method Summary
 java.lang.Object getSourceElement(org.eclipse.debug.core.model.IStackFrame stackFrame)
          Returns a source element that corresponds to the given stack frame, or null if a source element could not be located.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtlSourceLocator

public AtlSourceLocator()
Method Detail

getSourceElement

public java.lang.Object getSourceElement(org.eclipse.debug.core.model.IStackFrame stackFrame)
Returns a source element that corresponds to the given stack frame, or null if a source element could not be located. The object returned by this method will be used by the debug UI plug-in to display source. The debug UI uses the debug model presentation associated with the given stack frame's debug model to translate a source object into an {editor input, editor id} pair in which to display source. For example, a java source locator could return an object representing a compilation unit or class file. The java debug model presentation would then be responsible for providing an editor input and editor id for each compilation unit and class file such that the debug UI could display source.

Specified by:
getSourceElement in interface org.eclipse.debug.core.model.ISourceLocator
See Also:
ISourceLocator.getSourceElement(IStackFrame)

Copyright 2007 IBM Corporation and others.
All Rights Reserved.