Bug 330864 Add ability to find context for a UI element
bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextsView.java
widgetSelected(e);
			}
		});
		updateButton = new Button(updateGroup, SWT.PUSH);
		updateButton.setText(ContextMessages.updateButton);
		updateButton.addSelectionListener(new SelectionListener() {
			public void widgetSelected(SelectionEvent e) {
				fullRefresh();
			}
			public void widgetDefaultSelected(SelectionEvent e) {
				widgetSelected(e);
			}
		});
		GridLayoutFactory.fillDefaults().generateLayout(parent);
	}
	protected void fullRefresh() {
		refresh();
		ITreeSelection selection = (ITreeSelection) treeViewer.getSelection();
		if (!selection.isEmpty()) {
			@SuppressWarnings("unchecked")
			WeakReference<EclipseContext> ref = (WeakReference<EclipseContext>) selection.getFirstElement();
			EclipseContext selectedContext = ref.get();
			selectedContext(selectedContext);
		}
	}
	protected void selectedContext(IEclipseContext selected) {
		dataViewer.setInput(selected);
		allocationsViewer.setInput(selected);
		linksViewer.setInput(selected);
	}