Community
Participate
Working Groups
Created attachment 288757 [details] There is no command in gutter, but there is a command in the context menu The command "Show revision information" is not displayed in gutter if the text editor is open in readonly mode. But in the context menu of the editor the command "Show revision information" is displayed. I'm using the custom text editor that based on XtextEditor.
"Show revision information" depends on a quick diff provider being set. Eclipse Platform, where this is implemented, probably doesn't show the menu items because it thinks that there can be no quick diff if a file is read-only. This would need to be fixed in Eclipse Platform. It's not EGit's doing.
(In reply to Thomas Wolf from comment #1) > "Show revision information" depends on a quick diff provider being set. > Eclipse Platform, where this is implemented, probably doesn't show the menu > items because it thinks that there can be no quick diff if a file is > read-only. > > This would need to be fixed in Eclipse Platform. It's not EGit's doing. Not quite correct. It may be EGit's doing after all. The Eclipse Platform is responsible for the quick diff, and indeed it shows the "Show Quick Diff" toggle only if the editor is modifiable. But Eclipse Platform does nothing with the "Show Revision Information" entry. That is EGit, and EGit wants to add it after the "Show Quick Diff" entry. But if that one isn't there, then neither is the EGit one.
New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/196070
Gerrit change https://git.eclipse.org/r/c/egit/egit/+/196070 was merged to [master]. Commit: http://git.eclipse.org/c/egit/egit.git/commit/?id=fd377bbaec170455e8ebfe789d3be19fe2db2395