Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Modifying what is shown in the variable detail view

I think the diff detail pane is a really cool idea!  But I think you should be able to keep the whole implementation confined to the detail pane itself.  A preference controlled by a context menu toggle in the detail pane would be my preference.

Cheers,
Pawel

On 12/15/2011 03:21 AM, Phil (Philip) Mason wrote:

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



_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top