[stagingView] Honor label decoration preferences
commit407224928320e23cb1f86d13c080f0b361ace97a
authorRobin Stocker <robin@nibor.org>
Wed, 26 Sep 2012 22:13:17 +0000 (27 00:13 +0200)
committerRobin Stocker <robin@nibor.org>
Wed, 26 Sep 2012 22:13:17 +0000 (27 00:13 +0200)
tree6b5809312464acea19706b595393e3e58c912eb6
parentd2c9313df032794c0dd6db819cf7ace3ab5e2810
[stagingView] Honor label decoration preferences

Reuse DecorationHelper in StagingViewLabelProvider, which ensures that
the preferences are applied.

This way, for users who don't want a text decoration or a different one,
the Staging view now behaves as expected.

Also, the "staged change" icon was not the same as in the resource
decorations.

Bug: 390297
Change-Id: I59bdf389e7b03243d869a91c6605398b5cb8fbea
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingEntry.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingViewLabelProvider.java