开发者

Cut,Copy and Paste in eclipse GEF Editors

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜