1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-20 15:35:24 +02:00

Workaround for bug 69728: IndexOutOfBoundsException in TextPresentation.

This bug is fixed in Eclipse 3.1.
This commit is contained in:
Mikhail Khodjaiants 2004-11-23 23:34:37 +00:00
parent 0b6beedffa
commit e1f0f37434
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-11-23 Mikhail Khodjaiants
Workaround for bug 69728: IndexOutOfBoundsException in TextPresentation.
This bug is fixed in Eclipse 3.1.
* DisassemblyView.java
2004-11-18 Mikhail Khodjaiants 2004-11-18 Mikhail Khodjaiants
Fix for bug 69184: Activate the Expression view when expression is added. Fix for bug 69184: Activate the Expression view when expression is added.
* AddExpressionEditorActionDelegate.java * AddExpressionEditorActionDelegate.java

View file

@ -459,8 +459,13 @@ public class DisassemblyView extends AbstractDebugEventHandlerView
} }
getSourceViewer().setDocument( getDocumentProvider().getDocument( input ), getSourceViewer().setDocument( getDocumentProvider().getDocument( input ),
getDocumentProvider().getAnnotationModel( input ) ); getDocumentProvider().getAnnotationModel( input ) );
if ( input instanceof DisassemblyEditorInput ) if ( input instanceof DisassemblyEditorInput ) {
getSourceViewer().changeTextPresentation( createTextPresentation( ((DisassemblyEditorInput)input).getSourceRegions() ), true ); // Workaround for bug #69728
IRegion[] sourceRegions = ((DisassemblyEditorInput)input).getSourceRegions();
if ( sourceRegions.length > 0 ) {
getSourceViewer().changeTextPresentation( createTextPresentation( sourceRegions ), true );
}
}
updateObjects(); updateObjects();
} }