mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
Stack frame should provide an adapter for IRunToLine.
This commit is contained in:
parent
8bcd0490f9
commit
ead83ba6f7
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-04-11 Mikhail Khodjaiants
|
||||||
|
Stack frame should provide an adapter for IRunToLine.
|
||||||
|
* CStackFrame.java
|
||||||
|
|
||||||
2004-04-08 Mikhail Khodjaiants
|
2004-04-08 Mikhail Khodjaiants
|
||||||
Implementing retargettable actions.
|
Implementing retargettable actions.
|
||||||
* IRunToAddress.java
|
* IRunToAddress.java
|
||||||
|
|
|
@ -21,6 +21,7 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIStackFrame;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIVariableObject;
|
import org.eclipse.cdt.debug.core.cdi.model.ICDIVariableObject;
|
||||||
import org.eclipse.cdt.debug.core.model.IRestart;
|
import org.eclipse.cdt.debug.core.model.IRestart;
|
||||||
import org.eclipse.cdt.debug.core.model.IResumeWithoutSignal;
|
import org.eclipse.cdt.debug.core.model.IResumeWithoutSignal;
|
||||||
|
import org.eclipse.cdt.debug.core.model.IRunToLine;
|
||||||
import org.eclipse.cdt.debug.core.model.IStackFrameInfo;
|
import org.eclipse.cdt.debug.core.model.IStackFrameInfo;
|
||||||
import org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocator;
|
import org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocator;
|
||||||
import org.eclipse.core.runtime.IAdaptable;
|
import org.eclipse.core.runtime.IAdaptable;
|
||||||
|
@ -549,9 +550,8 @@ public class CStackFrame extends CDebugElement
|
||||||
*/
|
*/
|
||||||
public Object getAdapter( Class adapter )
|
public Object getAdapter( Class adapter )
|
||||||
{
|
{
|
||||||
if ( adapter == CStackFrame.class )
|
if ( adapter == IRunToLine.class ) {
|
||||||
{
|
return getDebugTarget().getAdapter( adapter );
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
if ( adapter == IStackFrame.class )
|
if ( adapter == IStackFrame.class )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue