mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Added the TERMINATE event handler to MemoryViewEventHandler.
This commit is contained in:
parent
720f69e706
commit
595e7ffbc7
3 changed files with 30 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2002-11-20 Mikhail Khodjaiants
|
||||||
|
Added the TERMINATE event handler to MemoryViewEventHandler.
|
||||||
|
* MemoryViewer.java
|
||||||
|
* MemoryViewEventHandler.java
|
||||||
|
|
||||||
2002-11-20 Mikhail Khodjaiants
|
2002-11-20 Mikhail Khodjaiants
|
||||||
Fix for bug 26595.
|
Fix for bug 26595.
|
||||||
Highlight the addresses if the start address of a memory expression has changed.
|
Highlight the addresses if the start address of a memory expression has changed.
|
||||||
|
|
|
@ -46,6 +46,14 @@ public class MemoryViewEventHandler extends AbstractDebugEventHandler
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case DebugEvent.TERMINATE:
|
||||||
|
if ( event.getSource() instanceof IFormattedMemoryBlock )
|
||||||
|
{
|
||||||
|
remove( event.getSource() );
|
||||||
|
getView().updateObjects();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -73,4 +81,9 @@ public class MemoryViewEventHandler extends AbstractDebugEventHandler
|
||||||
getViewer().refresh();
|
getViewer().refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void remove( Object element )
|
||||||
|
{
|
||||||
|
((MemoryViewer)getViewer()).remove( element );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,6 +120,18 @@ public class MemoryViewer extends ContentViewer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void remove( Object element )
|
||||||
|
{
|
||||||
|
if ( element instanceof IFormattedMemoryBlock )
|
||||||
|
{
|
||||||
|
MemoryControlArea mca = getMemoryControlArea( (IFormattedMemoryBlock)element );
|
||||||
|
if ( mca != null )
|
||||||
|
{
|
||||||
|
mca.clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.jface.viewers.Viewer#setSelection(ISelection, boolean)
|
* @see org.eclipse.jface.viewers.Viewer#setSelection(ISelection, boolean)
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue