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...
Michael Wenz Messages: 1788 Registered: July 2009 Location: Walldorf, Germany
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