Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 162595
Collapse All | Expand All

(-)ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewUpdatePolicy.java (-1 / +19 lines)
Lines 51-57 Link Here
51
		 if ((delta.getFlags() & IModelDelta.SELECT) == 0) {
51
		 if ((delta.getFlags() & IModelDelta.SELECT) == 0) {
52
			 // a content change without select or selection is a possible activation
52
			 // a content change without select or selection is a possible activation
53
			 fView.possibleContextChange(delta.getElement(), DebugContextEvent.ACTIVATED);
53
			 fView.possibleContextChange(delta.getElement(), DebugContextEvent.ACTIVATED);
54
		 }
54
		 } else {
55
                // Check if current selection is a child of the node that is changed.
56
                // If so call listeners with IDebugContextListener.contextChanged().
57
                ISelection selection = viewer.getSelection();
58
                if (selection instanceof IStructuredSelection ) {
59
                    Object element = ((IStructuredSelection)selection).getFirstElement();
60
                    if (element != null) {
61
                        TreePath[] paths = viewer.getTreePaths(element);
62
                        for (int i = 0; i < paths.length; i++) {
63
                            for (int j = 0; j < paths[i].getSegmentCount(); j++) {
64
                                if (element.equals(paths[i].getSegment(j))) {
65
                                    fView.possibleContextChange(element, DebugContextEvent.STATE);
66
                                    return;
67
                                }                
68
                            }
69
                        }
70
                    }
71
                }
72
         }             
55
	}
73
	}
56
	
74
	
57
	
75
	

Return to bug 162595