Hi,

On 06/19/2012 09:18 PM, Patrick Tasse wrote:
[...]
    o TimeGraphViewer:
      It's not easy for the developer to add a mouse listener on the time
    graph.
      (My users want to interact with ITimeEvent and ITimeGraphEntry
    objects).
      My intention is to open a bug, and provide a patch on this topic.

Do you want to interact only on a mouse click? In that case you could
use an ITimeGraphSelectionListener. It is notified when the selected
ITimeGraphEntry is modified by mouse click. I guess we would need to
augment the TimeGraphSelectionEvent to also carry the selected
ITimeEvent, if any.

There could be more improvements in that listener: Do we want to support
right-click selection? The arrow keys can also be used to navigate
through events, but it doesn't notify the selection listeners, should it?

My first intention was to listen for right-click, and provide a handler method, allowing subclasses to populate a contextual popup menu.

Xavier
_______________________________________________
linuxtools-dev mailing list
linuxtools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/linuxtools-dev

Reply via email to