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 188717 Details for
Bug 336863
Missing underline for Hotkey "g" on SUSE Linux
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.
SWT snippet that demonstrates the problem
Application.java (text/plain), 1.27 KB, created by
B. Chen
on 2011-02-10 14:37:06 EST
(
hide
)
Description:
SWT snippet that demonstrates the problem
Filename:
MIME Type:
Creator:
B. Chen
Created:
2011-02-10 14:37:06 EST
Size:
1.27 KB
patch
obsolete
>package com.ibm.bc.rcp.application; > > >import org.eclipse.swt.*; >import org.eclipse.swt.widgets.*; >import org.eclipse.swt.custom.StyledText; >import org.eclipse.swt.events.SelectionAdapter; >import org.eclipse.swt.layout.*; > > >public class Application { > > protected static StyledText text = null; > > public static void main(String [] args) { > Display display = new Display(); > final Shell shell = new Shell(display); > // Shell Title > shell.setText("Menu Example"); > //set shell size > shell.setSize(300, 200); > //set layout > GridLayout gridLayout = new GridLayout(); > gridLayout.numColumns = 2; > shell.setLayout(gridLayout); > > //Menu bar > Menu menu = new Menu(shell, SWT.BAR); > MenuItem fileItem = new MenuItem(menu, SWT.CASCADE); > fileItem.setText("&File"); > MenuItem editItem = new MenuItem(menu, SWT.CASCADE); > editItem.setText("&Edit"); > MenuItem viewItem = new MenuItem(menu, SWT.CASCADE); > viewItem.setText("&View"); > MenuItem helpItem = new MenuItem(menu, SWT.CASCADE); > //helpItem.setText("&Help"); > helpItem.setText("S\u00fa&g\u00f3"); > shell.setMenuBar(menu); > > 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 336863
: 188717 |
188720