Hi,
I am trying to customize the memory views of eclipse for our debugger tool.
The article : http://www.eclipse.org/articles/article.php?file=Article-MemoryView/index.html by Samantha Chan helped a lot in this context.
And I am successful in changing the color and text of memory view renderings : hex, ASCII, signed integer etc.
But failed to do it in traditional rendering .Since I am working with ‘memory browser’ view, this is a real blockage.
Quoting from article:
This is the function added in our MemoryBlock class for returning the customized adapters
=======================================================================================================
public Object getAdapter(Class adapter) {
if (adapter.equals(IMemoryBlockRetrievalExtension.class))
return getDebugTarget();
if (adapter == IColorProvider.class)
{
return SampleModelPresentation.getSampleModelPresentation();
}
return super.getAdapter(adapter);
}
=============================================================================================
I am not getting the adapter classes for ILabelProvider and IColorProvider in case of traditional rendering.
Could you please help me sorting this out :
· why these adapters are not registered in case of traditional rendering only .
· Is there any other method for customizing the memory browser (traditional rendering) view.
(I am using the default dsf-gdb debug model, id=”org.eclipse.cdt.dsf.gdb”)
Thanks and regards,
Nipin