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 280610 Details for
Bug 427882
[Cocoa]StyledText: IME-related "Argument not valid" error handling keyDown
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.
Repro snippet
Bug427882_StyledText_IME_IllegalArgument.java (text/plain), 1.96 KB, created by
Alexandr Miloslavskiy
on 2019-11-12 12:25:55 EST
(
hide
)
Description:
Repro snippet
Filename:
MIME Type:
Creator:
Alexandr Miloslavskiy
Created:
2019-11-12 12:25:55 EST
Size:
1.96 KB
patch
obsolete
>/******************************************************************************* > * Copyright (c) 2019 Syntevo and others. > * > * This program and the accompanying materials > * are made available under the terms of the Eclipse Public License 2.0 > * which accompanies this distribution, and is available at > * https://www.eclipse.org/legal/epl-2.0/ > * > * SPDX-License-Identifier: EPL-2.0 > * > * Contributors: > * Syntevo - initial API and implementation > *******************************************************************************/ > >import org.eclipse.swt.SWT; >import org.eclipse.swt.custom.StyledText; >import org.eclipse.swt.layout.RowLayout; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Label; >import org.eclipse.swt.widgets.Shell; > >public class Bug427882_StyledText_IME_IllegalArgument { > public static void main(String[] args) { > final Display display = new Display(); > final Shell shell = new Shell(display, SWT.SHELL_TRIM); > RowLayout layout = new RowLayout(SWT.VERTICAL); > layout.fill = true; > shell.setLayout(layout); > > new Label(shell, SWT.NONE).setText( > "Preparation :\n" + > "1) Use macOS\n" + > "2) Install keyboard layout:\n" + > " Chinese, Simplified | Pinyin\n" + > "3) Switch to this keyboard layout\n" + > "\n" + > "Bug: \n" + > "1) Type 'modified' in box below, without quotes\n" + > " You should see hieroglyph suggestions as you type.\n" + > " This time, word will be typed correctly.\n" + > "2) Type 'modifi' and press 1 to accept suggestion.\n" + > "3) Type 'modified', SWT will die with 'IllegalArgumentException: Argument not valid'\n" + > "\n" + > "How to recover original state: \n" + > "1) Delete keyboard layout\n" + > "2) Reboot macOS\n" + > "3) Delete file ~/Library/Dictionaries/DynamicPhraseLexicon_zh_Hans.db\n" > ); > > new StyledText(shell, SWT.BORDER); > > shell.pack(); > 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 427882
:
280593
| 280610 |
280648