Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Copy/Paste: why not Cut?
Copy/Paste: why not Cut? [message #794649] Thu, 09 February 2012 14:36 Go to next message
Patrick Talbot is currently offline Patrick TalbotFriend
Messages: 36
Registered: November 2011
Member
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 11:42 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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 13:20 Go to previous message
Patrick Talbot is currently offline Patrick TalbotFriend
Messages: 36
Registered: November 2011
Member
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: Thu Apr 25 01:51:41 GMT 2024

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

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

Back to the top