1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 02:36: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 2002-10-11 Mikhail Khodjaiants
* DisassemblyStorage.java: Changed the format of the disassembly view's output. * DisassemblyStorage.java: Changed the format of the disassembly view's output.

View file

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

View file

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