diff options
author | Michael Rennie | 2006-11-20 16:13:33 +0000 |
---|---|---|
committer | Michael Rennie | 2006-11-20 16:13:33 +0000 |
commit | 695535dd8a096de655aa67e74fd4997cc81d15ec (patch) | |
tree | 436f76e47e8faf26314e37ed0b9ab76519657739 | |
parent | 4c3a066215a8b6afeb342476e5c71d20d698bd56 (diff) | |
download | eclipse.platform.debug-695535dd8a096de655aa67e74fd4997cc81d15ec.tar.gz eclipse.platform.debug-695535dd8a096de655aa67e74fd4997cc81d15ec.tar.xz eclipse.platform.debug-695535dd8a096de655aa67e74fd4997cc81d15ec.zip |
verified Bug 164379
ClassCastException from StackFrameContentProvider
and update doc
-rw-r--r-- | org.eclipse.debug.core/buildnotes_platform-debug.html | 1 | ||||
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/StackFrameContentProvider.java | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.debug.core/buildnotes_platform-debug.html b/org.eclipse.debug.core/buildnotes_platform-debug.html index f487e7567..37605f143 100644 --- a/org.eclipse.debug.core/buildnotes_platform-debug.html +++ b/org.eclipse.debug.core/buildnotes_platform-debug.html @@ -202,6 +202,7 @@ The launch framework has been enhanced to support the following: <h2>Nov 21, 2006</h2> <h3>Problem Reports Fixed</h3> +<a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=164379">164379</a>: ClassCastException from StackFrameContentProvider<br> <a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=156761">156761</a>: [console] Allow possibility of changing console background color<br> <a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=104369">104369</a>: [breakpoints] drag & drop of many breakpoints is slow<br> <a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=164620">164620</a>: Tree in Debug view should not have border<br> diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/StackFrameContentProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/StackFrameContentProvider.java index 0069e14d2..fda2f5a68 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/StackFrameContentProvider.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/StackFrameContentProvider.java @@ -35,6 +35,14 @@ public class StackFrameContentProvider extends ElementContentProvider { return getElements(getAllChildren(parent, context, monitor), index, length); } + /** + * This method retrieves all of the children for the specified parent given the current context + * @param parent the parent ot get the children for + * @param context the context for which to get the children for + * @param monitor the monitor for progress + * @return the collection of children, or an empty collection, never <code>null</code> + * @throws CoreException + */ protected Object[] getAllChildren(Object parent, IPresentationContext context, IProgressMonitor monitor) throws CoreException { if (parent instanceof IStackFrame) { String id = context.getId(); @@ -57,6 +65,9 @@ public class StackFrameContentProvider extends ElementContentProvider { return id.equals(IDebugUIConstants.ID_VARIABLE_VIEW) || id.equals(IDebugUIConstants.ID_REGISTER_VIEW); } + /* (non-Javadoc) + * @see org.eclipse.debug.internal.ui.model.elements.ElementContentProvider#hasChildren(java.lang.Object, org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, org.eclipse.core.runtime.IProgressMonitor) + */ protected boolean hasChildren(Object element, IPresentationContext context, IProgressMonitor monitor) throws CoreException { String id = context.getId(); IStackFrame frame = (IStackFrame) element; |