JetBrains / MPS-extensions

MPS-extensions aims to ease language development within MPS.
https://jetbrains.github.io/MPS-extensions/
Apache License 2.0
82 stars 51 forks source link

Make PlaintextPaster available via a paste action (Ctrl+V) #185

Open eugenschindler opened 5 years ago

eugenschindler commented 5 years ago

From mps-plaintextgen created by eugenschindler: DSLFoundry/mps-plaintextgen#41

Look in PasteAsJavaClass (URL: http://127.0.0.1:63320/node?ref=r%3Ac6bc30d1-d0d1-44c6-ba7e-90e78619615e%28jetbrains.mps.ide.java.actions%29%2F2872212824181502651) for a pointer on how to do this.

JoostvanPinxten commented 5 years ago

Perhaps I'm missing something, but I don't see how the PasteAsJavaClass, PasteAsJavaMethods, and PasteAsJavaStatements are actually bound to a key combination (Ctrl/Cmd+V). And the PlainTextPaster has already been implemented as an plugin... It doesn't look like Jetbrains has provided the hooks to override the Ctrl+V paste command.