| Summary: | The version number can not be changed after the ValgrindOptionTab has been initialized | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Linux Tools | Reporter: | Ryan Xu <xuruoyu1979> | ||||
| Component: | Valgrind | Assignee: | Elliott Baron <ebaron> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | jjohnstn, mober.at+eclipse, overholt | ||||
| Version: | 0.8.0 | ||||||
| Target Milestone: | 0.9.0 | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 315504 | ||||||
| Attachments: |
|
||||||
|
Description
Ryan Xu
If we can provide a setter/getter for the variable "valgrindVersion", after the version is changed . the control should also redraw. Background: In our product, we run valgrind on remote targets (by extending the original Linuxtools launches). Since a different valgrind version can be installed on different targets, and users can select a different target in the UI, it's important to be able and change the valgrind version. Created attachment 201221 [details]
patch v1
Attached is a simple patch against master.
I don't think we can redraw controls while a tab is being displayed... I've never seen an SWT control vanish or reappear based on a change on that page (well, except a "Details>>" button in dialogs.
So my first approach is only allowing to change the valgrind version while the tab is not being displayed. That's good enough for our approach, where a different tab will pick the connection. Switching back to the valgrind tab, the tab should be redrawn.
Ryan, could you check whether that patch fits your needs?
Ping, could my patch be reviewed / considered ? FWIW, in our commercial product we use introspection today, in order to access the private "valgrindVersion" field. (In reply to comment #4) > Ping, could my patch be reviewed / considered ? > > FWIW, in our commercial product we use introspection today, in order to access > the private "valgrindVersion" field. Patch is very reasonable considering that remote Valgrind version will have to be calculated once user has picked target. Patch has been applied to master. Comment on attachment 201221 [details]
patch v1
Less than 250 lines.
|