[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[News.eclipse.technology.gmf] Re: shortcuts and their update functions

Hello Alex,

There are a number of requests concerning shortcuts planned for the next version:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=150645
https://bugs.eclipse.org/bugs/show_bug.cgi?id=149547


You can add some more request (for example - optional read-only shortcuts).

I've done that: https://bugs.eclipse.org/bugs/show_bug.cgi?id=152424

What do I have to do to implement a read-only shortcut, because this
would be sufficient for now (ehh...probably just for me). Tweaking the
EditingDomain or is there an easier way?
Looks like you should patch all the generated ?EditPolicies to disable commands for shortcuts.

You mean the getCreateXYZ operations in the ?SemanticEditPolicies? I have not tried it yet, but I think I have to look for containers with the "shortcut" EAnnotation. If an element resides in such a container, the returned Command object will be null.


Thanks a lot for your help!

Best regards,
Mathias