[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Compartment item copy/paste

Ok, I managed making it work by exploring a little bit deeper. I post the steps here in case someone else runs into the same issue.

1). *CompartmentEditPart.java, modify createDefaultEditPolicies() to install a new edit policy installEditPolicy(EditPolicy.CONTAINER_ROLE, new ContainerEditPolicy());

2). Let *CompartmentEditPart.java implements ISurfaceEditPart(which is an gmf internal interface)

3). Fork NotationClipboardOperationHelper.java like the Q and A suggested.

Now here are my new questions, could GMF team do something to
1). move ISurfaceEditPart from internal package to public
2). correct the code in NotationClipboardOperationHelper.getSemanticPasteTarget so that no fork is needed (since it involves the legal issue if we want to re-distribute GMF code)


if they are in the plan, when is it going to happen? Galileo release?

Thanks,
Paul