diff options
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/importexport/breakpoints/EmbeddedBreakpointsViewer.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/importexport/breakpoints/EmbeddedBreakpointsViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/importexport/breakpoints/EmbeddedBreakpointsViewer.java index f9c7ed5e0..68e110087 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/importexport/breakpoints/EmbeddedBreakpointsViewer.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/importexport/breakpoints/EmbeddedBreakpointsViewer.java @@ -113,12 +113,9 @@ public class EmbeddedBreakpointsViewer { if(view != null) { //if we have handle to the view try get the current attributes, that way the //presentation of the embedded viewer matches the current view - IBaseLabelProvider current = ((StructuredViewer)view.getViewer()).getLabelProvider(); - if (current instanceof BreakpointsLabelProvider) { - current = ((BreakpointsLabelProvider)current).getPresentation(); - } - Map map = null; - if(current instanceof DelegatingModelPresentation) { + Map map = null; + IDebugModelPresentation current = (IDebugModelPresentation)view.getAdapter(IDebugModelPresentation.class); + if (current instanceof DelegatingModelPresentation) { map = ((DelegatingModelPresentation) current).getAttributes(); } if(map != null) { |