Community
Participate
Working Groups
if ((delta.getFlags() & IModelDelta.SELECT) == 0) {
// a content change without select or selection is a possible activation
fView.possibleContextChange(delta.getElement(), DebugContextEvent.ACTIVATED);
}
} else {
// Check if current selection is a child of the node that is changed.
// If so call listeners with IDebugContextListener.contextChanged().
ISelection selection = viewer.getSelection();
if (selection instanceof IStructuredSelection ) {
Object element = ((IStructuredSelection)selection).getFirstElement();
if (element != null) {
TreePath[] paths = viewer.getTreePaths(element);
for (int i = 0; i < paths.length; i++) {
for (int j = 0; j < paths[i].getSegmentCount(); j++) {
if (element.equals(paths[i].getSegment(j))) {
fView.possibleContextChange(element, DebugContextEvent.STATE);
return;