diff options
author | Mike Rennie | 2012-04-03 20:18:51 +0000 |
---|---|---|
committer | Mike Rennie | 2012-04-03 20:18:51 +0000 |
commit | 77d32e5c49463384a1d9b140574f3d934faa09fc (patch) | |
tree | 5c56f8dfac9de50e38321c3b5dde579cc5713f23 | |
parent | 1b3ae4f137a99e58b1249ffe45265f286fe4128c (diff) | |
download | eclipse.jdt.debug-77d32e5c49463384a1d9b140574f3d934faa09fc.tar.gz eclipse.jdt.debug-77d32e5c49463384a1d9b140574f3d934faa09fc.tar.xz eclipse.jdt.debug-77d32e5c49463384a1d9b140574f3d934faa09fc.zip |
Bug 280192 - [display] Error while "inspecting in scrapbook
-rw-r--r-- | org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java index e502a9161..b85ad8c13 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java +++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. + * Copyright (c) 2000, 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -1088,7 +1088,7 @@ public class JavaSnippetEditor extends AbstractDecoratedTextEditor implements ID IBreakpoint[] bps = jt.getBreakpoints(); //last line of the eval method in ScrapbookMain1? int lineNumber = f.getLineNumber(); - if (e.getDetail() == DebugEvent.STEP_END && (lineNumber == 20 || lineNumber == 21) + if (e.getDetail() == DebugEvent.STEP_END && (lineNumber == 28) && f.getDeclaringTypeName().equals("org.eclipse.jdt.internal.debug.ui.snippeteditor.ScrapbookMain1") //$NON-NLS-1$ && jt.getDebugTarget() == fVM) { // restore step filters |