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 280593 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.69 KB, created by
Alexandr Miloslavskiy
on 2019-11-11 10:11:13 EST
(
hide
)
Description:
Repro snippet
Filename:
MIME Type:
Creator:
Alexandr Miloslavskiy
Created:
2019-11-11 10:11:13 EST
Size:
1.69 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) In context menu from keyboard layout icon, enable:\n" + > " Use Halfwidth punctuation\n" + > "2) Type 'modified' without quotes in StyledText below\n" + > "3) There will be a 'IllegalArgumentException: Argument not valid'" > ); > > 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