| Summary: | Missing items on context menu on minimized views | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Dani Megert <daniel_megert> |
| Component: | UI | Assignee: | Eric Moffatt <emoffatt> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | curtis.windatt.public, emoffatt, holger.staudacher, markus.kell.r, piotr.aniola, pwebster, remy.suen, ruediger.herrmann |
| Version: | 4.1 | ||
| Target Milestone: | 4.3 RC1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | candidate43 | ||
|
Description
Dani Megert
Added a 'Close' menu item for minimized views. This is still a major stopper for me. *** Bug 367004 has been marked as a duplicate of this bug. *** OK, so the menu items that are still missing on the context menu for a minimized view are: - set the orientation (horizontal/vertical, one has to manually size the view now) - New Fast View (open a new view into the minimized stack) PW (In reply to comment #4) > OK, so the menu items that are still missing on the context menu for a > minimized view are: > > - set the orientation (horizontal/vertical, one has to manually size the view > now) > - New Fast View (open a new view into the minimized stack) > > PW And on that I often use: [x] Fast View which allows me to switch the fast view back into its original state. You may now say, that there's an icon which does that, but that's not true: that icon works on all fast views in its trim. A context menu with close, restore and orientation items has been added when the view is minimized on bug 312707. The menu should also be available in the view trim when in 'fast view' mode (opening a minimized view without restoring the stack). (In reply to comment #6) > The menu should also be available in the view trim when in 'fast view' mode > (opening a minimized view without restoring the stack). This will be more work than I expected. We would need to be able to contribute menu items to the trim menu in StackRenderer (which currently disposes and recreates all of its items on menu open). Perhaps we can tag the trim menu the same way we do the view menu (TAG_VIEW_MENU) and do a model lookup in the MinMaxAddon. (In reply to comment #6) > A context menu with close, restore and orientation items has been added when > the view is minimized on bug 312707. Bug 317207 that is. (In reply to comment #7) > This will be more work than I expected. We would need to be able to > contribute menu items to the trim menu in StackRenderer (which currently > disposes and recreates all of its items on menu open). Perhaps we can tag > the trim menu the same way we do the view menu (TAG_VIEW_MENU) and do a > model lookup in the MinMaxAddon. We need the ability to model a menu on an MPartStack so that it can be saved and rendered. PW in DnDInfo.getModelElement(Control ctrl), there is the following code:
if (modelService.getTopLevelWindowFor(element) == topLevelWindow)
return element;
return null;
It checkes whether the drop window is the same as current window.
Disabling the condition makes the drop work on other windows as well.
I will have to test that (and also make sure that views are still prohibited from being dropped to another window) and then I will submit a patch.
oops, I commented in the wrong bug I20130502-0800: The Orientation and Restore item are available in the context menu on a minimized view and they work both when the view is visible or minimized. The Close menu item is also there but doesn't work: bug 407377. This has been fixed during 4.3. |