How to get a different context-menu showing on a TreeViewers header?

In the end, I wrote this class to listen to the underlying tree object, and tell me when the column headers had been clicked on.

In the end, I wrote this class to listen to the underlying tree object, and tell me when the column headers had been clicked on ... import org.eclipse.jface.viewers. TreeViewer; public class HeaderClickDetector implements Listener { TreeViewer viewer; private boolean headerClicked; public HeaderClickDetector( TreeViewer viewer ) { this. Viewer = viewer; } public void handleEvent(Event event) { Point pt = Display.getCurrent().

Map(null, viewer.getControl(), new Point(event. X, event. Y)); Rectangle clientArea = viewer.getTree().getClientArea(); headerClicked = (clientArea.

Y Y + viewer.getTree().getHeaderHeight())); } public boolean isHeaderClicked() { return headerClicked; } }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions