Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2012-07-23 18:18:53 +0000
committerPawel Piech2012-07-31 04:54:25 +0000
commitc2d4c9a6feea6891ba94e5f8d6be73a2bd19d55c (patch)
tree5fa04899e123d2540f05d0de0aa76d1fafe33f71 /org.eclipse.debug.ui
parent41abd75b374d1e3ef8dfcbc77fc24e99e56894b1 (diff)
downloadeclipse.platform.debug-c2d4c9a6feea6891ba94e5f8d6be73a2bd19d55c.tar.gz
eclipse.platform.debug-c2d4c9a6feea6891ba94e5f8d6be73a2bd19d55c.tar.xz
eclipse.platform.debug-c2d4c9a6feea6891ba94e5f8d6be73a2bd19d55c.zip
Bug 384460 - Show full patchs in breakpoint export wizard.
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/importexport/breakpoints/EmbeddedBreakpointsViewer.java9
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) {

Back to the top