Document with long lines taking toooooo long time to open esp: StyledTextWidget [message #186711] |
Thu, 04 January 2007 06:20 |
Eclipse User |
|
|
|
Originally posted by: umarao.progress.com
Hi,
We have a custom XML Editor built using ProjectViewer. Files with
extremely long lines taking toooooo long time. After some investigation I
found it is StyledTextWidget which trying to figure out
highlighting/layout information for the whole line. I took Thread dump and
attached the stack trace (below).
Could any one help me in solving this problem or any work around to reduce
the time.
Thanks,
Uma Mahesh
at org.eclipse.swt.graphics.TextLayout.setStyle(TextLayout.java :1991)
at
org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(Styl edTextRen
derer.java:841)
at
org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(Styl edTextRen
derer.java:673)
at
org.eclipse.swt.custom.StyledTextRenderer.calculate(StyledTe xtRendere
r.java:200)
at
org.eclipse.swt.custom.StyledTextRenderer.calculateClientAre a(StyledT
extRenderer.java:218)
at
org.eclipse.swt.custom.StyledText.resetCache(StyledText.java :6269)
at
org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText. java:7731
)
at
org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText. java:7791
)
at
org.eclipse.jface.text.TextViewer.applyTextPresentation(Text Viewer.ja
va:4235)
at
org.eclipse.jface.text.TextViewer.changeTextPresentation(Tex tViewer.j
ava:4287)
at
org.eclipse.jface.text.presentation.PresentationReconciler.a pplyTextR
egionCollection(PresentationReconciler.java:573)
at
org.eclipse.jface.text.presentation.PresentationReconciler.p rocessDam
age(PresentationReconciler.java:562)
at
org.eclipse.jface.text.presentation.PresentationReconciler.a ccess$3(P
resentationReconciler.java:558)
at
org.eclipse.jface.text.presentation.PresentationReconciler$I nternalLi
stener.inputDocumentChanged(PresentationReconciler.java:118)
at
org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(T extViewer
java:2458)
at
org.eclipse.jface.text.TextViewer.setDocument(TextViewer.jav a:2507)
at
org.eclipse.jface.text.source.SourceViewer.setDocument(Sourc eViewer.j
ava:521)
at
org.eclipse.jface.text.source.projection.ProjectionViewer.se tDocument
(ProjectionViewer.java:370)
at
org.eclipse.jface.text.source.SourceViewer.setDocument(Sourc eViewer.j
ava:467)
|
|
|
Powered by
FUDForum. Page generated in 0.06610 seconds