Bug 31027 Internal Error in the log.
Build id: 200302050800 Got this excecption in the log. After clicking in an item in the search view. Eclipse was not responding for 30 seconds. !ENTRY org.eclipse.jdt.ui 4 10001 Feb 05, 2003 15:25:09.893 !MESSAGE Internal Error !STACK 1 org.eclipse.core.internal.resources.ResourceException: Marker id: 92868 not found. at org.eclipse.core.internal.resources.Marker.checkInfo(Marker.java:53) at org.eclipse.core.internal.resources.Marker.getType(Marker.java:176) at org.eclipse.core.internal.resources.Marker.isSubtypeOf (Marker.java:194) at org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionProcessor.hasCorrecti ons(JavaCorrectionProcessor.java:107) at org.eclipse.jdt.internal.ui.javaeditor.JavaMarkerAnnotation.mustShowQuickFixIco n(JavaMarkerAnnotation.java:132) at org.eclipse.jdt.internal.ui.javaeditor.JavaMarkerAnnotation.getImage (JavaMarkerAnnotation.java:232) at org.eclipse.ui.texteditor.MarkerAnnotation.paint (MarkerAnnotation.java:196) at org.eclipse.jface.text.source.AnnotationRulerColumn.doPaint (AnnotationRulerColumn.java:350) at org.eclipse.jface.text.source.AnnotationRulerColumn.doubleBufferPaint (AnnotationRulerColumn.java:241) at org.eclipse.jface.text.source.AnnotationRulerColumn.access$3 (AnnotationRulerColumn.java:216) at org.eclipse.jface.text.source.AnnotationRulerColumn$1.paintControl (AnnotationRulerColumn.java:155) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:80) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:836) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:861) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:845) at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:726) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2804) at org.eclipse.swt.widgets.Display.windowProc(Display.java:2198) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1292) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1408) at org.eclipse.jface.operation.ModalContext$ModalContextThread.block (ModalContext.java:130) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:255) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:351) at org.eclipse.jdt.ui.actions.FindAction.run(FindAction.java:289) at org.eclipse.jdt.ui.actions.FindReferencesAction.run (FindReferencesAction.java:79) at org.eclipse.jdt.ui.actions.WorkingSetFindAction.run (WorkingSetFindAction.java:66) at org.eclipse.jdt.ui.actions.FindAction.run(FindAction.java:239) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun (SelectionDispatchAction.java:193) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run (SelectionDispatchAction.java:169) at org.eclipse.jface.action.Action.runWithEvent(Action.java:804) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:450) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:398) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:392) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:72) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:836) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1692) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1410) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1289) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1272) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:845) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:247) at org.eclipse.core.launcher.Main.run(Main.java:703) at org.eclipse.core.launcher.Main.main(Main.java:539) !ENTRY org.eclipse.core.resources 4 376 Feb 05, 2003 15:25:09.909 !MESSAGE Marker id: 92868 not found.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/JavaCorrectionProcessor.java
/**
	 * Returns <code>true</code> if one line is completely selected or if multiple lines are selected.
	 * Being completely selected means that all characters except the new line characters are 
	 * selected.
	 * 
	 * @return <code>true</code> if one or multiple lines are selected
	 * @since 2.1
	 */
	private boolean areMultipleLinesSelected(ITextViewer viewer) {
		if (viewer == null)
			return false;
		
		Point s= viewer.getSelectedRange();
		if (s.y == 0)
			return false;
			
		try {
			
			IDocument document= viewer.getDocument();
			int startLine= document.getLineOfOffset(s.x);
			int endLine= document.getLineOfOffset(s.x + s.y);
			IRegion line= document.getLineInformation(startLine);
			return startLine != endLine || (s.x == line.getOffset() && s.y == line.getLength());
		
		} catch (BadLocationException x) {
			return false;
		}
	}
	
	/*