[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] How to override a paste command

Hi there,
I want to add extra behaviour(when copy a special node, if that node is associated with a diagram, after the paste, a different diagram should be created for the newly created node) to the default paste command in GMF, could someone tell me where to do that? I know the default paste command is created in ContainerEditPolicy.getPasteCommand, should I override this class to extend my extra behaviour? But it doesn't seem to be an elegant solution.


Could someone give me some instructions on how to achieve this?

Thanks in advance,

Paul