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 147129 Details for
Bug 202414
Link widget has problems with mnemonics
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.
[patch]
Fix
202414_patch.txt (text/plain), 1.36 KB, created by
Markus Keller
on 2009-09-14 14:59:12 EDT
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Markus Keller
Created:
2009-09-14 14:59:12 EDT
Size:
1.36 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.swt >Index: Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java,v >retrieving revision 1.63 >diff -u -r1.63 Link.java >--- Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java 1 Jul 2009 14:49:40 -0000 1.63 >+++ Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java 14 Sep 2009 19:01:30 -0000 >@@ -412,6 +412,35 @@ > return text; > } > >+boolean mnemonicHit (char key) { >+ Composite control = this.parent; >+ while (control != null) { >+ Control [] children = control._getChildren (); >+ int index = 0; >+ while (index < children.length) { >+ if (children [index] == this) break; >+ index++; >+ } >+ index++; >+ if (index < children.length) { >+ if (children [index].setFocus ()) return true; >+ } >+ control = control.parent; >+ } >+ return false; >+} >+ >+boolean mnemonicMatch (char key) { >+ String parsed = parse (text); >+ for (int i = 0; i < mnemonics.length; i++) { >+ int mnemonic = mnemonics [i]; >+ if (mnemonic != -1) { >+ return Character.toUpperCase (key) == Character.toUpperCase (parsed.charAt (mnemonic)); >+ } >+ } >+ return false; >+} >+ > String parse (String string) { > int length = string.length (); > offsets = new Point [length / 4];
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202414
: 147129 |
147377