Hi Pawel,
> It would help to know more context of
what you're trying to do.
Basically I’m
trying to give the user the ability to hide to hide most of
the radices shown in the detail pane. The use case is
selecting and comparing multiple elements. For example if
several members of an array of structures are selected the
detail pane currently shows:
Name :
tempStruct[0]
Details:{a = 2, b = 3}
Default:{...}
Decimal:{...}
Hex:{...}
Binary:{...}
Octal:{...}
Name :
tempStruct[1]
Details:{a = 3, b = 7}
Default:{...}
Decimal:{...}
Hex:{...}
Binary:{...}
Octal:{...}
Which contains
a lot of lines that don’t supply much information and make
comparisons harder. I’ve been asked to add a menu option to
limit the display to
Name :
tempStruct[0]
Details:{a = 2, b = 3}
Name :
tempStruct[1]
Details:{a = 3, b = 7}
Name :
tempStruct[2]
Details:{a = 5, b = 31}
Or even better
Name :
tempStruct[0] Details:{a = 2, b = 3}
Name :
tempStruct[1] Details:{a = 3, b = 7}
Name :
tempStruct[2] Details:{a = 5, b = 31}
I thought the right way to do this would
be to add an additional property in IDebugVMConstants (where things like
the current radix are stored) called something like
PROP_ONLY_SHOW_DETAILS. I could then read that property in
DetailJob where the contents of the detail pane is computed
and control the output accordingly.
I hope that
provides enough context. I’ve already got a partial solution
in place (I’ve added the menu item, property and updated
what is displayed) but I have to read the state of my new
property directly from the context rather than adding it to
the list supplied to the properties provider. I also need to
work out how to cause the display to repaint when the
property is changed. Any suggestions about either of these
would be great.
All the best
Phil