很久很久以前

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            34 隨筆 :: 4 文章 :: 17 評論 :: 0 Trackbacks
          http://dev.eclipse.org/mhonarc/lists/gef-dev/msg00183.html
          Ask:
          How to add a double click event or Request on a figure?when double click on a figure, a dialog pop up and do some actions.for example when double click on
          a UML class figure, a dialog pop up, user can Add a method to the class.
          Answer:
          This is already done in GEF. Your editpart will receive a performRequest(req) with the type RequestConstants.REQ_OPEN.
          See SelectEditPartTRacker#performOpen()

          -randy
          就是在figure對應的editpart中重載方法performRequest(Request req),并判斷req的type是否為RequestConstants.REQ_OPEN,如果是,則處理這個雙擊事件.
          這個方法是個回調方法,在SelectEditPartTRacker#performOpen() 中調用的.
          posted on 2006-06-08 22:21 Long Long Ago 閱讀(1390) 評論(0)  編輯  收藏 所屬分類: GEFEclipse
          主站蜘蛛池模板: 台江县| 盱眙县| 柳江县| 万州区| 托克逊县| 玉门市| 罗山县| 九寨沟县| 仙游县| 汉川市| 平原县| 望谟县| 大新县| 吴川市| 石门县| 厦门市| 平泉县| 张北县| 麻阳| 简阳市| 夹江县| 黑山县| 徐州市| 会宁县| 固原市| 洪江市| 和林格尔县| 麻栗坡县| 获嘉县| 富锦市| 青神县| 台中县| 淮滨县| 浦北县| 德钦县| 葵青区| 五家渠市| 张掖市| 泾川县| 剑阁县| 江陵县|