Commit 50c2ad6
committed
The PerspectiveSwitcher respects the IPresentationEngine.NO_MOVE tag on
its MToolControl.
Drag and drop reordering of perspective items is now prevented if the
Perspective Switcher tool control has the NoMove tag.
Example usage (programmatic):
// To lock the perspective switcher reordering:
toolControl.getTags().add(IPresentationEngine.NO_MOVE);
// To unlock:
toolControl.getTags().remove(IPresentationEngine.NO_MOVE);
Otherwise: use the e4 model spy to set this tag1 parent 96b5ffb commit 50c2ad6
File tree
1 file changed
+4
-0
lines changed- bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/e4/ui/workbench/addons/perspectiveswitcher
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
454 | 455 | | |
455 | 456 | | |
456 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
457 | 461 | | |
458 | 462 | | |
459 | 463 | | |
| |||
0 commit comments