How to add a double-click listener to my GEF editor?

后端 未结 3 1296
生来不讨喜
生来不讨喜 2021-01-12 05:32

I\'m using GEF. I have a graphical editor with some \"boxes\" implemented. Now, I want to add a double-click listener to each box (Rectangle). I tried to add a listener to t

3条回答
  •  攒了一身酷
    2021-01-12 06:03

    I am not familiar with GEF myself, however I found this in documentation:

    1. GraphicalEditor abstraction sets the EditDomain - handler for editing events
    2. EditDomain interface with methods for handling events - e.g. double click
    3. Tutorial on how to implement editing of models through GUI in GEF (using EditDomain)

提交回复
热议问题