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 253846 Details for
Bug 419729
[Ubuntu] Native crash in OS._gtk_widget_show when creating RADIO MenuItem with UBUNTU_MENUPROXY
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.
Short SWT snippet that reproduces the problem
Snippet368.java (text/x-java), 1.64 KB, created by
Stefan Xenos
on 2015-05-27 13:13:59 EDT
(
hide
)
Description:
Short SWT snippet that reproduces the problem
Filename:
MIME Type:
Creator:
Stefan Xenos
Created:
2015-05-27 13:13:59 EDT
Size:
1.64 KB
patch
obsolete
>/******************************************************************************* > * Copyright (c) 2015 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at > * http://www.eclipse.org/legal/epl-v10.html > * > * Contributors: > * IBM Corporation - initial API and implementation > *******************************************************************************/ >package org.eclipse.swt.snippets; > >import org.eclipse.swt.*; >import org.eclipse.swt.events.*; >import org.eclipse.swt.widgets.*; > >/** > * Snippet to demonstrate bug 461311 > * > * For a list of all SWT example snippets see > * http://www.eclipse.org/swt/snippets/ > */ >public class Snippet368 { > > public static void main (String [] args) { > final Display display = new Display (); > final Shell shell = new Shell (display, SWT.SHELL_TRIM); > > Menu menuBar = new Menu(shell, SWT.BAR); > > MenuItem fileItem = new MenuItem(menuBar, SWT.CASCADE); > fileItem.setText("&Window"); > > final Menu fileMenu = new Menu(fileItem); > fileItem.setMenu(fileMenu); > > fileMenu.addMenuListener(new MenuListener() { > > @Override > public void menuHidden(MenuEvent e) { > > } > > @Override > public void menuShown(MenuEvent e) { > MenuItem item1 = new MenuItem(fileMenu, SWT.RADIO); > item1.setText("&1 Java - Eclipse SDK"); > } > }); > > shell.setMenuBar(menuBar); > > shell.setText("This is a test"); > 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 419729
:
236604
|
236645
|
236646
|
236647
|
244042
|
246108
|
247831
| 253846 |
254676
|
256390