Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 492811

Summary: Duplicate commands / menu items "Toggle Full Screen"
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: Brian de Alwis <bsd>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bsd, daniel_megert, Lars.Vogel, markus.kell.r, psuzzi
Version: 4.6Flags: psuzzi: review+
Lars.Vogel: review+
Target Milestone: 4.6 RC2   
Hardware: PC   
OS: Mac OS X   
See Also: https://git.eclipse.org/r/72445
https://git.eclipse.org/r/72979
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=8c5781af7c90ae6f6baa91495a2ac0ca0f1dd907
https://bugs.eclipse.org/bugs/show_bug.cgi?id=493930
https://bugs.eclipse.org/bugs/show_bug.cgi?id=493932
Whiteboard:
Bug Depends on: 491572    
Bug Blocks:    

Description Markus Keller CLA 2016-05-02 07:06:02 EDT
4.6.0.I20160427-0400

On the Mac, I see duplicate commands / menu items for "Toggle Full Screen".

"Window > Toggle Full Screen  Ctrl+Cmd+F" vs. "Window > Appearance > Toggle Full Screen  (no shortcut)". Only the second menu item opens the "You have gone fullscreen" popup.

There are two entries in the Keys preference page, one correctly bound to Ctrl+Cmd+F.

In 4.5.2, only the first menu item existed.
Comment 1 Patrik Suzzi CLA 2016-05-02 08:20:16 EDT
I cannot reproduce the issue with Windows 10 and Neon (4.6)
Build id: I20160427-0400

http://i.imgur.com/kokYTch.png
Comment 2 Patrik Suzzi CLA 2016-05-09 11:02:57 EDT
Brian, could you reproduce this?
Comment 3 Brian de Alwis CLA 2016-05-09 11:57:58 EDT
It's mac-specific: we have a Cocoa fragment that contributes items that needs to be updated.
Comment 4 Brian de Alwis CLA 2016-05-10 14:38:19 EDT
So the standard on OS X seems to have become "Enter Full Screen" and it appears under a "View" menu, which we don't have.  So I'm happy to remove the item entirely from "Window" and just use the variant under Window > Appearance.
Comment 5 Eclipse Genie CLA 2016-05-10 14:47:33 EDT
New Gerrit change created: https://git.eclipse.org/r/72445
Comment 6 Brian de Alwis CLA 2016-05-10 14:58:10 EDT
I've pushed work-in-progress that:

  - Removes Window > Toggle Full Screen for Cocoa
  - Adds keybinding for new org.eclipse.ui.window.fullscreenmode
  - Add deprecation warning to old org.eclipse.e4.ui.workbench.renderers.swt.cocoa.FullscreenWindowHandler

Since the current OSX-specific code has been in place since 4.2, I think we can only deprecate it and remove the org.eclipse.ui.cocoa.fullscreenWindow command in 4.7.  And since it was done in the E4 level, whereas the current fullscreen implementation is at the E3.x level, we still need to install a keybinding for potential E4 apps.

Hmm, I think the better approach is to move the now-deprecated style into an after-addon, that will be run after the E3.x BindingServiceAddon has started operation.  Then we can see if we have a new-style command or whether we're running as a pure E4 app.
Comment 7 Brian de Alwis CLA 2016-05-17 16:40:40 EDT
I've been experimenting with the new full-screen handler.  The new popup dialog leads to a poor animation experience on OS X as:

  1. the full-screen window flashes up in the background 
  2. then the original window animates to expand full-screen
  3. and then the popup dialog is shown.

The animation is good once the popup dialog is set to never show again.

As we've had this full-screen functionality on OS X since 4.2, for RC2 I think we should:

  1. ensure the new org.eclipse.ui.window.fullscreenmode menu items don't show on Cocoa
  2. mark the old org.eclipse.ui.cocoa.fullscreenWindow command as deprecated for 4.6, to be removed in 4.7
Comment 8 Eclipse Genie CLA 2016-05-18 00:01:50 EDT
New Gerrit change created: https://git.eclipse.org/r/72979
Comment 9 Lars Vogel CLA 2016-05-18 02:55:31 EDT
Can't test this on Mac but change looks reasonable.
Comment 10 Patrik Suzzi CLA 2016-05-18 13:57:49 EDT
Reviewed on Mac, works as expected.
Comment 12 Brian de Alwis CLA 2016-05-18 14:53:45 EDT
Fixed for RC2.  Will file separate bugs to deprecate org.eclipse.ui.cocoa.fullscreenWindow for RC3 and removal in 4.7.
Comment 13 Brian de Alwis CLA 2016-05-20 10:30:07 EDT
Verified no duplicates in 4.6.0.I20160519-1730.