1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Implementing the 'Switch to disassembly mode' action.

This commit is contained in:
Mikhail Khodjaiants 2002-10-11 21:41:50 +00:00
parent 736dbc1bec
commit 92c7884bc3
3 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2002-10-11 Mikhail Khodjaiants
* CDebugTarget.java: Added return for ISourceMode to 'getAdapter'.
* CSourceManager.java: Set the real mode when setting the source mode.
2002-10-11 Mikhail Khodjaiants
* DisassemblyStorage.java: Changed the format of the disassembly view's output.

View file

@ -790,6 +790,13 @@ public class CDebugTarget extends CDebugElement
return this;
if ( adapter.equals( ICDebugTargetType.class ) )
return this;
if ( adapter.equals( ISourceMode.class ) )
{
if ( getSourceLocator() instanceof ISourceMode )
{
return getSourceLocator();
}
}
return super.getAdapter( adapter );
}

View file

@ -109,6 +109,7 @@ public class CSourceManager implements ICSourceLocator, ISourceMode, IAdaptable
public void setMode( int mode )
{
fMode = mode;
setRealMode( mode );
}
public int getRealMode()