Commit ef95078
committed
Scope default theme preference by product or application
The default theme preference is now stored under a product-specific
(or application-specific) sub-node in user scope. This allows different
Eclipse-based products sharing the same user preferences location to
maintain independent theme defaults.
When reading the preference, the product ID (from Platform.getProduct())
is used as the sub-node key. If no product is configured, the application
ID (eclipse.application system property) is used as fallback. If neither
is available, the preference is stored at the base node level.
This also migrates the 'Manage default theme' dialog from
ConfigurationScope to UserScope to be consistent with the rest of the
theme preference handling.1 parent 1375cd4 commit ef95078
File tree
2 files changed
+54
-13
lines changed- bundles
- org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt
- org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/dialogs
2 files changed
+54
-13
lines changedLines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
323 | 330 | | |
324 | 331 | | |
325 | 332 | | |
| |||
403 | 410 | | |
404 | 411 | | |
405 | 412 | | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
406 | 426 | | |
407 | 427 | | |
408 | 428 | | |
| |||
Lines changed: 32 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
339 | 340 | | |
340 | 341 | | |
341 | 342 | | |
342 | | - | |
343 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
344 | 348 | | |
345 | 349 | | |
346 | 350 | | |
| |||
377 | 381 | | |
378 | 382 | | |
379 | 383 | | |
380 | | - | |
| 384 | + | |
381 | 385 | | |
382 | | - | |
| 386 | + | |
383 | 387 | | |
384 | | - | |
| 388 | + | |
385 | 389 | | |
386 | 390 | | |
387 | 391 | | |
388 | | - | |
| 392 | + | |
389 | 393 | | |
390 | | - | |
| 394 | + | |
391 | 395 | | |
392 | | - | |
| 396 | + | |
393 | 397 | | |
394 | 398 | | |
395 | 399 | | |
396 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
397 | 414 | | |
398 | 415 | | |
399 | 416 | | |
| |||
521 | 538 | | |
522 | 539 | | |
523 | 540 | | |
524 | | - | |
| 541 | + | |
525 | 542 | | |
526 | | - | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
527 | 548 | | |
528 | | - | |
| 549 | + | |
529 | 550 | | |
530 | 551 | | |
531 | 552 | | |
| |||
0 commit comments