Commit db9dfb5
committed
[customized views] remove UIs related to managing them when irrelevant
In the Theia trace extension, the functionality to create
custom views has not been implemented. However the UI element
, a plus sign button added after the "views" entry of the
"configurator" element, used to trigger creating custom views,
is always present, even when not supported (no callback
provided that create the custom views). This commit removes
that button when not relevant.
There's also the UI element added to remove previously created
custom views (the "x" button), that does work in the Theia
extension. For consistency, this commit also removes this
button.
Another tweak done when customization is not supported is to
filter root "configurator" nodes from the nodes list early, so
they are not displayed in the views list. If they have children
, from previously configured output descriptors (from the
vscode trace extension), then the children will be displayed as
before but as root nodes instead of children of their
"configurator" node.
The filtering of "configurator" node is overridable, by
creating a class that extends ReactAvailableViewsWidget and
overrides method :
"protected doFilterList(list: OutputDescriptor[]): OutputDescriptor[]",
e.g. to return the original, unfiltered list.
Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>1 parent 9ac37ba commit db9dfb5
1 file changed
Lines changed: 40 additions & 6 deletions
Lines changed: 40 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
184 | 188 | | |
185 | 189 | | |
186 | 190 | | |
| |||
210 | 214 | | |
211 | 215 | | |
212 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
213 | 236 | | |
214 | 237 | | |
215 | 238 | | |
| |||
233 | 256 | | |
234 | 257 | | |
235 | 258 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 259 | + | |
| 260 | + | |
241 | 261 | | |
242 | 262 | | |
243 | 263 | | |
| |||
249 | 269 | | |
250 | 270 | | |
251 | 271 | | |
252 | | - | |
| 272 | + | |
253 | 273 | | |
254 | 274 | | |
255 | 275 | | |
| |||
297 | 317 | | |
298 | 318 | | |
299 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
300 | 334 | | |
0 commit comments