DESCRIPTION

Customize diff file headlines in diff tab of commit viewer

The font, foreground color and background color of the first line of a 
file diff can be customized for the diff tab in the commit viewer.
Default background color of the first line is set to RGB(170,170,170)

Depends on jgit's change: I9dd5eb964ed8b6869745c3162159b7425ac2c44a

Bug: 397723
Change-Id: Ia61398146c0336ab332234f24d341561292554db
Signed-off-by: Alondra Arellano xxx@xxx.xxx

COMMENTS

author: Alondra Arellano
date: 2013-02-01 16:37:48.000000000

Uploaded patch set 6.

-------------------------------------
author: Douglas Trujillo
date: 2013-02-02 00:11:33.000000000

Patch Set 6: I would prefer that you didn't submit this

I now hit the following exception when opening the diff tab (on Mac)

!ENTRY org.eclipse.ui 4 4 2013-02-02 01:10:10.477
!MESSAGE An internal error has occurred.
!STACK 0
java.lang.IllegalArgumentException: Argument not valid
	at org.eclipse.swt.SWT.error(SWT.java:4354)
	at org.eclipse.swt.SWT.error(SWT.java:4288)
	at org.eclipse.swt.SWT.error(SWT.java:4259)
	at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:9738)
	at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:9832)
	at org.eclipse.egit.ui.internal.commit.DiffViewer.refreshStyleRanges(DiffViewer.java:256)
	at org.eclipse.egit.ui.internal.commit.DiffEditorPage$1$1.runInUIThread(DiffEditorPage.java:135)
	at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3965)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3642)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1049)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:939)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:79)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:587)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:542)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1443)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1419)

-------------------------------------
