File: 001_koppor_debian_3.8.1.patch

package info (click to toggle)
jabref 3.8.1%2Bds-3%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,336 kB
  • sloc: java: 114,114; xml: 3,985; python: 283; sh: 282; perl: 200; ruby: 22; makefile: 6
file content (2764 lines) | stat: -rw-r--r-- 116,082 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
Description: Debian-specific patches from koppor/debian_3.8.1
Author: Oliver Kopp <kopp.dev@gmail.com>
Source: https://github.com/koppor/jabref/commits/debian_3.8.1
Forwarded: not-needed

--- a/build.gradle
+++ b/build.gradle
@@ -91,8 +91,6 @@
     compile 'org.openoffice:ridl:4.1.2'
     compile 'org.openoffice:unoil:4.1.2'
 
-    compile 'com.github.bkromhout:java-diff-utils:2.1.1'
-
     antlr3 'org.antlr:antlr:3.5.2'
     compile 'org.antlr:antlr-runtime:3.5.2'
 
@@ -102,7 +100,7 @@
     // VersionEye states that 6.0.5 is the most recent version, but http://dev.mysql.com/downloads/connector/j/ shows that as "Development Release"
     compile 'mysql:mysql-connector-java:5.1.40'
 
-    compile 'com.impossibl.pgjdbc-ng:pgjdbc-ng:0.6'
+    compile 'org.postgresql:postgresql:9.4.1210'
 
     compile 'net.java.dev.glazedlists:glazedlists_java15:1.9.1'
     compile fileTree(dir: 'lib', includes: ['*.jar'])
@@ -123,13 +121,6 @@
     compile 'org.xmlunit:xmlunit-core:2.3.0'
     compile 'org.xmlunit:xmlunit-matchers:2.3.0'
 
-    // need to use snapshots as the stable version is from 2013 and doesn't support v1.0.1 CitationStyles
-    compile 'org.citationstyles:styles:1.0.1-SNAPSHOT'
-    compile 'org.citationstyles:locales:1.0.1-SNAPSHOT'
-    compile 'de.undercouch:citeproc-java:1.0.1'
-
-    compile 'com.github.lgooddatepicker:LGoodDatePicker:8.3.0'
-
     testCompile 'junit:junit:4.12'
     testCompile 'org.mockito:mockito-core:2.3.0'
     testCompile 'com.github.tomakehurst:wiremock:2.4.1'
--- a/external-libraries.txt
+++ b/external-libraries.txt
@@ -22,11 +22,6 @@
 
 
 # Libraries
-Id:      com.apple:AppleJavaExtensions
-Project: AppleJavaExtensions
-URL:     https://developer.apple.com/legacy/library/samplecode/AppleJavaExtensions/Introduction/Intro.html
-License: Apple License
-
 Id:      org.antlr:antlr
 Project: ANTLR 3
 URL:     http://www.antlr.org/
@@ -47,16 +42,6 @@
 URL:     http://commons.apache.org/logging/
 License: Apache-2.0
 
-Id:      com.github.bkromhout:java-diff-utils
-Project: java-diff-utils
-URL:     https://github.com/bkromhout/java-diff-utils
-License: Apache-2.0
-
-Id:      com.impossibl.pgjdbc-ng:pgjdbc-ng
-Project: pgjdbc-ng
-URL:     http://impossibl.github.io/pgjdbc-ng
-License: BSD
-
 Id:      com.jgoodies:jgoodies-common
 Project: JGoodies Common
 URL:     http://www.jgoodies.com/downloads/libraries/
@@ -147,10 +132,11 @@
 URL:     https://swingx.java.net/
 License: LGPL-3.0
 
-Id:      com.github.lgooddatepicker:LGoodDatePicker
-Project: LGoodDatePicker
-URL:     https://github.com/LGoodDatePicker/LGoodDatePicker
-License: MIT
+Id:      microba
+Path:    lib/microba.jar
+Project: Microba
+URL:     https://github.com/tdbear/microba
+License: BSD
 
 Id:      spin
 Path:    lib/spin.jar
@@ -158,19 +144,4 @@
 URL:     http://spin.sourceforge.net/
 License: LGPL-2.1+
 
-Id:      org.citationstyles.styles
-Project: CSL Styles
-URL:     https://github.com/citation-style-language/styles
-Licence: Creative Commons Attribution-ShareAlike 3.0 Unported license
-
-Id:      org.citationstyles.locales
-Project: CSL Locales
-URL:     https://github.com/citation-style-language/locales
-Licence: CC-BY-SA-3.0
-
-Id:      de.undercouch.citeproc-java
-Project: Citeproc-Java
-URL:     http://michel-kraemer.github.io/citeproc-java/
-Licence: Apache-2.0
-
 The last entry has to end with an empty line. Otherwise the entry is not present in About.html.
--- a/licenses/com.apple_AppleJavaExtensions.txt
+++ /dev/null
@@ -1,51 +0,0 @@
-AppleJavaExtensions
-
-This is a pluggable jar of stub classes representing the new Apple eAWT and
-eIO APIs for Java on Mac OS X.  The purpose of these stubs is to allow for
-compilation of eAWT- or eIO-referencing code on platforms other than Mac OS X.
-The jar file is enclosed in a zip archive for easy expansion on other
-platforms.
-
-These stubs are not intended for the runtime classpath on non-Mac platforms.
-Please see the OSXAdapter sample for how to write cross-platform code that uses
- eAWT.
-
-Disclaimer: IMPORTANT:  This Apple software is supplied to you by Apple
-Computer, Inc. ("Apple") in consideration of your agreement to the
-following terms, and your use, installation, modification or
-redistribution of this Apple software constitutes acceptance of these
-terms.  If you do not agree with these terms, please do not use,
-install, modify or redistribute this Apple software.
-
-In consideration of your agreement to abide by the following terms, and
-subject to these terms, Apple grants you a personal, non-exclusive
-license, under Apple's copyrights in this original Apple software (the
-"Apple Software"), to use, reproduce, modify and redistribute the Apple
-Software, with or without modifications, in source and/or binary forms;
-provided that if you redistribute the Apple Software in its entirety and
-without modifications, you must retain this notice and the following
-text and disclaimers in all such redistributions of the Apple Software.
-Neither the name, trademarks, service marks or logos of Apple Computer,
-Inc. may be used to endorse or promote products derived from the Apple
-Software without specific prior written permission from Apple.  Except
-as expressly stated in this notice, no other rights or licenses, express
-or implied, are granted by Apple herein, including but not limited to
-any patent rights that may be infringed by your derivative works or by
-other works in which the Apple Software may be incorporated.
-
-The Apple Software is provided by Apple on an "AS IS" basis.  APPLE
-MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
-THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
-OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
-
-IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
-OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
-MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
-AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
-STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
-
-Copyright © 2003-2010 Apple Inc., All Rights Reserved
--- a/src/main/java/net/sf/jabref/gui/BasePanel.java
+++ b/src/main/java/net/sf/jabref/gui/BasePanel.java
@@ -91,7 +91,6 @@
 import net.sf.jabref.gui.util.component.CheckBoxMessage;
 import net.sf.jabref.gui.worker.AbstractWorker;
 import net.sf.jabref.gui.worker.CallBack;
-import net.sf.jabref.gui.worker.CitationStyleToClipboardWorker;
 import net.sf.jabref.gui.worker.MarkEntriesAction;
 import net.sf.jabref.gui.worker.SendAsEMailAction;
 import net.sf.jabref.logic.autocompleter.AutoCompletePreferences;
@@ -99,8 +98,6 @@
 import net.sf.jabref.logic.autocompleter.AutoCompleterFactory;
 import net.sf.jabref.logic.autocompleter.ContentAutoCompleters;
 import net.sf.jabref.logic.bibtexkeypattern.BibtexKeyPatternUtil;
-import net.sf.jabref.logic.citationstyle.CitationStyleCache;
-import net.sf.jabref.logic.citationstyle.CitationStyleOutputFormat;
 import net.sf.jabref.logic.exporter.BibtexDatabaseWriter;
 import net.sf.jabref.logic.exporter.FileSaveSession;
 import net.sf.jabref.logic.exporter.SaveException;
@@ -152,8 +149,6 @@
     private final BibDatabaseContext bibDatabaseContext;
     private final MainTableDataModel tableModel;
 
-    private final CitationStyleCache citationStyleCache;
-
     // To contain instantiated entry editors. This is to save time
     // As most enums, this must not be null
     private BasePanelMode mode = BasePanelMode.SHOWING_NOTHING;
@@ -220,8 +215,6 @@
         this.frame = frame;
         this.tableModel = new MainTableDataModel(getBibDatabaseContext());
 
-        citationStyleCache = new CitationStyleCache(bibDatabaseContext);
-
         setupMainPanel();
 
         setupActions();
@@ -493,12 +486,6 @@
         // The action for copying the BibTeX key and the title for the first selected entry
         actions.put(Actions.COPY_KEY_AND_TITLE, (BaseAction) () -> copyKeyAndTitle());
 
-        actions.put(Actions.COPY_CITATION_ASCII_DOC, (BaseAction) () -> copyCitationToClipboard(CitationStyleOutputFormat.ASCII_DOC));
-        actions.put(Actions.COPY_CITATION_XSLFO, (BaseAction) () -> copyCitationToClipboard(CitationStyleOutputFormat.XSL_FO));
-        actions.put(Actions.COPY_CITATION_HTML, (BaseAction) () -> copyCitationToClipboard(CitationStyleOutputFormat.HTML));
-        actions.put(Actions.COPY_CITATION_RTF, (BaseAction) () -> copyCitationToClipboard(CitationStyleOutputFormat.RTF));
-        actions.put(Actions.COPY_CITATION_TEXT, (BaseAction) () -> copyCitationToClipboard(CitationStyleOutputFormat.TEXT));
-
         // The action for copying the BibTeX keys as hyperlinks to the urls of the selected entries
         actions.put(Actions.COPY_KEY_AND_LINK, new CopyBibTeXKeyAndLinkAction(mainTable));
 
@@ -705,14 +692,6 @@
         actions.put(Actions.DOWNLOAD_FULL_TEXT, new FindFullTextAction(this));
     }
 
-    /**
-     * Generates and copies citations based on the selected entries to the clipboard
-     * @param outputFormat the desired {@link CitationStyleOutputFormat}
-     */
-    private void copyCitationToClipboard(CitationStyleOutputFormat outputFormat) {
-        new CitationStyleToClipboardWorker(this, outputFormat).execute();
-    }
-
     private void copy() {
         List<BibEntry> bes = mainTable.getSelectedEntries();
 
@@ -2413,10 +2392,6 @@
         this.currentSearchQuery = currentSearchQuery;
     }
 
-    public CitationStyleCache getCitationStyleCache() {
-        return citationStyleCache;
-    }
-
     public PreviewPanel getPreviewPanel() {
         if (selectionListener == null) {
             // only occurs if this is called while instantiating this BasePanel
--- a/src/main/java/net/sf/jabref/gui/IconTheme.java
+++ b/src/main/java/net/sf/jabref/gui/IconTheme.java
@@ -158,7 +158,6 @@
         FACEBOOK("\uf20c"), /* css: facebook */
         BLOG("\uf46b"), /* css: rss */
         GLOBAL_SEARCH("\uF1E7"), /* css: earth */
-        DATE_PICKER("\uF0ED;"), /* css: calendar */
         // STILL MISSING:
         GROUP_REGULAR("\uF4E6", Color.RED);
 
--- a/src/main/java/net/sf/jabref/gui/JabRefFrame.java
+++ b/src/main/java/net/sf/jabref/gui/JabRefFrame.java
@@ -139,9 +139,9 @@
 import com.google.common.eventbus.Subscribe;
 import com.jgoodies.looks.HeaderStyle;
 import com.jgoodies.looks.Options;
+
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import osx.macadapter.MacAdapter;
 
 /**
  * The main window of the application.
@@ -668,11 +668,7 @@
         //if the events happen too early (ie when the window is not initialized yet), the
         //opened (double-clicked) documents are not displayed.
         if (OS.OS_X) {
-            try {
-                new MacAdapter().registerMacEvents(this);
-            } catch (Exception e) {
-                LOGGER.fatal("Could not interface with Mac OS X methods.", e);
-            }
+            LOGGER.fatal("This program is not designed to run at Mac OS X");
         }
 
     }
--- a/src/main/java/net/sf/jabref/gui/PreviewPanel.java
+++ b/src/main/java/net/sf/jabref/gui/PreviewPanel.java
@@ -31,8 +31,6 @@
 import net.sf.jabref.gui.desktop.JabRefDesktop;
 import net.sf.jabref.gui.fieldeditors.PreviewPanelTransferHandler;
 import net.sf.jabref.gui.keyboard.KeyBinding;
-import net.sf.jabref.gui.worker.CitationStyleWorker;
-import net.sf.jabref.logic.citationstyle.CitationStyle;
 import net.sf.jabref.logic.exporter.ExportFormats;
 import net.sf.jabref.logic.l10n.Localization;
 import net.sf.jabref.logic.layout.Layout;
@@ -79,7 +77,6 @@
     private final CopyPreviewAction copyPreviewAction = new CopyPreviewAction();
 
     private Optional<Pattern> highlightPattern = Optional.empty();
-    private Optional<CitationStyleWorker> citationStyleWorker = Optional.empty();
 
     /**
      * @param databaseContext
@@ -202,21 +199,10 @@
         PreviewPreferences previewPreferences = Globals.prefs.getPreviewPreferences();
         String style = previewPreferences.getPreviewCycle().get(previewPreferences.getPreviewCyclePosition());
 
-        if (CitationStyle.isCitationStyleFile(style)) {
-            if (basePanel.isPresent()) {
-                layout = Optional.empty();
-                CitationStyle citationStyle = CitationStyle.createCitationStyleFromFile(style);
-                if (citationStyle != null) {
-                    basePanel.get().getCitationStyleCache().setCitationStyle(citationStyle);
-                    basePanel.get().output(Localization.lang("Preview style changed to: %0", citationStyle.getTitle()));
-                }
-            }
-        } else {
             updatePreviewLayout(previewPreferences.getPreviewStyle());
             if (basePanel.isPresent()) {
                 basePanel.get().output(Localization.lang("Preview style changed to: %0", Localization.lang("Preview")));
             }
-        }
 
         update();
     }
@@ -264,11 +250,6 @@
     public void update() {
         ExportFormats.entryNumber = 1; // Set entry number in case that is included in the preview layout.
 
-        if (citationStyleWorker.isPresent()){
-            citationStyleWorker.get().cancel(true);
-            citationStyleWorker = Optional.empty();
-        }
-
         if (layout.isPresent()){
             StringBuilder sb = new StringBuilder();
             bibEntry.ifPresent(entry -> sb.append(layout.get()
@@ -276,10 +257,6 @@
             setPreviewLabel(sb.toString());
             markHighlights();
         }
-        else if (basePanel.isPresent()){
-            citationStyleWorker = Optional.of(new CitationStyleWorker(this, previewPane));
-            citationStyleWorker.get().execute();
-        }
 
     }
 
@@ -316,18 +293,12 @@
 
     /**
      * this fixes the Layout, the user cannot change it anymore. Useful for testing the styles in the settings
-     * @param parameter should be either a {@link String} (for the old PreviewStyle) or a {@link CitationStyle}.
      */
-    public PreviewPanel setFixedLayout(Object parameter) {
+    public PreviewPanel setFixedLayout(String parameter) {
         this.fixedLayout = true;
 
         if (parameter instanceof String) {
             updatePreviewLayout((String) parameter);
-        } else if (parameter instanceof CitationStyle) {
-            layout = Optional.empty();
-            if (basePanel.isPresent()){
-                basePanel.get().getCitationStyleCache().setCitationStyle((CitationStyle) parameter);
-            }
         } else {
             LOGGER.error("unknown style type");
         }
--- a/src/main/java/net/sf/jabref/gui/date/DatePickerButton.java
+++ b/src/main/java/net/sf/jabref/gui/date/DatePickerButton.java
@@ -1,69 +1,55 @@
 package net.sf.jabref.gui.date;
 
 import java.awt.BorderLayout;
-import java.time.LocalDate;
-import java.time.format.DateTimeFormatter;
-import java.time.format.DateTimeParseException;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.Date;
 
 import javax.swing.JComponent;
 import javax.swing.JPanel;
 
 import net.sf.jabref.Globals;
-import net.sf.jabref.gui.IconTheme;
 import net.sf.jabref.gui.fieldeditors.FieldEditor;
+import net.sf.jabref.logic.util.date.EasyDateFormat;
 import net.sf.jabref.preferences.JabRefPreferences;
 
-import com.github.lgooddatepicker.components.DatePicker;
-import com.github.lgooddatepicker.components.DatePickerSettings;
-import com.github.lgooddatepicker.optionalusertools.DateChangeListener;
-import com.github.lgooddatepicker.zinternaltools.DateChangeEvent;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
+import com.michaelbaranov.microba.calendar.DatePicker;
 
 /**
  * wrapper and service class for the DatePicker handling at the EntryEditor
  */
-public class DatePickerButton implements DateChangeListener {
+public class DatePickerButton implements ActionListener {
 
-    private static final Log LOGGER = LogFactory.getLog(DatePickerButton.class);
-
-    private final DatePicker datePicker;
+    private final DatePicker datePicker = new DatePicker();
     private final JPanel panel = new JPanel();
     private final FieldEditor editor;
-    private final DateTimeFormatter dateTimeFormatter;
-
-
-    public DatePickerButton(FieldEditor pEditor, boolean useIsoFormat) {
-        if (useIsoFormat) {
-            dateTimeFormatter = DateTimeFormatter.ISO_DATE;
-        } else {
-            dateTimeFormatter = DateTimeFormatter.ofPattern(Globals.prefs.get(JabRefPreferences.TIME_STAMP_FORMAT));
-        }
+    private final boolean isoFormat;
 
-        // Create a date picker with hidden text field (showing button only).
-        DatePickerSettings dateSettings = new DatePickerSettings();
-        dateSettings.setVisibleDateTextField(false);
-        dateSettings.setGapBeforeButtonPixels(0);
-
-        datePicker = new DatePicker(dateSettings);
-        datePicker.addDateChangeListener(this);
-        datePicker.getComponentToggleCalendarButton().setIcon(IconTheme.JabRefIcon.DATE_PICKER.getIcon());
-        datePicker.getComponentToggleCalendarButton().setText("");
 
+    public DatePickerButton(FieldEditor pEditor, Boolean isoFormat) {
+        this.isoFormat = isoFormat;
+        datePicker.showButtonOnly(true);
+        datePicker.addActionListener(this);
+        datePicker.setShowTodayButton(true);
         panel.setLayout(new BorderLayout());
         panel.add(datePicker, BorderLayout.WEST);
         editor = pEditor;
     }
 
     @Override
-    public void dateChanged(DateChangeEvent dateChangeEvent) {
-        LocalDate date = datePicker.getDate();
-        String newDate = "";
+    public void actionPerformed(ActionEvent e) {
+        Date date = datePicker.getDate();
         if (date != null) {
-            newDate = dateTimeFormatter.format(date.atStartOfDay());
-        }
-        if (!newDate.equals(editor.getText())) {
-            editor.setText(newDate);
+            if (isoFormat) {
+                editor.setText(EasyDateFormat.isoDateFormat().getDateAt(date));
+            } else {
+                editor.setText(EasyDateFormat
+                        .fromTimeStampFormat(Globals.prefs.get(JabRefPreferences.TIME_STAMP_FORMAT))
+                        .getDateAt(date));
+            }
+        } else {
+            // in this case the user selected "none" in the date picker, so we just clear the field
+            editor.setText("");
         }
         // Set focus to editor component after changing its text:
         editor.getTextComponent().requestFocus();
@@ -73,19 +59,4 @@
         //return datePicker;
         return panel;
     }
-
-    /**
-     * Used to set the calender popup to the currently used Date
-     * @param dateString
-     */
-    public void updateDatePickerDate(String dateString) {
-        if(dateString!=null && !dateString.isEmpty()) {
-            try {
-                datePicker.setDate(LocalDate.parse(dateString, dateTimeFormatter));
-            } catch (DateTimeParseException exception) {
-                LOGGER.warn("Unable to parse stored date for field '"+editor.getFieldName()+"' with current settings. "
-                        + "Clear button in calender popup will not work.");
-            }
-        }
-    }
 }
--- a/src/main/java/net/sf/jabref/gui/entryeditor/EntryEditor.java
+++ b/src/main/java/net/sf/jabref/gui/entryeditor/EntryEditor.java
@@ -17,8 +17,6 @@
 import java.io.IOException;
 import java.io.StringReader;
 import java.io.StringWriter;
-import java.time.LocalDateTime;
-import java.time.format.DateTimeFormatter;
 import java.util.ArrayList;
 import java.util.HashSet;
 import java.util.List;
@@ -91,6 +89,7 @@
 import net.sf.jabref.logic.l10n.Localization;
 import net.sf.jabref.logic.search.SearchQueryHighlightListener;
 import net.sf.jabref.logic.util.UpdateField;
+import net.sf.jabref.logic.util.date.EasyDateFormat;
 import net.sf.jabref.model.EntryTypes;
 import net.sf.jabref.model.FieldChange;
 import net.sf.jabref.model.database.BibDatabase;
@@ -1460,7 +1459,7 @@
     private Optional<FieldChange> doUpdateTimeStamp() {
         String timeStampField = Globals.prefs.get(JabRefPreferences.TIME_STAMP_FIELD);
         String timeStampFormat = Globals.prefs.get(JabRefPreferences.TIME_STAMP_FORMAT);
-        String timestamp = DateTimeFormatter.ofPattern(timeStampFormat).format(LocalDateTime.now());
+        String timestamp = EasyDateFormat.fromTimeStampFormat(timeStampFormat).getCurrentDate();
         return UpdateField.updateField(entry, timeStampField, timestamp);
     }
 
--- a/src/main/java/net/sf/jabref/gui/entryeditor/FieldExtraComponents.java
+++ b/src/main/java/net/sf/jabref/gui/entryeditor/FieldExtraComponents.java
@@ -5,9 +5,6 @@
 import java.awt.event.MouseAdapter;
 import java.awt.event.MouseEvent;
 import java.io.IOException;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.time.format.DateTimeFormatter;
 import java.util.Optional;
 import java.util.Set;
 
@@ -35,6 +32,7 @@
 import net.sf.jabref.logic.net.URLUtil;
 import net.sf.jabref.logic.util.DOI;
 import net.sf.jabref.logic.util.ISBN;
+import net.sf.jabref.logic.util.date.EasyDateFormat;
 import net.sf.jabref.model.database.BibDatabaseMode;
 import net.sf.jabref.model.entry.BibEntry;
 import net.sf.jabref.model.entry.FieldName;
@@ -417,53 +415,26 @@
      * Set up field such that double click inserts the current date
      * If isDataPicker is True, a button with a data picker is returned
      *
-     * @param editor reference to the FieldEditor to display the date value
-     * @param useDatePicker shows a DatePickerButton if true
-     * @param useIsoFormat if true ISO format is always used
+     * @param editor
+     * @param isDatePicker
      * @return
      */
-    public static Optional<JComponent> getDateTimeExtraComponent(FieldEditor editor, boolean useDatePicker,
-            boolean useIsoFormat) {
+    public static Optional<JComponent> getDateTimeExtraComponent(FieldEditor editor, Boolean isDatePicker,
+            Boolean isoFormat) {
         ((JTextArea) editor).addMouseListener(new MouseAdapter() {
 
             @Override
             public void mouseClicked(MouseEvent e) {
                 if (e.getClickCount() == 2) {// double click
-                    String date = "";
-                    if(useIsoFormat) {
-                        date = DateTimeFormatter.ISO_DATE.format(LocalDate.now());
-                    } else {
-                        date = DateTimeFormatter.ofPattern(Globals.prefs.get(JabRefPreferences.TIME_STAMP_FORMAT)).format(
-                                LocalDateTime.now());
-                    }
+                    String date = EasyDateFormat.isoDateFormat().getCurrentDate();
                     editor.setText(date);
                 }
             }
         });
 
         // insert a datepicker, if the extras field contains this command
-        if (useDatePicker) {
-            DatePickerButton datePicker = new DatePickerButton(editor, useIsoFormat);
-
-            // register a DocumentListener on the underlying text document which notifies the DatePicker which date is currently set
-            ((JTextArea) editor).getDocument().addDocumentListener(new DocumentListener() {
-
-                @Override
-                public void insertUpdate(DocumentEvent e) {
-                    datePicker.updateDatePickerDate(editor.getText());
-                }
-
-                @Override
-                public void removeUpdate(DocumentEvent e) {
-                    datePicker.updateDatePickerDate(editor.getText());
-                }
-
-                @Override
-                public void changedUpdate(DocumentEvent e) {
-                    datePicker.updateDatePickerDate(editor.getText());
-                }
-            });
-
+        if (isDatePicker) {
+            DatePickerButton datePicker = new DatePickerButton(editor, isoFormat);
             return Optional.of(datePicker.getDatePicker());
         } else {
             return Optional.empty();
--- a/src/main/java/net/sf/jabref/gui/menus/RightClickMenu.java
+++ b/src/main/java/net/sf/jabref/gui/menus/RightClickMenu.java
@@ -29,7 +29,6 @@
 import net.sf.jabref.gui.specialfields.SpecialFieldValueViewModel;
 import net.sf.jabref.gui.specialfields.SpecialFieldViewModel;
 import net.sf.jabref.gui.worker.MarkEntriesAction;
-import net.sf.jabref.logic.citationstyle.CitationStyle;
 import net.sf.jabref.logic.l10n.Localization;
 import net.sf.jabref.model.entry.BibEntry;
 import net.sf.jabref.model.entry.FieldName;
@@ -73,17 +72,7 @@
         // the submenu will behave dependent on what style is currently selected (citation/preview)
         PreviewPreferences previewPreferences = Globals.prefs.getPreviewPreferences();
         String style = previewPreferences.getPreviewCycle().get(previewPreferences.getPreviewCyclePosition());
-        if (CitationStyle.isCitationStyleFile(style)) {
-            copySpecialMenu.add(new GeneralAction(Actions.COPY_CITATION_HTML, Localization.menuTitle("Copy citation") + " (HTML)", KeyBinding.COPY_PREVIEW));
-            JMenu copyCitationMenu = new JMenu(Localization.menuTitle("Copy citation") + "...");
-            copyCitationMenu.add(new GeneralAction(Actions.COPY_CITATION_TEXT, "Text"));
-            copyCitationMenu.add(new GeneralAction(Actions.COPY_CITATION_RTF, "RTF"));
-            copyCitationMenu.add(new GeneralAction(Actions.COPY_CITATION_ASCII_DOC, "AsciiDoc"));
-            copyCitationMenu.add(new GeneralAction(Actions.COPY_CITATION_XSLFO, "XSL-FO"));
-            copySpecialMenu.add(copyCitationMenu);
-        } else {
             copySpecialMenu.add(new GeneralAction(Actions.COPY_CITATION_HTML, Localization.lang("Copy preview"), KeyBinding.COPY_PREVIEW));
-        }
 
         copySpecialMenu.add(new GeneralAction(Actions.EXPORT_TO_CLIPBOARD, Localization.lang("Export to clipboard"),
                 IconTheme.JabRefIcon.EXPORT_TO_CLIPBOARD.getSmallIcon()));
--- a/src/main/java/net/sf/jabref/gui/mergeentries/MergeEntries.java
+++ b/src/main/java/net/sf/jabref/gui/mergeentries/MergeEntries.java
@@ -34,7 +34,6 @@
 import net.sf.jabref.logic.bibtex.LatexFieldFormatter;
 import net.sf.jabref.logic.formatter.casechanger.SentenceCaseFormatter;
 import net.sf.jabref.logic.l10n.Localization;
-import net.sf.jabref.logic.util.strings.DiffHighlighting;
 import net.sf.jabref.model.database.BibDatabaseMode;
 import net.sf.jabref.model.entry.BibEntry;
 import net.sf.jabref.model.entry.InternalBibtexFields;
@@ -272,7 +271,7 @@
         mergePanel.add(boldFontLabel(Localization.lang("Entry type")), CELL_CONSTRAINTS.xy(1, 1));
 
         JTextPane leftTypeDisplay = new DiffHighlightingTextPane();
-        leftTypeDisplay.setText(DiffHighlighting.HTML_START + leftEntry.getType() + DiffHighlighting.HTML_END);
+        leftTypeDisplay.setText(leftEntry.getType());
         mergePanel.add(leftTypeDisplay, CELL_CONSTRAINTS.xy(3, 1));
         if (leftEntry.getType().equals(rightEntry.getType())) {
             identicalTypes = true;
@@ -290,13 +289,14 @@
             typeRadioButtons.get(0).setSelected(true);
         }
         JTextPane rightTypeDisplay = new DiffHighlightingTextPane();
-        rightTypeDisplay.setText(DiffHighlighting.HTML_START + rightEntry.getType() + DiffHighlighting.HTML_END);
+        rightTypeDisplay.setText(rightEntry.getType());
         mergePanel.add(rightTypeDisplay, CELL_CONSTRAINTS.xy(11, 1));
     }
 
     private void setupHeadingRows() {
         mainPanel.add(boldFontLabel(Localization.lang("Use")), CELL_CONSTRAINTS.xyw(4, 1, 7, "center, bottom"));
         mainPanel.add(diffMode, CELL_CONSTRAINTS.xy(11, 1, "right, bottom"));
+        diffMode.setVisible(false);
 
         // Set headings
         for (int i = 0; i < 6; i++) {
@@ -362,33 +362,11 @@
         for (String field : fields) {
             String leftString = leftEntry.getField(field).orElse("");
             String rightString = rightEntry.getField(field).orElse("");
-            switch (diffMode.getSelectedIndex()) {
-            case 0: // Plain text
-                break;
-            case 1: // Latexdiff style - word
-                rightString = DiffHighlighting.generateDiffHighlighting(leftString, rightString, " ");
-                break;
-            case 2: // Latexdiff style - character
-                rightString = DiffHighlighting.generateDiffHighlighting(leftString, rightString, "");
-                break;
-            case 3: // Symmetric style - word
-                String tmpLeftString = DiffHighlighting.generateSymmetricHighlighting(leftString, rightString, " ");
-                rightString = DiffHighlighting.generateSymmetricHighlighting(rightString, leftString, " ");
-                leftString = tmpLeftString;
-                break;
-            case 4: // Symmetric style - character
-                tmpLeftString = DiffHighlighting.generateSymmetricHighlighting(leftString, rightString, "");
-                rightString = DiffHighlighting.generateSymmetricHighlighting(rightString, leftString, "");
-                leftString = tmpLeftString;
-                break;
-            default: // Shouldn't happen
-                break;
-            }
             if ((leftString != null) && leftTextPanes.containsKey(field)) {
-                leftTextPanes.get(field).setText(DiffHighlighting.HTML_START + leftString + DiffHighlighting.HTML_END);
+                leftTextPanes.get(field).setText(leftString);
             }
             if ((rightString != null) && rightTextPanes.containsKey(field)) {
-                rightTextPanes.get(field).setText(DiffHighlighting.HTML_START + rightString + DiffHighlighting.HTML_END);
+                rightTextPanes.get(field).setText(rightString);
             }
         }
         SwingUtilities.invokeLater(() -> scrollPane.getVerticalScrollBar()
--- a/src/main/java/net/sf/jabref/gui/preftabs/PreviewPrefsTab.java
+++ b/src/main/java/net/sf/jabref/gui/preftabs/PreviewPrefsTab.java
@@ -5,7 +5,6 @@
 import java.util.ArrayList;
 import java.util.Enumeration;
 import java.util.List;
-import java.util.concurrent.ExecutionException;
 
 import javax.swing.BoxLayout;
 import javax.swing.DefaultListModel;
@@ -16,13 +15,11 @@
 import javax.swing.JScrollPane;
 import javax.swing.JTextArea;
 import javax.swing.ListSelectionModel;
-import javax.swing.SwingWorker;
 
 import net.sf.jabref.Globals;
 import net.sf.jabref.JabRefGUI;
 import net.sf.jabref.gui.BasePanel;
 import net.sf.jabref.gui.PreviewPanel;
-import net.sf.jabref.logic.citationstyle.CitationStyle;
 import net.sf.jabref.logic.l10n.Localization;
 import net.sf.jabref.logic.util.TestEntry;
 import net.sf.jabref.preferences.PreviewPreferences;
@@ -38,8 +35,6 @@
 
     private static final Log LOGGER = LogFactory.getLog(PreviewPrefsTab.class);
 
-    private SwingWorker<List<CitationStyle>, Void> discoverCitationStyleWorker;
-
     private final DefaultListModel<Object> availableModel = new DefaultListModel<>();
     private final DefaultListModel<Object> chosenModel = new DefaultListModel<>();
 
@@ -171,16 +166,12 @@
         chosenModel.clear();
         boolean isPreviewChosen = false;
         for (String style : previewPreferences.getPreviewCycle()) {
-            if (CitationStyle.isCitationStyleFile(style)) {
-                chosenModel.addElement(CitationStyle.createCitationStyleFromFile(style));
-            } else {
                 if (isPreviewChosen) {
                     LOGGER.error("Preview is already in the list, something went wrong");
                     continue;
                 }
                 isPreviewChosen = true;
                 chosenModel.addElement(Localization.lang("Preview"));
-            }
         }
 
         availableModel.clear();
@@ -193,35 +184,6 @@
         btnUp.setEnabled(!chosen.isSelectionEmpty());
         btnDown.setEnabled(!chosen.isSelectionEmpty());
 
-        if (discoverCitationStyleWorker != null){
-            discoverCitationStyleWorker.cancel(true);
-        }
-
-        discoverCitationStyleWorker = new SwingWorker<List<CitationStyle>, Void>() {
-            @Override
-            protected List<CitationStyle> doInBackground() throws Exception {
-                return CitationStyle.discoverCitationStyles();
-            }
-
-            @Override
-            public void done(){
-                if (this.isCancelled()) {
-                    return;
-                }
-                try {
-                    get().stream()
-                            .filter(style -> !previewPreferences.getPreviewCycle().contains(style.getFilepath()))
-                            .sorted((style0, style1) -> style0.getTitle().compareTo(style1.getTitle()))
-                            .forEach(availableModel::addElement);
-
-                    btnRight.setEnabled(!availableModel.isEmpty());
-                } catch (InterruptedException | ExecutionException e) {
-                    LOGGER.error("something went wrong while adding the discovered CitationStyles to the list ");
-                }
-            }
-        };
-        discoverCitationStyleWorker.execute();
-
         layout.setText(Globals.prefs.getPreviewPreferences().getPreviewStyle().replace("__NEWLINE__", "\n"));
     }
 
@@ -231,11 +193,7 @@
         Enumeration<Object> elements = chosenModel.elements();
         while (elements.hasMoreElements()) {
             Object obj = elements.nextElement();
-            if (obj instanceof CitationStyle) {
-                styles.add(((CitationStyle) obj).getFilepath());
-            } else if (obj instanceof String) {
-                styles.add("Preview");
-            }
+            styles.add("Preview");
         }
         PreviewPreferences previewPreferences = Globals.prefs.getPreviewPreferences()
                 .getBuilder()
--- a/src/main/java/net/sf/jabref/gui/worker/CitationStyleToClipboardWorker.java
+++ /dev/null
@@ -1,185 +0,0 @@
-package net.sf.jabref.gui.worker;
-
-import java.awt.datatransfer.StringSelection;
-import java.awt.datatransfer.Transferable;
-import java.io.StringReader;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.concurrent.ExecutionException;
-
-import javax.swing.SwingWorker;
-
-import net.sf.jabref.Globals;
-import net.sf.jabref.gui.BasePanel;
-import net.sf.jabref.gui.ClipBoardManager;
-import net.sf.jabref.gui.exporter.RtfTransferable;
-import net.sf.jabref.gui.fieldeditors.HtmlTransferable;
-import net.sf.jabref.gui.fieldeditors.XmlTransferable;
-import net.sf.jabref.logic.citationstyle.CitationStyle;
-import net.sf.jabref.logic.citationstyle.CitationStyleGenerator;
-import net.sf.jabref.logic.citationstyle.CitationStyleOutputFormat;
-import net.sf.jabref.logic.l10n.Localization;
-import net.sf.jabref.logic.layout.Layout;
-import net.sf.jabref.logic.layout.LayoutFormatterPreferences;
-import net.sf.jabref.logic.layout.LayoutHelper;
-import net.sf.jabref.logic.util.OS;
-import net.sf.jabref.model.entry.BibEntry;
-import net.sf.jabref.preferences.PreviewPreferences;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-/**
- * Copies the selected entries and formats them with the selected citation style (or preview), then it is copied to the clipboard.
- * This worker cannot be reused.
- */
-public class CitationStyleToClipboardWorker extends SwingWorker<List<String>, Void> {
-
-    private static final Log LOGGER = LogFactory.getLog(CitationStyleToClipboardWorker.class);
-
-    private final BasePanel basePanel;
-    private final List<BibEntry> selectedEntries;
-    private final String style;
-    private final String previewStyle;
-    private final CitationStyleOutputFormat outputFormat;
-
-
-    public CitationStyleToClipboardWorker(BasePanel basePanel, CitationStyleOutputFormat outputFormat) {
-        this.basePanel = basePanel;
-        this.selectedEntries = basePanel.getSelectedEntries();
-        PreviewPreferences previewPreferences = Globals.prefs.getPreviewPreferences();
-        this.style = previewPreferences.getPreviewCycle().get(previewPreferences.getPreviewCyclePosition());
-        this.previewStyle = Globals.prefs.getPreviewPreferences().getPreviewStyle();
-        this.outputFormat = outputFormat;
-
-        basePanel.frame().setStatus(Localization.lang("Copying..."));
-    }
-
-    @Override
-    protected List<String> doInBackground() throws Exception {
-        if (CitationStyle.isCitationStyleFile(style)) {
-            return CitationStyleGenerator.generateCitations(selectedEntries, style, outputFormat);
-        } else {
-            StringReader sr = new StringReader(previewStyle.replace("__NEWLINE__", "\n"));
-            LayoutFormatterPreferences layoutFormatterPreferences = Globals.prefs.getLayoutFormatterPreferences(Globals.journalAbbreviationLoader);
-            Layout layout = new LayoutHelper(sr, layoutFormatterPreferences).getLayoutFromText();
-
-            List<String> citations = new ArrayList<>(selectedEntries.size());
-            for (BibEntry entry : selectedEntries) {
-                citations.add(layout.doLayout(entry, basePanel.getDatabase()));
-            }
-            return citations;
-        }
-    }
-
-    @Override
-    public void done() {
-        try {
-            List<String> citations = get();
-
-            // if it's not a citation style take care of the preview
-            if (!CitationStyle.isCitationStyleFile(style)) {
-                new ClipBoardManager().setTransferableClipboardContents(processPreview(citations));
-
-            } else {
-                // if it's generated by a citation style take care of each output format
-                Transferable transferable;
-                switch (outputFormat) {
-                    case HTML:
-                        transferable = processHtml(citations);
-                        break;
-                    case RTF:
-                        transferable = processRtf(citations);
-                        break;
-                    case XSL_FO:
-                        transferable = processXslFo(citations);
-                        break;
-                    case ASCII_DOC:
-                    case TEXT:
-                        transferable = processText(citations);
-                        break;
-                    default:
-                        LOGGER.warn("unknown output format: '" + outputFormat + "', processing it via the default.");
-                        transferable = processText(citations);
-                        break;
-                }
-                new ClipBoardManager().setTransferableClipboardContents(transferable);
-            }
-
-            basePanel.frame().setStatus(Localization.lang("Copied %0 citations.", String.valueOf(selectedEntries.size())));
-        } catch (InterruptedException | ExecutionException e) {
-            LOGGER.error("Error while copying citations to the clipboard", e);
-        }
-    }
-
-    /**
-     * Generates a plain text string out of the preview and copies it additionally to the html to the clipboard
-     * (WYSIWYG Editors use the HTML, plain text editors the text)
-     */
-    protected static HtmlTransferable processPreview(List<String> citations) {
-        String html = String.join(CitationStyleOutputFormat.HTML.getLineSeparator(), citations);
-        return new HtmlTransferable(html);
-    }
-
-    /**
-     * Joins every citation with a newline and returns it.
-     */
-    protected static StringSelection processText(List<String> citations) {
-        return new StringSelection(String.join(CitationStyleOutputFormat.TEXT.getLineSeparator(), citations));
-    }
-
-    /**
-     * Converts the citations into the RTF format.
-     */
-    protected static RtfTransferable processRtf(List<String> citations) {
-        String result = "{\\rtf" + OS.NEWLINE +
-                String.join(CitationStyleOutputFormat.RTF.getLineSeparator(), citations) +
-                "}";
-        return new RtfTransferable(result);
-    }
-
-    /**
-     * Inserts each citation into a XLSFO body and copies it to the clipboard
-     */
-    protected static XmlTransferable processXslFo(List<String> citations) {
-        String result = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + OS.NEWLINE +
-                "<fo:root xmlns:fo=\"http://www.w3.org/1999/XSL/Format\">" + OS.NEWLINE +
-                "   <fo:layout-master-set>" + OS.NEWLINE +
-                "      <fo:simple-page-master master-name=\"citations\">" + OS.NEWLINE +
-                "         <fo:region-body/>" + OS.NEWLINE +
-                "      </fo:simple-page-master>" + OS.NEWLINE +
-                "   </fo:layout-master-set>" + OS.NEWLINE +
-                "   <fo:page-sequence master-reference=\"citations\">" + OS.NEWLINE +
-                "      <fo:flow flow-name=\"xsl-region-body\">" + OS.NEWLINE + OS.NEWLINE;
-
-        result += String.join(CitationStyleOutputFormat.XSL_FO.getLineSeparator(), citations);
-
-        result += OS.NEWLINE +
-                "      </fo:flow>" + OS.NEWLINE +
-                "   </fo:page-sequence>" + OS.NEWLINE +
-                "</fo:root>" + OS.NEWLINE;
-
-        return new XmlTransferable(result);
-    }
-
-    /**
-     * Inserts each citation into a HTML body and copies it to the clipboard
-     */
-    protected static HtmlTransferable processHtml(List<String> citations) {
-        String result = "<!DOCTYPE html>" + OS.NEWLINE +
-                "<html>" + OS.NEWLINE +
-                "   <head>" + OS.NEWLINE +
-                "      <meta charset=\"utf-8\">" + OS.NEWLINE +
-                "   </head>" + OS.NEWLINE +
-                "   <body>" + OS.NEWLINE + OS.NEWLINE;
-
-        result += String.join(CitationStyleOutputFormat.HTML.getLineSeparator(), citations);
-
-        result += OS.NEWLINE +
-                "   </body>" + OS.NEWLINE +
-                "</html>" + OS.NEWLINE;
-
-        return new HtmlTransferable(result);
-    }
-
-}
--- a/src/main/java/net/sf/jabref/gui/worker/CitationStyleWorker.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package net.sf.jabref.gui.worker;
-
-import java.util.Objects;
-import java.util.Optional;
-import java.util.concurrent.ExecutionException;
-
-import javax.swing.JEditorPane;
-import javax.swing.SwingWorker;
-
-import net.sf.jabref.gui.BasePanel;
-import net.sf.jabref.gui.PreviewPanel;
-import net.sf.jabref.logic.citationstyle.CitationStyle;
-import net.sf.jabref.logic.l10n.Localization;
-import net.sf.jabref.model.entry.BibEntry;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-
-/**
- * Generates a citation and updates the linked preview panel
- */
-public class CitationStyleWorker extends SwingWorker<String, Void> {
-
-    private static final Log LOGGER = LogFactory.getLog(CitationStyleWorker.class);
-
-    private final PreviewPanel previewPanel;
-
-
-    public CitationStyleWorker(PreviewPanel previewPanel, JEditorPane previewPane) {
-        this.previewPanel = Objects.requireNonNull(previewPanel);
-        Objects.requireNonNull(previewPane);
-
-        Optional<BasePanel> basePanel = previewPanel.getBasePanel();
-        if (basePanel.isPresent()){
-            CitationStyle citationStyle = basePanel.get().getCitationStyleCache().getCitationStyle();
-            previewPane.setText("<i>" + Localization.lang("Processing %0", Localization.lang("Citation Style")) +
-                    ": " + citationStyle.getTitle() + " ..." + "</i>");
-        }
-        previewPane.revalidate();
-    }
-
-    @Override
-    protected String doInBackground() throws Exception {
-        Optional<BasePanel> basePanel = previewPanel.getBasePanel();
-        BibEntry entry = previewPanel.getEntry();
-
-        String fieldText = "";
-        if ((entry != null) && basePanel.isPresent()) {
-            fieldText = basePanel.get().getCitationStyleCache().getCitationFor(entry);
-        }
-        return fieldText;
-    }
-
-    @Override
-    public void done() {
-        if (this.isCancelled()) {
-            return;
-        }
-        String text;
-        Boolean success = true;
-        try {
-            text = this.get();
-        } catch (InterruptedException | ExecutionException e) {
-            LOGGER.error("Error while generating citation style", e);
-            text = Localization.lang("Error while generating citation style");
-            success = false;
-        }
-
-        previewPanel.setPreviewLabel(text);
-
-        if (success) {
-            previewPanel.markHighlights();
-        }
-    }
-
-}
--- a/src/main/java/net/sf/jabref/logic/citationstyle/CitationStyle.java
+++ /dev/null
@@ -1,178 +0,0 @@
-package net.sf.jabref.logic.citationstyle;
-
-import java.io.IOException;
-import java.io.StringReader;
-import java.net.URISyntaxException;
-import java.net.URL;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.NoSuchFileException;
-import java.nio.file.Paths;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.Enumeration;
-import java.util.List;
-import java.util.Objects;
-import java.util.jar.JarEntry;
-import java.util.jar.JarFile;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-
-import net.sf.jabref.logic.util.FileExtensions;
-
-import de.undercouch.citeproc.helper.CSLUtils;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.w3c.dom.CharacterData;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-
-/**
- * Representation of a CitationStyle
- * Stores its name, the filepath and the style itself
- */
-public class CitationStyle {
-
-    public static final String DEFAULT = "/ieee.csl";
-    private static final Log LOGGER = LogFactory.getLog(CitationStyle.class);
-
-    private final String filepath;
-    private final String title;
-    private final String source;
-
-
-    private CitationStyle(final String filename, final String title, final String source) {
-        this.filepath = Objects.requireNonNull(filename);
-        this.title = Objects.requireNonNull(title);
-        this.source = Objects.requireNonNull(source);
-    }
-
-    /**
-     * Creates an CitationStyle instance out of the style string
-     */
-    private static CitationStyle createCitationStyleFromSource(final String source, final String filename) {
-        try {
-            DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
-            InputSource is = new InputSource();
-            is.setCharacterStream(new StringReader(source));
-
-            Document doc = db.parse(is);
-            NodeList nodes = doc.getElementsByTagName("info");
-
-            NodeList titleNode = ((Element) nodes.item(0)).getElementsByTagName("title");
-            String title = ((CharacterData) titleNode.item(0).getFirstChild()).getData();
-
-            return new CitationStyle(filename, title, source);
-        } catch (ParserConfigurationException | SAXException | IOException e) {
-            LOGGER.error("Error while parsing source", e);
-        }
-        return null;
-    }
-
-    /**
-     * Loads the CitationStyle from the given file
-     */
-    public static CitationStyle createCitationStyleFromFile(final String styleFile) {
-        if (!isCitationStyleFile(styleFile)) {
-            LOGGER.error("Can only load style files: "+ styleFile);
-            return null;
-        }
-
-        try {
-            String text;
-            String internalFile = (styleFile.startsWith("/") ? "" : "/") + styleFile;
-            URL url = CitationStyle.class.getResource(internalFile);
-            if (url != null) {
-                text = CSLUtils.readURLToString(url, StandardCharsets.UTF_8.toString());
-            } else {
-                // if the url is null then the style is located outside the classpath
-                text = new String(Files.readAllBytes(Paths.get(styleFile)), StandardCharsets.UTF_8);
-            }
-            return createCitationStyleFromSource(text, styleFile);
-        } catch (NoSuchFileException e){
-            LOGGER.error("Could not find file: "+ styleFile, e);
-        } catch (IOException e) {
-            LOGGER.error("Error reading source file", e);
-        }
-        return null;
-    }
-
-    public static CitationStyle getDefault(){
-        return createCitationStyleFromFile(DEFAULT);
-    }
-
-    /**
-     * THIS ONLY WORKS WHEN JabRef IS STARTED AS AN APPLICATION (JAR)
-     *
-     * Reads all available CitationStyle in the Jar
-     */
-    public static List<CitationStyle> discoverCitationStyles() {
-        try {
-            final List<CitationStyle> citationStyles = new ArrayList<>();
-            String path = CitationStyle.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath();
-
-            try (JarFile file = new JarFile(path)) {
-                Enumeration<JarEntry> entries = file.entries();
-                while (entries.hasMoreElements()) {
-                    String filename = entries.nextElement().getName();
-                    if (!filename.startsWith("dependent") && filename.endsWith("csl")) {
-                        CitationStyle citationStyle = CitationStyle.createCitationStyleFromFile(filename);
-                        if (citationStyle != null) {
-                            citationStyles.add(citationStyle);
-                        }
-                    }
-                }
-            }
-            return citationStyles;
-        } catch (IOException | URISyntaxException ex) {
-            LOGGER.error("something went wrong while searching available CitationStyles. " +
-                    "Are you running directly from source code?", ex);
-        }
-        return Collections.emptyList();
-    }
-
-    /**
-     * Checks if the given style file is a CitationStyle
-     */
-    public static boolean isCitationStyleFile(String styleFile){
-        return Arrays.stream(FileExtensions.CITATION_STYLE.getExtensions()).anyMatch(styleFile::endsWith);
-    }
-
-    public String getTitle() {
-        return title;
-    }
-
-    public String getSource() {
-        return source;
-    }
-
-    public String getFilepath() {
-        return filepath;
-    }
-
-    @Override
-    public String toString() {
-        return title;
-    }
-
-    @Override
-    public boolean equals(Object other) {
-        if (this == other) {
-            return true;
-        }
-        if (other == null || getClass() != other.getClass()) {
-            return false;
-        }
-
-        CitationStyle that = (CitationStyle) other;
-        return source != null ? source.equals(that.source) : that.source == null;
-    }
-
-}
--- a/src/main/java/net/sf/jabref/logic/citationstyle/CitationStyleCache.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package net.sf.jabref.logic.citationstyle;
-
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-import net.sf.jabref.model.database.BibDatabaseContext;
-import net.sf.jabref.model.database.event.EntryRemovedEvent;
-import net.sf.jabref.model.entry.BibEntry;
-import net.sf.jabref.model.entry.event.EntryChangedEvent;
-
-import com.google.common.eventbus.Subscribe;
-
-
-/**
- * Caches the generated Citations for quicker access
- * {@link CitationStyleGenerator} generates the citaiton with JavaScript which may take some time
- */
-public class CitationStyleCache {
-
-    private CitationStyle citationStyle = CitationStyle.getDefault();
-    private Map<BibEntry, String> citationStylesCache = new HashMap<>();
-
-
-    public CitationStyleCache(BibDatabaseContext bibDatabaseContext) {
-        this(bibDatabaseContext, CitationStyle.getDefault());
-    }
-
-    public CitationStyleCache(BibDatabaseContext bibDatabaseContext, CitationStyle citationStyle) {
-        this.setCitationStyle(citationStyle);
-        bibDatabaseContext.getDatabase().registerListener(new BibDatabaseEntryListener());
-    }
-
-    /**
-     * returns the citation for the given BibEntry and the set CitationStyle
-     */
-    public String getCitationFor(BibEntry entry) {
-        String citation = citationStylesCache.get(entry);
-        if (citation == null) {
-            citation = CitationStyleGenerator.generateCitation(entry, this.citationStyle.getSource(), CitationStyleOutputFormat.HTML);
-            citationStylesCache.put(entry, citation);
-        }
-        return citation;
-    }
-
-    public void setCitationStyle(CitationStyle citationStyle) {
-        Objects.requireNonNull(citationStyle);
-        if (!this.citationStyle.equals(citationStyle)){
-            this.citationStyle = citationStyle;
-            this.citationStylesCache.clear();
-        }
-    }
-
-    public CitationStyle getCitationStyle() {
-        return citationStyle;
-    }
-
-
-    private class BibDatabaseEntryListener {
-        /**
-         * removes the outdated citation of the changed entry
-         */
-        @Subscribe
-        public void listen(EntryChangedEvent entryChangedEvent) {
-            citationStylesCache.remove(entryChangedEvent.getBibEntry());
-        }
-
-        /**
-         * removes the citation of the removed entry as it's not needed anymore
-         */
-        @Subscribe
-        public void listen(EntryRemovedEvent entryRemovedEvent) {
-            citationStylesCache.remove(entryRemovedEvent.getBibEntry());
-        }
-    }
-
-}
--- a/src/main/java/net/sf/jabref/logic/citationstyle/CitationStyleGenerator.java
+++ /dev/null
@@ -1,100 +0,0 @@
-package net.sf.jabref.logic.citationstyle;
-
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-import java.util.Optional;
-
-import net.sf.jabref.logic.l10n.Localization;
-import net.sf.jabref.model.entry.BibEntry;
-
-import de.undercouch.citeproc.CSL;
-import de.undercouch.citeproc.bibtex.BibTeXConverter;
-import de.undercouch.citeproc.csl.CSLItemData;
-import de.undercouch.citeproc.output.Bibliography;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.jbibtex.BibTeXEntry;
-import org.jbibtex.DigitStringValue;
-import org.jbibtex.Key;
-import org.jbibtex.TokenMgrException;
-
-
-/**
- * WARNING: the citation is generated using JavaScript which may take some time, better call it from outside the main Thread
- */
-public class CitationStyleGenerator {
-
-    private static final Log LOGGER = LogFactory.getLog(CitationStyleGenerator.class);
-    private static final BibTeXConverter BIBTEX_CONVERTER = new BibTeXConverter();
-
-    /**
-     * WARNING: the citation is generated using JavaScript which may take some time, better call it from outside the main Thread
-     * Generates a Citation based on the given entry and style
-     */
-    protected static String generateCitation(BibEntry entry, CitationStyle style) {
-        return generateCitation(entry, style.getSource(), CitationStyleOutputFormat.HTML);
-    }
-
-    /**
-     * WARNING: the citation is generated using JavaScript which may take some time, better call it from outside the main Thread
-     * Generates a Citation based on the given entry and style
-     */
-    protected static String generateCitation(BibEntry entry, String style) {
-        return generateCitation(entry, style, CitationStyleOutputFormat.HTML);
-    }
-
-    /**
-     * WARNING: the citation is generated using JavaScript which may take some time, better call it from outside the main Thread
-     * Generates a Citation based on the given entry, style, and output format
-     */
-    protected static String generateCitation(BibEntry entry, String style, CitationStyleOutputFormat outputFormat) {
-        return generateCitations(Collections.singletonList(entry), style, outputFormat).get(0);
-    }
-
-    /**
-     * WARNING: the citation is generated using JavaScript which may take some time, better call it from outside the main Thread
-     * Generates the citation for multiple entries at once. This is useful when the Citation Style has an increasing number
-     */
-    public static List<String> generateCitations(List<BibEntry> bibEntries, String style, CitationStyleOutputFormat outputFormat) {
-        try {
-            CSLItemData[] cslItemData = new CSLItemData[bibEntries.size()];
-            for (int i = 0; i < bibEntries.size(); i++) {
-                cslItemData[i] = bibEntryToCSLItemData(bibEntries.get(i));
-            }
-            Bibliography bibliography = CSL.makeAdhocBibliography(style, outputFormat.getFormat(), cslItemData);
-            return Arrays.asList(bibliography.getEntries());
-
-        } catch (IOException | ArrayIndexOutOfBoundsException e) {
-            LOGGER.error("Could not generate BibEntry citation", e);
-            return Collections.singletonList(Localization.lang("Cannot generate preview based on selected citation style."));
-        } catch (TokenMgrException e) {
-            LOGGER.error("Bad character inside BibEntry", e);
-            // sadly one cannot easily retrieve the bad char from the TokenMgrError
-            return Collections.singletonList(new StringBuilder()
-                    .append(Localization.lang("Cannot generate preview based on selected citation style."))
-                    .append(outputFormat.getLineSeparator())
-                    .append(Localization.lang("Bad character inside entry"))
-                    .append(outputFormat.getLineSeparator())
-                    .append(e.getLocalizedMessage())
-                    .toString());
-        }
-    }
-
-    /**
-     * Converts the {@link BibEntry} into {@link CSLItemData}.
-     */
-    private static CSLItemData bibEntryToCSLItemData(BibEntry bibEntry) {
-        String citeKey = bibEntry.getCiteKeyOptional().orElse("");
-        BibTeXEntry bibTeXEntry = new BibTeXEntry(new Key(bibEntry.getType()), new Key(citeKey));
-
-        // Not every field is already generated into latex free fields
-        for (String key : bibEntry.getFieldMap().keySet()) {
-            Optional<String> latexFreeField = bibEntry.getLatexFreeField(key);
-            latexFreeField.ifPresent(value -> bibTeXEntry.addField(new Key(key), new DigitStringValue(value)));
-        }
-        return BIBTEX_CONVERTER.toItemData(bibTeXEntry);
-    }
-
-}
--- a/src/main/java/net/sf/jabref/logic/citationstyle/CitationStyleOutputFormat.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package net.sf.jabref.logic.citationstyle;
-
-
-import net.sf.jabref.logic.util.OS;
-
-public enum CitationStyleOutputFormat {
-
-    ASCII_DOC("asciidoc", ""),
-    HTML("html", OS.NEWLINE + "<br>" + OS.NEWLINE),
-    RTF("rtf", "\\line" + OS.NEWLINE),
-    TEXT("text", ""),
-    XSL_FO("fo", OS.NEWLINE);
-
-    private final String format;
-    private final String lineSeparator;
-
-    CitationStyleOutputFormat(String format, String lineSeparator) {
-        this.format = format;
-        this.lineSeparator = lineSeparator;
-    }
-
-    public String getFormat() {
-        return format;
-    }
-
-    public String getLineSeparator() {
-        return lineSeparator;
-    }
-
-    @Override
-    public String toString() {
-        return format;
-    }
-
-}
--- a/src/main/java/net/sf/jabref/logic/util/UpdateField.java
+++ b/src/main/java/net/sf/jabref/logic/util/UpdateField.java
@@ -1,10 +1,9 @@
 package net.sf.jabref.logic.util;
 
-import java.time.LocalDateTime;
-import java.time.format.DateTimeFormatter;
 import java.util.Collection;
 import java.util.Optional;
 
+import net.sf.jabref.logic.util.date.EasyDateFormat;
 import net.sf.jabref.model.FieldChange;
 import net.sf.jabref.model.entry.BibEntry;
 import net.sf.jabref.model.entry.FieldName;
@@ -87,7 +86,7 @@
     public static void setAutomaticFields(BibEntry entry, boolean overwriteOwner, boolean overwriteTimestamp,
             UpdateFieldPreferences prefs) {
         String defaultOwner = prefs.getDefaultOwner();
-        String timestamp = DateTimeFormatter.ofPattern(prefs.getTimeStampFormat()).format(LocalDateTime.now());
+        String timestamp = EasyDateFormat.fromTimeStampFormat(prefs.getTimeStampFormat()).getCurrentDate();
         String timeStampField = prefs.getTimeStampField();
         boolean setOwner = prefs.isUseOwner() && (overwriteOwner || (!entry.hasField(FieldName.OWNER)));
         boolean setTimeStamp = prefs.isUseTimeStamp() && (overwriteTimestamp || (!entry.hasField(timeStampField)));
@@ -132,7 +131,7 @@
 
         String timeStampField = prefs.getTimeStampField();
         String defaultOwner = prefs.getDefaultOwner();
-        String timestamp = DateTimeFormatter.ofPattern(prefs.getTimeStampFormat()).format(LocalDateTime.now());
+        String timestamp = EasyDateFormat.fromTimeStampFormat(prefs.getTimeStampFormat()).getCurrentDate();
 
         // Iterate through all entries
         for (BibEntry curEntry : bibs) {
--- /dev/null
+++ b/src/main/java/net/sf/jabref/logic/util/date/EasyDateFormat.java
@@ -0,0 +1,63 @@
+package net.sf.jabref.logic.util.date;
+
+import java.time.ZoneId;
+import java.time.ZonedDateTime;
+import java.time.format.DateTimeFormatter;
+import java.util.Date;
+
+public class EasyDateFormat {
+
+    /**
+     * The formatter objects
+     */
+    private final DateTimeFormatter dateFormatter;
+
+
+    public EasyDateFormat(String dateFormat) {
+        this(DateTimeFormatter.ofPattern(dateFormat));
+    }
+
+    public EasyDateFormat(DateTimeFormatter dateFormatter) {
+        this.dateFormatter = dateFormatter;
+    }
+
+    /**
+     * Creates a String containing the current date (and possibly time),
+     * formatted according to the format set in preferences under the key
+     * "timeStampFormat".
+     *
+     * @return The date string.
+     */
+    public String getCurrentDate() {
+        return getDateAt(ZonedDateTime.now());
+    }
+
+    /**
+     * Creates a readable Date string from the parameter date. The format is set
+     * in preferences under the key "timeStampFormat".
+     *
+     * @return The formatted date string.
+     */
+    public String getDateAt(Date date) {
+        return getDateAt(date.toInstant().atZone(ZoneId.systemDefault()));
+    }
+
+    /**
+     * Creates a readable Date string from the parameter date. The format is set
+     * in preferences under the key "timeStampFormat".
+     *
+     * @return The formatted date string.
+     */
+    public String getDateAt(ZonedDateTime dateTime) {
+        // first use, create an instance
+        return dateTime.format(dateFormatter);
+    }
+
+    public static EasyDateFormat fromTimeStampFormat(String timeStampFormat) {
+        return new EasyDateFormat(timeStampFormat);
+    }
+
+    public static EasyDateFormat isoDateFormat() {
+        return new EasyDateFormat(DateTimeFormatter.ISO_LOCAL_DATE);
+    }
+}
--- a/src/main/java/net/sf/jabref/logic/util/strings/DiffHighlighting.java
+++ /dev/null
@@ -1,101 +0,0 @@
-package net.sf.jabref.logic.util.strings;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-import java.util.Objects;
-
-import difflib.Delta;
-import difflib.DiffUtils;
-
-public class DiffHighlighting {
-
-    private static final String ADDITION_START = "<span class=add>";
-    private static final String REMOVAL_START = "<span class=del>";
-    private static final String CHANGE_START = "<span class=change>";
-    private static final String TAG_END = "</span>";
-
-    public static final String HTML_START = "<html><body>";
-    public static final String HTML_END = "</body></html>";
-
-
-    public static String generateDiffHighlighting(String baseString, String modifiedString, String separator) {
-        Objects.requireNonNull(separator);
-        if ((baseString != null) && (modifiedString != null)) {
-            List<String> stringList = new ArrayList<>(Arrays.asList(baseString.split(separator)));
-            List<Delta<String>> deltaList = new ArrayList<>(
-                    DiffUtils.diff(stringList, Arrays.asList(modifiedString.split(separator))).getDeltas());
-            Collections.reverse(deltaList);
-            for (Delta<String> delta : deltaList) {
-                int startPos = delta.getOriginal().getPosition();
-                List<String> lines = delta.getOriginal().getLines();
-                int offset = 0;
-                switch (delta.getType()) {
-                case CHANGE:
-                    for (String line : lines) {
-                        stringList.set(startPos + offset, (offset == 0 ? DiffHighlighting.REMOVAL_START : "") + line);
-                        offset++;
-                    }
-                    stringList.set((startPos + offset) - 1,
-                            stringList.get((startPos + offset) - 1) + DiffHighlighting.TAG_END + separator + DiffHighlighting.ADDITION_START
-                                    + String.join(separator, delta.getRevised().getLines()) + DiffHighlighting.TAG_END);
-                    break;
-                case DELETE:
-                    for (String line : lines) {
-                        stringList.set(startPos + offset, (offset == 0 ? DiffHighlighting.REMOVAL_START : "") + line);
-                        offset++;
-                    }
-                    stringList.set((startPos + offset) - 1,
-                            stringList.get((startPos + offset) - 1) + DiffHighlighting.TAG_END);
-                    break;
-                case INSERT:
-                    stringList.add(delta.getOriginal().getPosition(),
-                            DiffHighlighting.ADDITION_START + String.join(separator, delta.getRevised().getLines()) + DiffHighlighting.TAG_END);
-                    break;
-                default:
-                    break;
-                }
-            }
-            return String.join(separator, stringList);
-        }
-        return modifiedString;
-    }
-
-    public static String generateSymmetricHighlighting(String baseString, String modifiedString, String separator) {
-        if ((baseString != null) && (modifiedString != null)) {
-            List<String> stringList = new ArrayList<>(Arrays.asList(baseString.split(separator)));
-            List<Delta<String>> deltaList = new ArrayList<>(DiffUtils
-                    .diff(stringList, new ArrayList<>(Arrays.asList(modifiedString.split(separator)))).getDeltas());
-            Collections.reverse(deltaList);
-            for (Delta<String> delta : deltaList) {
-                int startPos = delta.getOriginal().getPosition();
-                List<String> lines = delta.getOriginal().getLines();
-                int offset = 0;
-                switch (delta.getType()) {
-                case CHANGE:
-                    for (String line : lines) {
-                        stringList.set(startPos + offset, (offset == 0 ? DiffHighlighting.CHANGE_START : "") + line);
-                        offset++;
-                    }
-                    stringList.set((startPos + offset) - 1, stringList.get((startPos + offset) - 1) + DiffHighlighting.TAG_END);
-                    break;
-                case DELETE:
-                    for (String line : lines) {
-                        stringList.set(startPos + offset, (offset == 0 ? DiffHighlighting.ADDITION_START : "") + line);
-                        offset++;
-                    }
-                    stringList.set((startPos + offset) - 1, stringList.get((startPos + offset) - 1) + DiffHighlighting.TAG_END);
-                    break;
-                case INSERT:
-                    break;
-                default:
-                    break;
-                }
-            }
-            return String.join(separator, stringList);
-        }
-        return modifiedString;
-    }
-
-}
--- a/src/main/java/net/sf/jabref/preferences/JabRefPreferences.java
+++ b/src/main/java/net/sf/jabref/preferences/JabRefPreferences.java
@@ -42,7 +42,6 @@
 import net.sf.jabref.logic.bibtex.FieldContentParserPreferences;
 import net.sf.jabref.logic.bibtex.LatexFieldFormatterPreferences;
 import net.sf.jabref.logic.bibtexkeypattern.BibtexKeyPatternPreferences;
-import net.sf.jabref.logic.citationstyle.CitationStyle;
 import net.sf.jabref.logic.cleanup.CleanupPreferences;
 import net.sf.jabref.logic.cleanup.CleanupPreset;
 import net.sf.jabref.logic.cleanup.Cleanups;
@@ -800,7 +799,7 @@
         defaults.put(VERSION_IGNORED_UPDATE, "");
 
         // preview
-        defaults.put(CYCLE_PREVIEW, "Preview;" + CitationStyle.DEFAULT);
+        defaults.put(CYCLE_PREVIEW, "Preview");
         defaults.put(CYCLE_PREVIEW_POS, 0);
         defaults.put(PREVIEW_PANEL_HEIGHT, 200);
         defaults.put(PREVIEW_ENABLED, Boolean.TRUE);
--- a/src/main/java/net/sf/jabref/shared/DBMSType.java
+++ b/src/main/java/net/sf/jabref/shared/DBMSType.java
@@ -18,8 +18,8 @@
             "jdbc:oracle:thin:@%s:%d:%s", 1521),
     POSTGRESQL(
             "PostgreSQL",
-            "com.impossibl.postgres.jdbc.PGDriver",
-            "jdbc:pgsql://%s:%d/%s", 5432);
+            "org.postgresql.Driver",
+            "jdbc:postgresql://%s:%d/%s", 5432);
 
     private final String type;
     private final String driverPath;
--- a/src/main/java/net/sf/jabref/shared/PostgreSQLProcessor.java
+++ b/src/main/java/net/sf/jabref/shared/PostgreSQLProcessor.java
@@ -4,26 +4,14 @@
 import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.sql.Statement;
-import java.util.logging.Level;
-import java.util.logging.Logger;
 
 import net.sf.jabref.model.entry.BibEntry;
-import net.sf.jabref.shared.listener.PostgresSQLNotificationListener;
-
-import com.impossibl.postgres.api.jdbc.PGConnection;
-import com.impossibl.postgres.jdbc.PGDataSource;
-import com.impossibl.postgres.jdbc.ThreadedHousekeeper;
 
 /**
  * Processes all incoming or outgoing bib data to PostgreSQL database and manages its structure.
  */
 public class PostgreSQLProcessor extends DBMSProcessor {
 
-    private PGConnection pgConnection;
-
-    private PostgresSQLNotificationListener listener;
-
-
     public PostgreSQLProcessor(DBMSConnection connection) {
         super(connection);
     }
@@ -85,47 +73,4 @@
         return "\"" + expression + "\"";
     }
 
-
-    @Override
-    public void startNotificationListener(DBMSSynchronizer dbmsSynchronizer) {
-        // Disable cleanup output of ThreadedHousekeeper
-        Logger.getLogger(ThreadedHousekeeper.class.getName()).setLevel(Level.SEVERE);
-
-        this.listener = new PostgresSQLNotificationListener(dbmsSynchronizer);
-
-        PGDataSource dataSource = new PGDataSource();
-        dataSource.setHost(connectionProperties.getHost());
-        dataSource.setPort(connectionProperties.getPort());
-        dataSource.setDatabase(connectionProperties.getDatabase());
-        dataSource.setUser(connectionProperties.getUser());
-        dataSource.setPassword(connectionProperties.getPassword());
-
-        try {
-            pgConnection = (PGConnection) dataSource.getConnection();
-            pgConnection.createStatement().execute("LISTEN jabrefLiveUpdate");
-            // Do not use `new PostgresSQLNotificationListener(...)` as the object has to exist continuously!
-            // Otherwise the listener is going to be deleted by GC.
-            pgConnection.addNotificationListener(listener);
-        } catch (SQLException e) {
-            LOGGER.error("SQL Error: ", e);
-        }
-    }
-
-    @Override
-    public void stopNotificationListener() {
-        try {
-            pgConnection.close();
-        } catch (SQLException e) {
-            LOGGER.error("SQL Error: ", e);
-        }
-    }
-
-    @Override
-    public void notifyClients() {
-        try {
-            pgConnection.createStatement().execute("NOTIFY jabrefLiveUpdate, '" + PROCESSOR_ID + "';");
-        } catch (SQLException e) {
-            LOGGER.error("SQL Error: ", e);
-        }
-    }
 }
--- a/src/main/java/net/sf/jabref/shared/listener/PostgresSQLNotificationListener.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package net.sf.jabref.shared.listener;
-
-import net.sf.jabref.shared.DBMSProcessor;
-import net.sf.jabref.shared.DBMSSynchronizer;
-
-import com.impossibl.postgres.api.jdbc.PGNotificationListener;
-
-/**
- * A listener for PostgreSQL database notifications.
- */
-public class PostgresSQLNotificationListener implements PGNotificationListener {
-
-    private final DBMSSynchronizer dbmsSynchronizer;
-
-
-    public PostgresSQLNotificationListener(DBMSSynchronizer dbmsSynchronizer) {
-        this.dbmsSynchronizer = dbmsSynchronizer;
-    }
-
-    @Override
-    public void notification(int processId, String channel, String payload) {
-        if (!payload.equals(DBMSProcessor.PROCESSOR_ID)) {
-            dbmsSynchronizer.pullChanges();
-        }
-    }
-
-}
--- a/src/main/resources/l10n/JabRef_da.properties
+++ b/src/main/resources/l10n/JabRef_da.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Indstillinger_gemt.
 
 Preview=Forhåndsvisning
-Citation_Style=
 Current_Preview=
-Cannot_generate_preview_based_on_selected_citation_style.=
-Bad_character_inside_entry=
-Error_while_generating_citation_style=
 Preview_style_changed_to\:_%0=
 Next_preview_layout=
 Previous_preview_layout=
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=
 Jump_to_entry=
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/JabRef_de.properties
+++ b/src/main/resources/l10n/JabRef_de.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Einstellungen_gespeichert.
 
 Preview=Vorschau
-Citation_Style=Zitierstil
 Current_Preview=Aktuelle_Vorschau
-Cannot_generate_preview_based_on_selected_citation_style.=Vorschau_für_gewählten_Zitierstil_kann_nicht_generiert_werden.
-Bad_character_inside_entry=Eintrag_enthält_fehlerhaftes_Zeichen
-Error_while_generating_citation_style=Fehler_beim_Generieren_des_Zitierstils
 Preview_style_changed_to\:_%0=Vorschaustil_geändert_zu:_%0
 Next_preview_layout=Nächster_Vorschaustil
 Previous_preview_layout=Voriger_Vorschaustil
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=Eintragstyp_%0_ist_nur_für_Biblatex,_nicht_aber_für_BibTeX_definiert
 Jump_to_entry=Springe_zu_Eintrag
-
-Copied_%0_citations.=Es_wurden_%0_Zitierungen_kopiert.
-Copying...=Kopiere...
--- a/src/main/resources/l10n/JabRef_en.properties
+++ b/src/main/resources/l10n/JabRef_en.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Preferences_recorded.
 
 Preview=Preview
-Citation_Style=Citation_Style
 Current_Preview=Current_Preview
-Cannot_generate_preview_based_on_selected_citation_style.=Cannot_generate_preview_based_on_selected_citation_style.
-Bad_character_inside_entry=Bad_character_inside_entry
-Error_while_generating_citation_style=Error_while_generating_citation_style
 Preview_style_changed_to\:_%0=Preview_style_changed_to\:_%0
 Next_preview_layout=Next_preview_layout
 Previous_preview_layout=Previous_preview_layout
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX
 Jump_to_entry=Jump_to_entry
-
-Copied_%0_citations.=Copied_%0_citations.
-Copying...=Copying...
--- a/src/main/resources/l10n/JabRef_es.properties
+++ b/src/main/resources/l10n/JabRef_es.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Preferencias_guardadas.
 
 Preview=Vista_previa
-Citation_Style=
 Current_Preview=
-Cannot_generate_preview_based_on_selected_citation_style.=
-Bad_character_inside_entry=
-Error_while_generating_citation_style=
 Preview_style_changed_to\:_%0=
 Next_preview_layout=
 Previous_preview_layout=
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=
 Jump_to_entry=
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/JabRef_fa.properties
+++ b/src/main/resources/l10n/JabRef_fa.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=
 
 Preview=
-Citation_Style=
 Current_Preview=
-Cannot_generate_preview_based_on_selected_citation_style.=
-Bad_character_inside_entry=
-Error_while_generating_citation_style=
 Preview_style_changed_to\:_%0=
 Next_preview_layout=
 Previous_preview_layout=
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=
 Jump_to_entry=
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/JabRef_fr.properties
+++ b/src/main/resources/l10n/JabRef_fr.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Préférences_enregistrées.
 
 Preview=Aperçu
-Citation_Style=Style_de_citation
 Current_Preview=Aperçu_actuel
-Cannot_generate_preview_based_on_selected_citation_style.=La_prévisualisation_ne_peut_pas_être_générée_à_partir_du_style_de_citation_sélectionné.
-Bad_character_inside_entry=Caractère_érroné_dans_l'entrée
-Error_while_generating_citation_style=Erreur_lors_de_la_génération_du_style_de_citation
 Preview_style_changed_to\:_%0=Style_d'aperçu_modifié_en_:_%0
 Next_preview_layout=Mode_d'aperçu_suivant
 Previous_preview_layout=Mode_d'aperçu_précédent
--- a/src/main/resources/l10n/JabRef_in.properties
+++ b/src/main/resources/l10n/JabRef_in.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Preferensi_disimpan.
 
 Preview=Pratampilan
-Citation_Style=
 Current_Preview=
-Cannot_generate_preview_based_on_selected_citation_style.=
-Bad_character_inside_entry=
-Error_while_generating_citation_style=
 Preview_style_changed_to\:_%0=
 Next_preview_layout=
 Previous_preview_layout=
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=
 Jump_to_entry=
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/JabRef_it.properties
+++ b/src/main/resources/l10n/JabRef_it.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Preferenze_registrate.
 
 Preview=Anteprima
-Citation_Style=Stile_delle_citazioni
 Current_Preview=Anteprima_di_stampa_corrente
-Cannot_generate_preview_based_on_selected_citation_style.=Non_posso_generare_un'anteprima_usando_lo_stile_delle_citazioni_scelto.
-Bad_character_inside_entry=Carattere_errato_nella_voce
-Error_while_generating_citation_style=Errore_durante_la_generazione_dello_stile_di_citazione
 Preview_style_changed_to\:_%0=Stile_di_anteprima_modificato_in\:_%0
 Next_preview_layout=Prossimo_layout_di_anteprima
 Previous_preview_layout=Successivo_layout_di_anteprima
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=Il_tipo_di_voce_%0_è_definita_per_Biblatex_ma_non_per_BibTeX
 Jump_to_entry=Salta_alla_voce
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/JabRef_ja.properties
+++ b/src/main/resources/l10n/JabRef_ja.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=設定が記録されました。
 
 Preview=プレビュー
-Citation_Style=引用様式
 Current_Preview=現在のプレビュー
-Cannot_generate_preview_based_on_selected_citation_style.=選択された引用様式に沿ってプレビューを生成することができませんでした。
-Bad_character_inside_entry=項目中に不適切な文字
-Error_while_generating_citation_style=引用様式を生成中にエラー発生
 Preview_style_changed_to\:_%0=プレビュー様式が_%0_に変更されました
 Next_preview_layout=次のプレビュー様式
 Previous_preview_layout=前のプレビュー様式
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=
 Jump_to_entry=項目へジャンプ
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/JabRef_nl.properties
+++ b/src/main/resources/l10n/JabRef_nl.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Instellingen_opgeslagen.
 
 Preview=Voorbeeld
-Citation_Style=
 Current_Preview=
-Cannot_generate_preview_based_on_selected_citation_style.=
-Bad_character_inside_entry=
-Error_while_generating_citation_style=
 Preview_style_changed_to\:_%0=
 Next_preview_layout=
 Previous_preview_layout=
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=
 Jump_to_entry=
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/JabRef_no.properties
+++ b/src/main/resources/l10n/JabRef_no.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Lagret_oppsett.
 
 Preview=Forh\u00e5ndsvisning
-Citation_Style=
 Current_Preview=
-Cannot_generate_preview_based_on_selected_citation_style.=
-Bad_character_inside_entry=
-Error_while_generating_citation_style=
 Preview_style_changed_to\:_%0=
 Next_preview_layout=
 Previous_preview_layout=
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=
 Jump_to_entry=
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/JabRef_pt_BR.properties
+++ b/src/main/resources/l10n/JabRef_pt_BR.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Preferências_salvas.
 
 Preview=Previsualização
-Citation_Style=
 Current_Preview=
-Cannot_generate_preview_based_on_selected_citation_style.=
-Bad_character_inside_entry=
-Error_while_generating_citation_style=
 Preview_style_changed_to\:_%0=
 Next_preview_layout=
 Previous_preview_layout=
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=
 Jump_to_entry=
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/JabRef_ru.properties
+++ b/src/main/resources/l10n/JabRef_ru.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Пользовательские_настройки_записаны.
 
 Preview=Предварительный_просмотр
-Citation_Style=
 Current_Preview=
-Cannot_generate_preview_based_on_selected_citation_style.=
-Bad_character_inside_entry=
-Error_while_generating_citation_style=
 Preview_style_changed_to\:_%0=
 Next_preview_layout=
 Previous_preview_layout=
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=
 Jump_to_entry=
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/JabRef_sv.properties
+++ b/src/main/resources/l10n/JabRef_sv.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Inställningar_sparade.
 
 Preview=Postvisning
-Citation_Style=
 Current_Preview=
-Cannot_generate_preview_based_on_selected_citation_style.=
-Bad_character_inside_entry=
-Error_while_generating_citation_style=
 Preview_style_changed_to\:_%0=
 Next_preview_layout=
 Previous_preview_layout=
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=
 Jump_to_entry=
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/JabRef_tr.properties
+++ b/src/main/resources/l10n/JabRef_tr.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Tercihler_kaydedildi.
 
 Preview=Önizleme
-Citation_Style=
 Current_Preview=
-Cannot_generate_preview_based_on_selected_citation_style.=
-Bad_character_inside_entry=
-Error_while_generating_citation_style=
 Preview_style_changed_to\:_%0=
 Next_preview_layout=
 Previous_preview_layout=
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=
 Jump_to_entry=
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/JabRef_vi.properties
+++ b/src/main/resources/l10n/JabRef_vi.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=Các_tùy_thích_được_ghi_lại.
 
 Preview=Xem_trước
-Citation_Style=Kiểu_trích_dẫn
 Current_Preview=Xem_trước_hiện_tại
-Cannot_generate_preview_based_on_selected_citation_style.=Không_thể_tạo_ra_xem_trước_dựa_trên_kiểu_trích_dẫn_đã_chọn.
-Bad_character_inside_entry=Kí_tự_xấu_trong_mục
-Error_while_generating_citation_style=Lỗi_trong_khi_tạo_ra_kiểu_trích_dẫn
 Preview_style_changed_to\:_%0=Thay_đổi_kiểu_xem_trước_theo\:_%0
 Next_preview_layout=Xem_trước_bố_trí_tiếp_theo
 Previous_preview_layout=Xem_trước_bố_trí_trước_đó
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=
 Jump_to_entry=
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/JabRef_zh.properties
+++ b/src/main/resources/l10n/JabRef_zh.properties
@@ -975,11 +975,7 @@
 Preferences_recorded.=首选项被记录。
 
 Preview=预览
-Citation_Style=引用样式
 Current_Preview=当前预览
-Cannot_generate_preview_based_on_selected_citation_style.=无法为选中的引用样式生成预览.
-Bad_character_inside_entry=记录是包含非法字符
-Error_while_generating_citation_style=生成引用样式时出错
 Preview_style_changed_to\:_%0=预览样式更改为\:_%0
 Next_preview_layout=下一条预览布局
 Previous_preview_layout=上一条预览布局
@@ -2323,6 +2319,3 @@
 
 Entry_type_%0_is_only_defined_for_Biblatex_but_not_for_BibTeX=
 Jump_to_entry=
-
-Copied_%0_citations.=
-Copying...=
--- a/src/main/resources/l10n/Menu_da.properties
+++ b/src/main/resources/l10n/Menu_da.properties
@@ -135,5 +135,3 @@
 View_change_log=
 Copy_BibTeX_key_and_link=
 Copy_DOI_url=
-
-Copy_citation=
--- a/src/main/resources/l10n/Menu_de.properties
+++ b/src/main/resources/l10n/Menu_de.properties
@@ -135,5 +135,3 @@
 View_change_log=Changelog_öffnen
 Copy_BibTeX_key_and_link=BibTeX-Key_und_Link_kopieren
 Copy_DOI_url=DOI-URL_kopieren
-
-Copy_citation=Kopiere_Zitation
--- a/src/main/resources/l10n/Menu_en.properties
+++ b/src/main/resources/l10n/Menu_en.properties
@@ -135,5 +135,3 @@
 View_change_log=View_change_log
 Copy_BibTeX_key_and_link=Copy_BibTeX_key_and_link
 Copy_DOI_url=Copy_DOI_url
-
-Copy_citation=Copy_citation
--- a/src/main/resources/l10n/Menu_es.properties
+++ b/src/main/resources/l10n/Menu_es.properties
@@ -135,5 +135,3 @@
 View_change_log=Ver_registro_de_cambios
 Copy_BibTeX_key_and_link=Copiar_clave_BibTeX_y_enlace
 Copy_DOI_url=Copiar_la_url_del_DOI
-
-Copy_citation=
--- a/src/main/resources/l10n/Menu_fa.properties
+++ b/src/main/resources/l10n/Menu_fa.properties
@@ -135,5 +135,3 @@
 View_change_log=
 Copy_BibTeX_key_and_link=
 Copy_DOI_url=
-
-Copy_citation=
--- a/src/main/resources/l10n/Menu_in.properties
+++ b/src/main/resources/l10n/Menu_in.properties
@@ -135,5 +135,3 @@
 View_change_log=
 Copy_BibTeX_key_and_link=
 Copy_DOI_url=
-
-Copy_citation=
--- a/src/main/resources/l10n/Menu_it.properties
+++ b/src/main/resources/l10n/Menu_it.properties
@@ -135,5 +135,3 @@
 View_change_log=Visualizza_la_lista_delle_modifiche
 Copy_BibTeX_key_and_link=Copia_la_chiave_e_il_link_BibTeX
 Copy_DOI_url=Copia_l'url_del_DOI
-
-Copy_citation=
--- a/src/main/resources/l10n/Menu_ja.properties
+++ b/src/main/resources/l10n/Menu_ja.properties
@@ -135,5 +135,3 @@
 View_change_log=変更履歴を閲覧
 Copy_BibTeX_key_and_link=BibTeX鍵とリンクをコピー
 Copy_DOI_url=DOIのURLをコピー
-
-Copy_citation=
--- a/src/main/resources/l10n/Menu_nl.properties
+++ b/src/main/resources/l10n/Menu_nl.properties
@@ -135,5 +135,3 @@
 View_change_log=
 Copy_BibTeX_key_and_link=
 Copy_DOI_url=
-
-Copy_citation=
--- a/src/main/resources/l10n/Menu_no.properties
+++ b/src/main/resources/l10n/Menu_no.properties
@@ -135,5 +135,3 @@
 View_change_log=Vis_endringslogg
 Copy_BibTeX_key_and_link=
 Copy_DOI_url=
-
-Copy_citation=
--- a/src/main/resources/l10n/Menu_pt_BR.properties
+++ b/src/main/resources/l10n/Menu_pt_BR.properties
@@ -135,5 +135,3 @@
 View_change_log=
 Copy_BibTeX_key_and_link=
 Copy_DOI_url=
-
-Copy_citation=
--- a/src/main/resources/l10n/Menu_ru.properties
+++ b/src/main/resources/l10n/Menu_ru.properties
@@ -135,5 +135,3 @@
 View_change_log=Просмотр_журнала_изменений
 Copy_BibTeX_key_and_link=
 Copy_DOI_url=
-
-Copy_citation=
--- a/src/main/resources/l10n/Menu_sv.properties
+++ b/src/main/resources/l10n/Menu_sv.properties
@@ -135,5 +135,3 @@
 View_change_log=Visa_ändringar
 Copy_BibTeX_key_and_link=
 Copy_DOI_url=
-
-Copy_citation=
--- a/src/main/resources/l10n/Menu_tr.properties
+++ b/src/main/resources/l10n/Menu_tr.properties
@@ -135,5 +135,3 @@
 View_change_log=Değişiklik_kütüğünü_göster
 Copy_BibTeX_key_and_link=BibTeX_anahtarı_ve_bağlantısını_kopyala
 Copy_DOI_url=DOI_url'sini_kopyala
-
-Copy_citation=
--- a/src/main/resources/l10n/Menu_vi.properties
+++ b/src/main/resources/l10n/Menu_vi.properties
@@ -135,5 +135,3 @@
 View_change_log=Xem_nhật_kí_thay_đổi
 Copy_BibTeX_key_and_link=Sao_chép_khóa_BibTex_và_đường_liên_kết
 Copy_DOI_url=Sao_chép_DOI_url
-
-Copy_citation=
--- a/src/main/resources/l10n/Menu_zh.properties
+++ b/src/main/resources/l10n/Menu_zh.properties
@@ -135,5 +135,3 @@
 View_change_log=查看变更记录
 Copy_BibTeX_key_and_link=拷贝_BibTeX_key_和链接
 Copy_DOI_url=拷贝_DOI_URL
-
-Copy_citation=
--- a/src/test/java/net/sf/jabref/gui/worker/CitationStyleToClipboardWorkerTest.java
+++ /dev/null
@@ -1,233 +0,0 @@
-package net.sf.jabref.gui.worker;
-
-import java.awt.datatransfer.DataFlavor;
-import java.awt.datatransfer.StringSelection;
-import java.util.Arrays;
-
-import net.sf.jabref.gui.exporter.RtfTransferable;
-import net.sf.jabref.gui.fieldeditors.HtmlTransferable;
-import net.sf.jabref.gui.fieldeditors.XmlTransferable;
-import net.sf.jabref.logic.util.OS;
-
-import org.junit.Assert;
-import org.junit.Test;
-
-
-public class CitationStyleToClipboardWorkerTest {
-
-    @Test
-    public void processPreviewText() throws Exception {
-        String expected = "Article (Smith2016)Smith, B.; Jones, B. & Williams, J.Taylor, P. (Ed.)Title of the test entry BibTeX Journal, JabRef Publishing, 2016, 34, 45-67 Abstract: This entry describes a test scenario which may be useful in JabRef. By providing a test entry it is possible to see how certain things will look in this graphical BIB-file mananger." + OS.NEWLINE +
-                "Article (Smith2016)Smith, B.; Jones, B. & Williams, J.Taylor, P. (Ed.)Title of the test entry BibTeX Journal, JabRef Publishing, 2016, 34, 45-67 Abstract: This entry describes a test scenario which may be useful in JabRef. By providing a test entry it is possible to see how certain things will look in this graphical BIB-file mananger.";
-
-        String citation = "Article (Smith2016)" + OS.NEWLINE +
-                "Smith, B.; Jones, B. &amp; Williams, J." + OS.NEWLINE +
-                "Taylor, P. (Ed.)" + OS.NEWLINE +
-                "Title of the test entry " + OS.NEWLINE +
-                "BibTeX Journal, JabRef Publishing, 2016, 34, 45-67 " + OS.NEWLINE +
-                OS.NEWLINE +
-                "Abstract:  This entry describes a test scenario which may be useful in JabRef. By providing a test entry it is possible to see how certain things will look in this graphical BIB-file mananger. ";
-
-        HtmlTransferable HtmlTransferable = CitationStyleToClipboardWorker.processPreview(Arrays.asList(citation, citation));
-
-        Object actual = HtmlTransferable.getTransferData(DataFlavor.stringFlavor);
-        Assert.assertEquals(expected, actual);
-    }
-
-    @Test
-    public void processPreviewHtml() throws Exception {
-        String expected = "<font face=\"sans-serif\"><b><i>Article</i><a name=\"Smith2016\"> (Smith2016)</a></b><br>" + OS.NEWLINE +
-                " Smith, B.; Jones, B. &amp; Williams, J.<BR>" + OS.NEWLINE +
-                " Taylor, P. <i>(Ed.)</i><BR>" + OS.NEWLINE +
-                " Title of the test entry <BR>" + OS.NEWLINE +
-                OS.NEWLINE +
-                " <em>BibTeX Journal, </em>" + OS.NEWLINE +
-                OS.NEWLINE +
-                OS.NEWLINE +
-                OS.NEWLINE +
-                " <em>JabRef Publishing, </em>" + OS.NEWLINE +
-                "<b>2016</b><i>, 34</i>, 45-67 " + OS.NEWLINE +
-                "<BR><BR><b>Abstract: </b> This entry describes a test scenario which may be useful in JabRef. By providing a test entry it is possible to see how certain things will look in this graphical BIB-file mananger. " + OS.NEWLINE +
-                "</dd>" + OS.NEWLINE +
-                "<p></p></font>" + OS.NEWLINE +
-                "<br>" + OS.NEWLINE +
-                "<font face=\"sans-serif\"><b><i>Article</i><a name=\"Smith2016\"> (Smith2016)</a></b><br>" + OS.NEWLINE +
-                " Smith, B.; Jones, B. &amp; Williams, J.<BR>" + OS.NEWLINE +
-                " Taylor, P. <i>(Ed.)</i><BR>" + OS.NEWLINE +
-                " Title of the test entry <BR>" + OS.NEWLINE +
-                OS.NEWLINE +
-                " <em>BibTeX Journal, </em>" + OS.NEWLINE +
-                OS.NEWLINE +
-                OS.NEWLINE +
-                OS.NEWLINE +
-                " <em>JabRef Publishing, </em>" + OS.NEWLINE +
-                "<b>2016</b><i>, 34</i>, 45-67 " + OS.NEWLINE +
-                "<BR><BR><b>Abstract: </b> This entry describes a test scenario which may be useful in JabRef. By providing a test entry it is possible to see how certain things will look in this graphical BIB-file mananger. " + OS.NEWLINE +
-                "</dd>" + OS.NEWLINE +
-                "<p></p></font>";
-
-        String citation = "<font face=\"sans-serif\"><b><i>Article</i><a name=\"Smith2016\"> (Smith2016)</a></b><br>" + OS.NEWLINE +
-                " Smith, B.; Jones, B. &amp; Williams, J.<BR>" + OS.NEWLINE +
-                " Taylor, P. <i>(Ed.)</i><BR>" + OS.NEWLINE +
-                " Title of the test entry <BR>" + OS.NEWLINE +
-                OS.NEWLINE +
-                " <em>BibTeX Journal, </em>" + OS.NEWLINE +
-                OS.NEWLINE +
-                OS.NEWLINE +
-                OS.NEWLINE +
-                " <em>JabRef Publishing, </em>" + OS.NEWLINE +
-                "<b>2016</b><i>, 34</i>, 45-67 " + OS.NEWLINE +
-                "<BR><BR><b>Abstract: </b> This entry describes a test scenario which may be useful in JabRef. By providing a test entry it is possible to see how certain things will look in this graphical BIB-file mananger. " + OS.NEWLINE +
-                "</dd>" + OS.NEWLINE +
-                "<p></p></font>";
-
-        HtmlTransferable transferable = CitationStyleToClipboardWorker.processPreview(Arrays.asList(citation, citation));
-
-        Object actual = transferable.getTransferData(HtmlTransferable.HTML_FLAVOR);
-        Assert.assertEquals(expected, actual);
-    }
-
-    @Test
-    public void processText() throws Exception {
-        String expected = "[1]B. Smith, B. Jones, and J. Williams, “Title of the test entry,” BibTeX Journal, vol. 34, no. 3, pp. 45–67, Jul. 2016." + OS.NEWLINE +
-                "[1]B. Smith, B. Jones, and J. Williams, “Title of the test entry,” BibTeX Journal, vol. 34, no. 3, pp. 45–67, Jul. 2016." + OS.NEWLINE;
-
-        String citation = "[1]B. Smith, B. Jones, and J. Williams, “Title of the test entry,” BibTeX Journal, vol. 34, no. 3, pp. 45–67, Jul. 2016." + OS.NEWLINE;
-        StringSelection textTransferable = CitationStyleToClipboardWorker.processText(Arrays.asList(citation, citation));
-
-        Object actual = textTransferable.getTransferData(DataFlavor.stringFlavor);
-        Assert.assertEquals(expected, actual);
-    }
-
-    @Test
-    public void processRtf() throws Exception {
-        String expected = "{\\rtf" + OS.NEWLINE +
-                "[1]\\tab B. Smith, B. Jones, and J. Williams, \\uc0\\u8220{}Title of the test entry,\\uc0\\u8221{} {\\i{}BibTeX Journal}, vol. 34, no. 3, pp. 45\\uc0\\u8211{}67, Jul. 2016." + OS.NEWLINE +
-                "\\line" + OS.NEWLINE +
-                "[1]\\tab B. Smith, B. Jones, and J. Williams, \\uc0\\u8220{}Title of the test entry,\\uc0\\u8221{} {\\i{}BibTeX Journal}, vol. 34, no. 3, pp. 45\\uc0\\u8211{}67, Jul. 2016." + OS.NEWLINE +
-                "}";
-
-        String citation = "[1]\\tab B. Smith, B. Jones, and J. Williams, \\uc0\\u8220{}Title of the test entry,\\uc0\\u8221{} {\\i{}BibTeX Journal}, vol. 34, no. 3, pp. 45\\uc0\\u8211{}67, Jul. 2016." + OS.NEWLINE;
-        RtfTransferable rtfTransferable = CitationStyleToClipboardWorker.processRtf(Arrays.asList(citation, citation));
-
-        Object actual = rtfTransferable.getTransferData(DataFlavor.stringFlavor);
-        Assert.assertEquals(expected, actual);
-    }
-
-    @Test
-    public void processXslFo() throws Exception {
-        String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + OS.NEWLINE +
-                "<fo:root xmlns:fo=\"http://www.w3.org/1999/XSL/Format\">" + OS.NEWLINE +
-                "   <fo:layout-master-set>" + OS.NEWLINE +
-                "      <fo:simple-page-master master-name=\"citations\">" + OS.NEWLINE +
-                "         <fo:region-body/>" + OS.NEWLINE +
-                "      </fo:simple-page-master>" + OS.NEWLINE +
-                "   </fo:layout-master-set>" + OS.NEWLINE +
-                "   <fo:page-sequence master-reference=\"citations\">" + OS.NEWLINE +
-                "      <fo:flow flow-name=\"xsl-region-body\">" + OS.NEWLINE +
-                OS.NEWLINE +
-                "<fo:block id=\"Smith2016\">" + OS.NEWLINE +
-                "  <fo:table table-layout=\"fixed\" width=\"100%\">" + OS.NEWLINE +
-                "    <fo:table-column column-number=\"1\" column-width=\"2.5em\"/>" + OS.NEWLINE +
-                "    <fo:table-column column-number=\"2\" column-width=\"proportional-column-width(1)\"/>" + OS.NEWLINE +
-                "    <fo:table-body>" + OS.NEWLINE +
-                "      <fo:table-row>" + OS.NEWLINE +
-                "        <fo:table-cell>" + OS.NEWLINE +
-                "          <fo:block>[1]</fo:block>" + OS.NEWLINE +
-                "        </fo:table-cell>" + OS.NEWLINE +
-                "        <fo:table-cell>" + OS.NEWLINE +
-                "          <fo:block>B. Smith, B. Jones, and J. Williams, “Title of the test entry,” <fo:inline font-style=\"italic\">BibTeX Journal</fo:inline>, vol. 34, no. 3, pp. 45–67, Jul. 2016.</fo:block>" + OS.NEWLINE +
-                "        </fo:table-cell>" + OS.NEWLINE +
-                "      </fo:table-row>" + OS.NEWLINE +
-                "    </fo:table-body>" + OS.NEWLINE +
-                "  </fo:table>" + OS.NEWLINE +
-                "</fo:block>" + OS.NEWLINE +
-                OS.NEWLINE +
-                "<fo:block id=\"Smith2016\">" + OS.NEWLINE +
-                "  <fo:table table-layout=\"fixed\" width=\"100%\">" + OS.NEWLINE +
-                "    <fo:table-column column-number=\"1\" column-width=\"2.5em\"/>" + OS.NEWLINE +
-                "    <fo:table-column column-number=\"2\" column-width=\"proportional-column-width(1)\"/>" + OS.NEWLINE +
-                "    <fo:table-body>" + OS.NEWLINE +
-                "      <fo:table-row>" + OS.NEWLINE +
-                "        <fo:table-cell>" + OS.NEWLINE +
-                "          <fo:block>[1]</fo:block>" + OS.NEWLINE +
-                "        </fo:table-cell>" + OS.NEWLINE +
-                "        <fo:table-cell>" + OS.NEWLINE +
-                "          <fo:block>B. Smith, B. Jones, and J. Williams, “Title of the test entry,” <fo:inline font-style=\"italic\">BibTeX Journal</fo:inline>, vol. 34, no. 3, pp. 45–67, Jul. 2016.</fo:block>" + OS.NEWLINE +
-                "        </fo:table-cell>" + OS.NEWLINE +
-                "      </fo:table-row>" + OS.NEWLINE +
-                "    </fo:table-body>" + OS.NEWLINE +
-                "  </fo:table>" + OS.NEWLINE +
-                "</fo:block>" + OS.NEWLINE +
-                OS.NEWLINE +
-                "      </fo:flow>" + OS.NEWLINE +
-                "   </fo:page-sequence>" + OS.NEWLINE +
-                "</fo:root>" + OS.NEWLINE;
-
-        String citation = "<fo:block id=\"Smith2016\">" + OS.NEWLINE +
-                "  <fo:table table-layout=\"fixed\" width=\"100%\">" + OS.NEWLINE +
-                "    <fo:table-column column-number=\"1\" column-width=\"2.5em\"/>" + OS.NEWLINE +
-                "    <fo:table-column column-number=\"2\" column-width=\"proportional-column-width(1)\"/>" + OS.NEWLINE +
-                "    <fo:table-body>" + OS.NEWLINE +
-                "      <fo:table-row>" + OS.NEWLINE +
-                "        <fo:table-cell>" + OS.NEWLINE +
-                "          <fo:block>[1]</fo:block>" + OS.NEWLINE +
-                "        </fo:table-cell>" + OS.NEWLINE +
-                "        <fo:table-cell>" + OS.NEWLINE +
-                "          <fo:block>B. Smith, B. Jones, and J. Williams, “Title of the test entry,” <fo:inline font-style=\"italic\">BibTeX Journal</fo:inline>, vol. 34, no. 3, pp. 45–67, Jul. 2016.</fo:block>" + OS.NEWLINE +
-                "        </fo:table-cell>" + OS.NEWLINE +
-                "      </fo:table-row>" + OS.NEWLINE +
-                "    </fo:table-body>" + OS.NEWLINE +
-                "  </fo:table>" + OS.NEWLINE +
-                "</fo:block>" + OS.NEWLINE;
-
-        XmlTransferable xmlTransferable = CitationStyleToClipboardWorker.processXslFo(Arrays.asList(citation, citation));
-
-        Object actual = xmlTransferable.getTransferData(DataFlavor.stringFlavor);
-        Assert.assertEquals(expected, actual);
-    }
-
-    @Test
-    public void processHtmlAsHtml() throws Exception {
-        String expected = "<!DOCTYPE html>" + OS.NEWLINE +
-                "<html>" + OS.NEWLINE +
-                "   <head>" + OS.NEWLINE +
-                "      <meta charset=\"utf-8\">" + OS.NEWLINE +
-                "   </head>" + OS.NEWLINE +
-                "   <body>" + OS.NEWLINE +
-                OS.NEWLINE +
-                "  <div class=\"csl-entry\">" + OS.NEWLINE +
-                "    <div class=\"csl-left-margin\">[1]</div><div class=\"csl-right-inline\">B. Smith, B. Jones, and J. Williams, “Title of the test entry,” <i>BibTeX Journal</i>, vol. 34, no. 3, pp. 45–67, Jul. 2016.</div>" + OS.NEWLINE +
-                "  </div>" + OS.NEWLINE +
-                OS.NEWLINE +
-                "<br>" + OS.NEWLINE +
-                "  <div class=\"csl-entry\">" + OS.NEWLINE +
-                "    <div class=\"csl-left-margin\">[1]</div><div class=\"csl-right-inline\">B. Smith, B. Jones, and J. Williams, “Title of the test entry,” <i>BibTeX Journal</i>, vol. 34, no. 3, pp. 45–67, Jul. 2016.</div>" + OS.NEWLINE +
-                "  </div>" + OS.NEWLINE +
-                OS.NEWLINE +
-                "   </body>" + OS.NEWLINE +
-                "</html>" + OS.NEWLINE;
-
-        String citation = "  <div class=\"csl-entry\">" + OS.NEWLINE +
-                "    <div class=\"csl-left-margin\">[1]</div><div class=\"csl-right-inline\">B. Smith, B. Jones, and J. Williams, “Title of the test entry,” <i>BibTeX Journal</i>, vol. 34, no. 3, pp. 45–67, Jul. 2016.</div>" + OS.NEWLINE +
-                "  </div>" + OS.NEWLINE;
-        HtmlTransferable htmlTransferable = CitationStyleToClipboardWorker.processHtml(Arrays.asList(citation, citation));
-
-        Object actual = htmlTransferable.getTransferData(DataFlavor.allHtmlFlavor);
-        Assert.assertEquals(expected, actual);
-    }
-
-    @Test
-    public void processHtmlAsText() throws Exception {
-        String expected = "[1] B. Smith, B. Jones, and J. Williams, “Title of the test entry,” BibTeX Journal , vol. 34, no. 3, pp. 45–67, Jul. 2016." + OS.NEWLINE +
-                "[1] B. Smith, B. Jones, and J. Williams, “Title of the test entry,” BibTeX Journal , vol. 34, no. 3, pp. 45–67, Jul. 2016.";
-
-        String citation = "  <div class=\"csl-entry\">" + OS.NEWLINE +
-                "    <div class=\"csl-left-margin\">[1]</div><div class=\"csl-right-inline\">B. Smith, B. Jones, and J. Williams, “Title of the test entry,” <i>BibTeX Journal</i>, vol. 34, no. 3, pp. 45–67, Jul. 2016.</div>" + OS.NEWLINE +
-                "  </div>" + OS.NEWLINE;
-        HtmlTransferable htmlTransferable = CitationStyleToClipboardWorker.processHtml(Arrays.asList(citation, citation));
-
-        Object actual = htmlTransferable.getTransferData(DataFlavor.stringFlavor);
-        Assert.assertEquals(expected, actual);
-    }
-}
--- a/src/test/java/net/sf/jabref/logic/citationstyle/CitationStyleGeneratorTest.java
+++ /dev/null
@@ -1,119 +0,0 @@
-package net.sf.jabref.logic.citationstyle;
-
-import net.sf.jabref.logic.l10n.Localization;
-import net.sf.jabref.logic.util.TestEntry;
-import net.sf.jabref.model.entry.BibEntry;
-import net.sf.jabref.model.entry.FieldName;
-
-import org.junit.Test;
-
-import static org.junit.Assert.assertEquals;
-
-public class CitationStyleGeneratorTest {
-
-    @Test
-    public void testIgnoreNewLine() {
-        BibEntry entry = new BibEntry();
-        entry.setField(FieldName.AUTHOR, "Last, First and\nDoe, Jane");
-
-        // if the default citation style changes this has to be modified
-        String expected = "  <div class=\"csl-entry\">\n" +
-                "    <div class=\"csl-left-margin\">[1]</div><div class=\"csl-right-inline\">F. Last and J. Doe, .</div>\n" +
-                "  </div>\n";
-        String citation = CitationStyleGenerator.generateCitation(entry, CitationStyle.getDefault());
-        assertEquals(expected, citation);
-    }
-
-    @Test
-    public void testIgnoreCarriageReturnNewLine() {
-        BibEntry entry = new BibEntry();
-        entry.setField(FieldName.AUTHOR, "Last, First and\r\nDoe, Jane");
-
-        // if the default citation style changes this has to be modified
-        String expected = "  <div class=\"csl-entry\">\n" +
-                "    <div class=\"csl-left-margin\">[1]</div><div class=\"csl-right-inline\">F. Last and J. Doe, .</div>\n" +
-                "  </div>\n";
-        String citation = CitationStyleGenerator.generateCitation(entry, CitationStyle.getDefault());
-        assertEquals(expected, citation);
-    }
-
-    @Test
-    public void testMissingCitationStyle() {
-        String expected = Localization.lang("Cannot generate preview based on selected citation style.");
-        String citation = CitationStyleGenerator.generateCitation(new BibEntry(), "faulty citation style");
-        assertEquals(expected, citation);
-    }
-
-    @Test
-    public void testAsciiDocFormat() {
-        String expectedCitation = "[1] B. Smith, B. Jones, and J. Williams, ``Title of the test entry,'' __BibTeX Journal__, vol. 34, no. 3, pp. 45–67, Jul. 2016.\n";
-        BibEntry entry = TestEntry.getTestEntry();
-        String style = CitationStyle.getDefault().getSource();
-        CitationStyleOutputFormat format = CitationStyleOutputFormat.ASCII_DOC;
-
-        String actualCitation = CitationStyleGenerator.generateCitation(entry, style, format);
-        assertEquals(expectedCitation, actualCitation);
-    }
-
-    @Test
-    public void testHtmlFormat() {
-        String expectedCitation = "  <div class=\"csl-entry\">\n" +
-                "    <div class=\"csl-left-margin\">[1]</div><div class=\"csl-right-inline\">B. Smith, B. Jones, and J. Williams, “Title of the test entry,” <i>BibTeX Journal</i>, vol. 34, no. 3, pp. 45–67, Jul. 2016.</div>\n" +
-                "  </div>\n";
-        BibEntry entry = TestEntry.getTestEntry();
-        String style = CitationStyle.getDefault().getSource();
-        CitationStyleOutputFormat format = CitationStyleOutputFormat.HTML;
-
-        String actualCitation = CitationStyleGenerator.generateCitation(entry, style, format);
-        assertEquals(expectedCitation, actualCitation);
-    }
-
-    @Test
-    public void testRtfFormat() {
-        String expectedCitation = "[1]\\tab B. Smith, B. Jones, and J. Williams, \\uc0\\u8220{}Title of the test entry,\\uc0\\u8221{} {\\i{}BibTeX Journal}, vol. 34, no. 3, pp. 45\\uc0\\u8211{}67, Jul. 2016.\r\n";
-        BibEntry entry = TestEntry.getTestEntry();
-        String style = CitationStyle.getDefault().getSource();
-        CitationStyleOutputFormat format = CitationStyleOutputFormat.RTF;
-
-        String actualCitation = CitationStyleGenerator.generateCitation(entry, style, format);
-        assertEquals(expectedCitation, actualCitation);
-    }
-
-    @Test
-    public void testTextFormat() {
-        String expectedCitation = "[1]B. Smith, B. Jones, and J. Williams, “Title of the test entry,” BibTeX Journal, vol. 34, no. 3, pp. 45–67, Jul. 2016.\n";
-        BibEntry entry = TestEntry.getTestEntry();
-        String style = CitationStyle.getDefault().getSource();
-        CitationStyleOutputFormat format = CitationStyleOutputFormat.TEXT;
-
-        String actualCitation = CitationStyleGenerator.generateCitation(entry, style, format);
-        assertEquals(expectedCitation, actualCitation);
-    }
-
-    @Test
-    public void testXslFoFormat() {
-        String expectedCitation = "<fo:block id=\"Smith2016\">\n" +
-                "  <fo:table table-layout=\"fixed\" width=\"100%\">\n" +
-                "    <fo:table-column column-number=\"1\" column-width=\"2.5em\"/>\n" +
-                "    <fo:table-column column-number=\"2\" column-width=\"proportional-column-width(1)\"/>\n" +
-                "    <fo:table-body>\n" +
-                "      <fo:table-row>\n" +
-                "        <fo:table-cell>\n" +
-                "          <fo:block>[1]</fo:block>\n" +
-                "        </fo:table-cell>\n" +
-                "        <fo:table-cell>\n" +
-                "          <fo:block>B. Smith, B. Jones, and J. Williams, “Title of the test entry,” <fo:inline font-style=\"italic\">BibTeX Journal</fo:inline>, vol. 34, no. 3, pp. 45–67, Jul. 2016.</fo:block>\n" +
-                "        </fo:table-cell>\n" +
-                "      </fo:table-row>\n" +
-                "    </fo:table-body>\n" +
-                "  </fo:table>\n" +
-                "</fo:block>\n";
-        BibEntry entry = TestEntry.getTestEntry();
-        String style = CitationStyle.getDefault().getSource();
-        CitationStyleOutputFormat format = CitationStyleOutputFormat.XSL_FO;
-
-        String actualCitation = CitationStyleGenerator.generateCitation(entry, style, format);
-        assertEquals(expectedCitation, actualCitation);
-    }
-
-}
--- a/src/test/java/net/sf/jabref/logic/citationstyle/CitationStyleTest.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package net.sf.jabref.logic.citationstyle;
-
-import net.sf.jabref.logic.util.TestEntry;
-
-import org.junit.Assert;
-import org.junit.Test;
-
-
-public class CitationStyleTest {
-
-    @Test
-    public void getDefault() throws Exception {
-        Assert.assertNotNull(CitationStyle.getDefault());
-    }
-
-    @Test
-    public void testDefaultCitation() {
-        String citation = CitationStyleGenerator.generateCitation(TestEntry.getTestEntry(), CitationStyle.getDefault());
-
-        // if the default citation style changes this has to be modified
-        String expected = "  <div class=\"csl-entry\">\n" +
-                "    <div class=\"csl-left-margin\">[1]</div><div class=\"csl-right-inline\">" +
-                "B. Smith, B. Jones, and J. Williams, “Title of the test entry,” " +
-                "<i>BibTeX Journal</i>, vol. 34, no. 3, pp. 45–67, Jul. 2016.</div>\n" +
-                "  </div>\n";
-
-        Assert.assertEquals(citation, expected);
-    }
-
-}
--- a/src/test/java/net/sf/jabref/logic/util/strings/DiffHighlightingTest.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package net.sf.jabref.logic.util.strings;
-
-import org.junit.Test;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
-
-
-public class DiffHighlightingTest {
-
-    @Test
-    public void testGenerateDiffHighlightingBothNullReturnsNull() {
-        assertNull(DiffHighlighting.generateDiffHighlighting(null, null, ""));
-    }
-
-    @Test(expected = NullPointerException.class)
-    public void testNullSeparatorThrowsNPE() {
-        assertNull(DiffHighlighting.generateDiffHighlighting("", "", null));
-    }
-
-    @Test
-    public void testGenerateDiffHighlightingNoDiff() {
-        assertEquals("foo", DiffHighlighting.generateDiffHighlighting("foo", "foo", ""));
-    }
-
-    @Test
-    public void testGenerateDiffHighlightingSingleWordAddTextWordDiff() {
-        assertEquals("<span class=del>foo</span> <span class=add>foobar</span>",
-                DiffHighlighting.generateDiffHighlighting("foo", "foobar", " "));
-    }
-
-    @Test
-    public void testGenerateDiffHighlightingSingleWordAddTextCharacterDiff() {
-        assertEquals("foo<span class=add>bar</span>", DiffHighlighting.generateDiffHighlighting("foo", "foobar", ""));
-    }
-
-    @Test
-    public void testGenerateDiffHighlightingSingleWordDeleteTextWordDiff() {
-        assertEquals("<span class=del>foobar</span> <span class=add>foo</span>",
-                DiffHighlighting.generateDiffHighlighting("foobar", "foo", " "));
-    }
-
-    @Test
-    public void testGenerateDiffHighlightingSingleWordDeleteTextCharacterDiff() {
-        assertEquals("foo<span class=del>bar</span>", DiffHighlighting.generateDiffHighlighting("foobar", "foo", ""));
-    }
-
-    @Test
-    public void generateSymmetricHighlightingSingleWordAddTextWordDiff() {
-        assertEquals("<span class=change>foo</span>",
-                DiffHighlighting.generateSymmetricHighlighting("foo", "foobar", " "));
-    }
-
-    @Test
-    public void generateSymmetricHighlightingSingleWordAddTextCharacterDiff() {
-        assertEquals("foo", DiffHighlighting.generateSymmetricHighlighting("foo", "foobar", ""));
-    }
-
-    @Test
-    public void generateSymmetricHighlightingSingleWordDeleteTextWordDiff() {
-        assertEquals("<span class=change>foobar</span>",
-                DiffHighlighting.generateSymmetricHighlighting("foobar", "foo", " "));
-    }
-
-    @Test
-    public void generateSymmetricHighlightingSingleWordDeleteTextCharacterDiff() {
-        assertEquals("foo<span class=add>bar</span>", DiffHighlighting.generateSymmetricHighlighting("foobar", "foo", ""));
-    }
-
-    @Test
-    public void generateSymmetricHighlightingMultipleWordsDeleteTextCharacterDiff() {
-        assertEquals("foo<span class=add>bar</span> and <span class=add>some</span>thing",
-                DiffHighlighting.generateSymmetricHighlighting("foobar and something", "foo and thing", ""));
-    }
-
-    @Test
-    public void generateSymmetricHighlightingMultipleWordsDeleteTextWordDiff() {
-        assertEquals("foo <span class=add>bar</span> and <span class=add>some</span> thing",
-                DiffHighlighting.generateSymmetricHighlighting("foo bar and some thing", "foo and thing", " "));
-    }
-}
--- a/src/test/java/net/sf/jabref/shared/DBMSTypeTest.java
+++ b/src/test/java/net/sf/jabref/shared/DBMSTypeTest.java
@@ -20,7 +20,7 @@
     public void testGetDriverClassPath() {
         Assert.assertEquals("com.mysql.jdbc.Driver", DBMSType.MYSQL.getDriverClassPath());
         Assert.assertEquals("oracle.jdbc.driver.OracleDriver", DBMSType.ORACLE.getDriverClassPath());
-        Assert.assertEquals("com.impossibl.postgres.jdbc.PGDriver", DBMSType.POSTGRESQL.getDriverClassPath());
+        Assert.assertEquals("org.postgresql.Driver", DBMSType.POSTGRESQL.getDriverClassPath());
     }
 
     @Test
@@ -35,7 +35,7 @@
     public void testGetUrl() {
         Assert.assertEquals("jdbc:mysql://localhost:3306/xe", DBMSType.MYSQL.getUrl("localhost", 3306, "xe"));
         Assert.assertEquals("jdbc:oracle:thin:@localhost:1521:xe", DBMSType.ORACLE.getUrl("localhost", 1521, "xe"));
-        Assert.assertEquals("jdbc:pgsql://localhost:5432/xe", DBMSType.POSTGRESQL.getUrl("localhost", 5432, "xe"));
+        Assert.assertEquals("jdbc:postgresql://localhost:5432/xe", DBMSType.POSTGRESQL.getUrl("localhost", 5432, "xe"));
     }
 
     @Test