Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Compartment item copy/paste
Compartment item copy/paste [message #232997] Mon, 08 June 2009 18:08 Go to next message
ps  is currently offline ps Friend
Messages: 16
Registered: July 2009
Junior Member
Hi there,
I couldn't get compartment item copy/paste work, even following the
instruction in py.2Fpaste_work_on_compartments.3F

I searched the topic related with copy/paste and only found this sg16818.html
I also tried suggestions in that thread with no success.
Looks like copy/paste(especially within compartment) is still a challenge.

Maybe I missed something, could someone give me a hand!

Thanks in advance!

Re: Compartment item copy/paste [message #233175 is a reply to message #232997] Tue, 09 June 2009 19:49 Go to previous message
ps  is currently offline ps Friend
Messages: 16
Registered: July 2009
Junior Member
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). *, modify createDefaultEditPolicies() to
install a new edit policy
installEditPolicy(EditPolicy.CONTAINER_ROLE, new

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

3). Fork 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

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

Previous Topic:cast exception for an EAttribute
Next Topic:How to change the place of validation decorators?
Goto Forum:

Current Time: Thu Feb 25 01:48:30 GMT 2021

Powered by FUDForum. Page generated in 0.01918 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top