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 32352 Details for
Bug 122379
SWTException when deleting text from StyledText, if selection larger than visible part
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.
Javaclass which exhibits problem
Bug122379.java (text/java), 1.03 KB, created by
Heinke
on 2005-12-30 08:03:31 EST
(
hide
)
Description:
Javaclass which exhibits problem
Filename:
MIME Type:
Creator:
Heinke
Created:
2005-12-30 08:03:31 EST
Size:
1.03 KB
patch
obsolete
>import org.eclipse.swt.SWT; >import org.eclipse.swt.custom.StyledText; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; > >public class Bug122379 { > > /** > * @param args > */ > public static void main(String[] args) { > new Bug122379(); > } > > public Bug122379(){ > final Display display = new Display(); > Shell shell = new Shell(display); > shell.setLayout(new FillLayout()); > shell.setSize(200,200); > > // Without SWT.WRAP, you get no exception > // StyledText text = new StyledText(shell, SWT.V_SCROLL); // This works > StyledText text = new StyledText(shell, SWT.V_SCROLL | SWT.WRAP); // This leads to exception > > StringBuffer sb = new StringBuffer(); > sb.append("Select all text and press [Del]\n\n"); > for (int i = 0; i < 50; i++){ > sb.append("Line " + i + "\n"); > } > text.setText(sb.toString()); > > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > } >}
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 122379
: 32352