mihnita / ansi-econsole

Eclipse plugin that understands ANSI escape sequences to color the Eclipse console output.
http://www.mihai-nita.net/java/
Other
91 stars 25 forks source link

changed the default behavior of the copy action to remove escapes bef… #22

Closed martinlippert closed 8 years ago

martinlippert commented 8 years ago

…ore putting text into the clipboard

second try... I am happy to contribute everything under the existing Apache license of the project and removed additional copyright or author statements from the code that I wrote. Hope this is fine and gets merged.

mihnita commented 8 years ago

I did the digging and done it over the week-end.

Wasted quite a few hours trying to make <handler> work (in plugin.xml). Also got some false start trying to use IHandlerService and org.eclipse.ui.edit.copy, until I found the current solution. The rest was easy, the code to take the text and put it in the clipboard was already there.

So, released, pushed the code to github

Then I looked to see how you "hooked" the copy action. And it was also with setGlobalActionHandler. That's what I was most curious about. I will look a bit deeper over the week-end.

Cheers.