I have a handful of Eclipse (3.5, OS X) projects using different Team version control providers. I tried to map some hot keys to the VC commands I use often, primarily "diff" with the previous revision/changeset.
Ideally I'd like to map the same key combo to work across all Team Providers where it makes sense. The key mappings of course conflict, since the commands are entirely different 开发者_StackOverflow中文版as far as the IDE is concerned, and Eclipse seems unaware of which Team Provider a project is using:
Any way around this?
You need to implement your own command which would delegate to the relevant command for SVN, CVS or Mercurial, then assign you preferred keybinding to that command. I'd check why there is not a standard API in the eclipse.team stuff for each of those commands though, there may be a good reason there is not.
精彩评论