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 257361 Details for
Bug 480150
NPE in ClipboardProxy.getFunc or JVM Crash on JNI_ArgumentPusherVaArg when simulating copy/paste on 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.
BreakClipboard.java
BreakClipboard.java (text/x-java), 1.38 KB, created by
Leon Blakey
on 2015-10-19 13:22:29 EDT
(
hide
)
Description:
BreakClipboard.java
Filename:
MIME Type:
Creator:
Leon Blakey
Created:
2015-10-19 13:22:29 EDT
Size:
1.38 KB
patch
obsolete
>package org.aph.swtcrash; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.custom.StyledText; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swtbot.swt.finder.SWTBot; >import org.eclipse.swtbot.swt.finder.widgets.SWTBotStyledText; > >/** > * > * @author Leon Blakey <leon.m.blakey@gmail.com> > */ >public class BreakClipboard { > public static void main(String[] args) { > for (int i = 0; i < 100; i++) { > System.out.println("++++ Iteration " + i); > runTest(); > } > } > > private static void runTest() { > Display display = new Display(); > > Shell shell = new Shell(Display.getCurrent(), SWT.NONE); > shell.setText("Rapid Copy Paste Test"); > > StyledText view = new StyledText(shell, SWT.NONE); > view.setText("some random text some random text some random text"); > > shell.setVisible(true); > shell.open(); > > SWTBot bot = new SWTBot(shell); > SWTBotStyledText viewBot = bot.styledText(0); > doPendingSWTWork(); > > System.out.println("Text before: " + viewBot.getText()); > > viewBot.selectRange(0, 5, 20); > viewBot.pressShortcut(SWT.MOD1, 'x'); > doPendingSWTWork(); > > viewBot.widget.setCaretOffset(13); > viewBot.pressShortcut(SWT.MOD1, 'v'); > doPendingSWTWork(); > > System.out.println("Text After : " + viewBot.getText()); > > display.dispose(); > } > > protected static void doPendingSWTWork() { > while (Display.getCurrent().readAndDispatch()) { > } > } >}
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 480150
: 257361 |
257362