Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 271985 Details for
Bug 529024
[Win32][Menu] popup menu remains visible after user navigates away with keyboard
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
snippet to reproduce the problem
file_529024.txt (text/plain), 1.91 KB, created by
Andrei Diaconu
on 2017-12-20 10:58:23 EST
(
hide
)
Description:
snippet to reproduce the problem
Filename:
MIME Type:
Creator:
Andrei Diaconu
Created:
2017-12-20 10:58:23 EST
Size:
1.91 KB
patch
obsolete
> public static void main(String[] args) { > final Display display = new Display(); > final Shell shell = new Shell(display); > final Menu menuBar = new Menu(shell, SWT.BAR); > shell.setMenuBar(menuBar); > > // file menu > final MenuItem fileItem = new MenuItem(menuBar, SWT.CASCADE); > fileItem.setText("&File"); > > final Menu fileSubmenu = new Menu(shell, SWT.DROP_DOWN); > fileItem.setMenu(fileSubmenu); > final MenuItem openDemoItem = new MenuItem(fileSubmenu, SWT.CASCADE); > openDemoItem.setText("Open demo"); > > final Menu category1SubMenu = new Menu(shell, SWT.DROP_DOWN); > openDemoItem.setMenu(category1SubMenu); > final MenuItem category1MenuItem = new MenuItem(category1SubMenu, SWT.CASCADE); > category1MenuItem.setText("Category 1"); > > final Menu category2SubMenu = new Menu(shell, SWT.DROP_DOWN); > category1MenuItem.setMenu(category2SubMenu); > final MenuItem category2MenuItem = new MenuItem(category2SubMenu, SWT.CASCADE); > category2MenuItem.setText("Category 2"); > > final Menu category3SubMenu = new Menu(shell, SWT.DROP_DOWN); > category2MenuItem.setMenu(category3SubMenu); > final MenuItem category3MenuItem = new MenuItem(category3SubMenu, SWT.CASCADE); > category3MenuItem.setText("Category 3"); > > final Menu category4SubMenu = new Menu(shell, SWT.DROP_DOWN); > category3MenuItem.setMenu(category4SubMenu); > final MenuItem demoMenuItem = new MenuItem(category4SubMenu, SWT.PUSH); > demoMenuItem.setText("Demo"); > > // edit menu > final MenuItem editItem = new MenuItem(menuBar, SWT.CASCADE); > editItem.setText("&Edit"); > final Menu editSubmenu = new Menu(shell, SWT.DROP_DOWN); > editItem.setMenu(editSubmenu); > final MenuItem copyItem = new MenuItem(editSubmenu, SWT.PUSH); > copyItem.setText("&Copy"); > > shell.setSize(200, 200); > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > display.dispose(); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 529024
: 271985