Skip to main content



      Home
Home » Modeling » Graphiti » Copy/Paste: why not Cut?
Copy/Paste: why not Cut? [message #794649] Thu, 09 February 2012 09:36 Go to next message
Eclipse UserFriend
I'm implementing Copy/Paste in my plugin.

It just occured to me that there was no Cut option...
I would say Cut is merely Copy + Delete, but I'm wondering why there's no hook to it in the framework.

I can understand that there would be some implication with the underlying source, but even if all that was handled in my code in a CustomAction, I'm not sure how I would hook it to the main Cut command...

Any ideas?
Re: Copy/Paste: why not Cut? [message #795367 is a reply to message #794649] Fri, 10 February 2012 06:42 Go to previous messageGo to next message
Eclipse UserFriend
Good question... ;-)

From some dark corners of my mind I can recall that there were issues with
cut in our former model implementation (we started off with MOF instead of
EMF as metamodel). This might have been the reason for not having a cut
implementation, and until now simply nobody requested it.

If you would like to see it, please open an enhancement bugzilla for it.

Regarding hooking-in a custom feature for the standard cut command: this is
not supported by Graphiti so far (there might be some tricks to achieve that
using standard Eclipse means, but that would need some inveastigations), but
there is an open bugzilla that would enable that (adding keyboard shortcuts
to custom features): https://bugs.eclipse.org/bugs/show_bug.cgi?id=323349

Michael
Re: Copy/Paste: why not Cut? [message #795433 is a reply to message #795367] Fri, 10 February 2012 08:20 Go to previous message
Eclipse UserFriend
Request Feature #371226 added.

Thanks,
-Patrick
Previous Topic:outline view for diagram in Graphiti 0.9
Next Topic:Use EEF to generate property sheet editor for Graphiti
Goto Forum:
  


Current Time: Wed Jul 23 08:38:51 EDT 2025

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

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

Back to the top