开发者

Cut,Copy and Paste in eclipse GEF Editors

开发者 https://www.devze.com 2023-04-09 21:43 出处:网络
I am creating eclipse gef editor using BPMN2 EMF models. Now i am almost end to editor functionality. But i am not clear to implement Cut,Copy and Pas开发者_开发技巧te functionality. i searched lot in

I am creating eclipse gef editor using BPMN2 EMF models. Now i am almost end to editor functionality. But i am not clear to implement Cut,Copy and Pas开发者_开发技巧te functionality. i searched lot in net but all the tutorials i have seen using clone method in Models. In default bpmn2 models doesn't implement clone interface. Please suggest me any idea to achieve cut,copy and paste in gef editor without cloning.

                   Thanks.


You could look at the gef logic example: they use a CopyTemplateAction (standard GEF action) and a custom LogicPasteTemplateAction.

These actions leverage the GEF command framework to istantiate a new Command to create the new model part.

0

精彩评论

暂无评论...
验证码 换一张
取 消