History table: let the user define which columns are shown
commit5b76c96c4b38c2e3a6286190c361dc8dcb3b4a71
authorThomas Wolf <thomas.wolf@paranor.ch>
Sun, 22 Jul 2018 13:14:20 +0000 (22 15:14 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Wed, 1 Aug 2018 19:20:30 +0000 (1 21:20 +0200)
treefc5ac9df3a4160c7bf7e8c8d254771e30f2313b1
parent7011de74a8fd125677b6a9261d6fbddd51081c99
History table: let the user define which columns are shown

Columns in tables cannot be shown/hidden individually. But we can
set the width to zero to hide a column. Of course the user can hide
and restore columns directly by dragging the column separators, too.

Add a "Columns" sub-menu in the view menu where the user can check
the columns to be shown/hidden. These modifications are transient;
they are not saved or restored when the view is closed or opened,
and they do not survive across and IDE restart. This is similar to
the "pinned" state of a history view.

To permanently change which columns are shown by default, there's
a new preference page.

Bug: 339796
Change-Id: Ib8daff29b6610eed1397969a203947e5e72b629a
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/plugin.properties
org.eclipse.egit.ui/plugin.xml
org.eclipse.egit.ui/src/org/eclipse/egit/ui/PluginPreferenceInitializer.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/UIPreferences.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/HistoryColumnsPreferencePage.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties