Bug 5240 - Exeption while using new template support
Summary: Exeption while using new template support
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Claude Knaus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-25 09:57 EDT by Dirk Baeumer CLA
Modified: 2001-11-01 05:56 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2001-10-25 09:57:36 EDT
Did the following
- added a toArray template
- filed in names
- selected first part (assignment to variable)
- deleted the selection.


Log: Thu Oct 25 15:54:35 GMT+02:00 2001
1 org.eclipse.core.resources 4 Unhandled exception caught in event loop.
Log: Thu Oct 25 15:54:36 GMT+02:00 2001
4 org.eclipse.ui 0 Index out of bounds
java.lang.IllegalArgumentException: Index out of bounds
	at org.eclipse.swt.SWT.error(SWT.java:1791)
	at org.eclipse.swt.SWT.error(SWT.java:1737)
	at org.eclipse.swt.custom.StyledText.setSelection(StyledText.java:5692)
	at org.eclipse.jdt.internal.ui.text.template.TemplateEditor.leave
(TemplateEditor.java:98)
	at 
org.eclipse.jdt.internal.ui.text.template.TemplateEditor.documentChanged
(TemplateEditor.java:224)
	at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged
(AbstractDocument.java(Compiled Code))
	at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java
(Compiled Code))
	at org.eclipse.jface.text.DocumentAdapter.replaceTextRange
(DocumentAdapter.java(Compiled Code))
	at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java
(Compiled Code))
	at org.eclipse.swt.custom.StyledText.doContent(StyledText.java(Compiled 
Code))
	at org.eclipse.swt.custom.StyledText.doContent(StyledText.java(Compiled 
Code))
	at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java(Compiled 
Code))
	at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java
(Compiled Code))
	at org.eclipse.swt.custom.StyledText$8.handleEvent(StyledText.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:658)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:820)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:433)
	at org.eclipse.core.launcher.Main.main(Main.java:306)
Comment 1 Claude Knaus CLA 2001-11-01 05:56:56 EST
fixed > 206