很久很久以前

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            34 隨筆 :: 4 文章 :: 17 評(píng)論 :: 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對(duì)應(yīng)的editpart中重載方法performRequest(Request req),并判斷req的type是否為RequestConstants.REQ_OPEN,如果是,則處理這個(gè)雙擊事件.
          這個(gè)方法是個(gè)回調(diào)方法,在SelectEditPartTRacker#performOpen() 中調(diào)用的.
          posted on 2006-06-08 22:21 Long Long Ago 閱讀(1390) 評(píng)論(0)  編輯  收藏 所屬分類: GEFEclipse
          主站蜘蛛池模板: 蒙山县| 大石桥市| 公安县| 加查县| 靖西县| 海门市| 双牌县| 平湖市| 西宁市| 天镇县| 海安县| 宿迁市| 桂平市| 张家界市| 百色市| 应城市| 华容县| 霍山县| 界首市| 安新县| 石泉县| 项城市| 桐城市| 义乌市| 青冈县| 云林县| 南川市| 濮阳市| 稷山县| 龙山县| 元朗区| 丽水市| 佛学| 牙克石市| 格尔木市| 峨边| 扶余县| 富阳市| 松潘县| 老河口市| 玉树县|