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
http://wiki.eclipse.org/GMF_Newsgroup_Q_and_A#How_to_make_co py.2Fpaste_work_on_compartments.3F

I searched the topic related with copy/paste and only found this
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m 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!

Paul
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). *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
Previous Topic:cast exception for an EAttribute
Next Topic:How to change the place of validation decorators?
Goto Forum:
  


Current Time: Tue Apr 16 04:08:02 GMT 2024

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

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

Back to the top