1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.primefaces.extensions.model.monacoeditor;
25
26 import org.primefaces.shaded.json.*;
27 import java.io.ObjectStreamException;
28 import java.io.Serializable;
29
30
31
32
33
34
35
36
37 @SuppressWarnings("serial")
38 public class DiffEditorOptions extends JSONObject implements Serializable {
39 private Object writeReplace() throws ObjectStreamException {
40 return new SerializedDiffEditorOptions(this);
41 }
42
43 private static class SerializedDiffEditorOptions implements Serializable {
44 private String json;
45
46 public SerializedDiffEditorOptions(DiffEditorOptions diffEditorOptions) {
47 this.json = diffEditorOptions.toString();
48 }
49
50 private Object readResolve() throws ObjectStreamException {
51 final DiffEditorOptions diffEditorOptions = new DiffEditorOptions();
52 final JSONObject data = new JSONObject(json);
53 for (final String key : data.keySet()) {
54 final Object value = data.get(key);
55 diffEditorOptions.put(key, value);
56 }
57 return diffEditorOptions;
58 }
59 }
60
61
62
63
64 public EditorBracketPairColorizationOptions getBracketPairColorization() {
65 return (EditorBracketPairColorizationOptions) (has("bracketPairColorization") ? get("bracketPairColorization") : null);
66 }
67
68
69
70
71
72 public DiffEditorOptions setBracketPairColorization(final EditorBracketPairColorizationOptions bracketPairColorization) {
73 put("bracketPairColorization", bracketPairColorization);
74 return this;
75 }
76
77
78
79
80 public EditorCommentsOptions getComments() {
81 return (EditorCommentsOptions) (has("comments") ? get("comments") : null);
82 }
83
84
85
86
87
88 public DiffEditorOptions setComments(final EditorCommentsOptions comments) {
89 put("comments", comments);
90 return this;
91 }
92
93
94
95
96
97 public EditorDropIntoEditorOptions getDropIntoEditor() {
98 return (EditorDropIntoEditorOptions) (has("dropIntoEditor") ? get("dropIntoEditor") : null);
99 }
100
101
102
103
104
105
106 public DiffEditorOptions setDropIntoEditor(final EditorDropIntoEditorOptions dropIntoEditor) {
107 put("dropIntoEditor", dropIntoEditor);
108 return this;
109 }
110
111
112
113
114 public EditorFindOptions getFind() {
115 return (EditorFindOptions) (has("find") ? get("find") : null);
116 }
117
118
119
120
121
122 public DiffEditorOptions setFind(final EditorFindOptions find) {
123 put("find", find);
124 return this;
125 }
126
127
128
129
130 public EditorGuidesOptions getGuides() {
131 return (EditorGuidesOptions) (has("guides") ? get("guides") : null);
132 }
133
134
135
136
137
138 public DiffEditorOptions setGuides(final EditorGuidesOptions guides) {
139 put("guides", guides);
140 return this;
141 }
142
143 public EditorGotoLocationOptions getGotoLocation() {
144 return (EditorGotoLocationOptions) (has("gotoLocation") ? get("gotoLocation") : null);
145 }
146
147 public DiffEditorOptions setGotoLocation(final EditorGotoLocationOptions gotoLocation) {
148 put("gotoLocation", gotoLocation);
149 return this;
150 }
151
152
153
154
155 public EditorHoverOptions getHover() {
156 return (EditorHoverOptions) (has("hover") ? get("hover") : null);
157 }
158
159
160
161
162
163 public DiffEditorOptions setHover(final EditorHoverOptions hover) {
164 put("hover", hover);
165 return this;
166 }
167
168
169
170
171 public EditorInlayHintOptions getInlayHints() {
172 return (EditorInlayHintOptions) (has("inlayHints") ? get("inlayHints") : null);
173 }
174
175
176
177
178
179 public DiffEditorOptions setInlayHints(final EditorInlayHintOptions inlayHints) {
180 put("inlayHints", inlayHints);
181 return this;
182 }
183
184
185
186
187 public EditorInlineSuggestOptions getInlineSuggest() {
188 return (EditorInlineSuggestOptions) (has("inlineSuggest") ? get("inlineSuggest") : null);
189 }
190
191
192
193
194
195 public DiffEditorOptions setInlineSuggest(final EditorInlineSuggestOptions inlineSuggest) {
196 put("inlineSuggest", inlineSuggest);
197 return this;
198 }
199
200
201
202
203 public EditorLightbulbOptions getLightbulb() {
204 return (EditorLightbulbOptions) (has("lightbulb") ? get("lightbulb") : null);
205 }
206
207
208
209
210
211 public DiffEditorOptions setLightbulb(final EditorLightbulbOptions lightbulb) {
212 put("lightbulb", lightbulb);
213 return this;
214 }
215
216
217
218
219 public EditorMinimapOptions getMinimap() {
220 return (EditorMinimapOptions) (has("minimap") ? get("minimap") : null);
221 }
222
223
224
225
226
227 public DiffEditorOptions setMinimap(final EditorMinimapOptions minimap) {
228 put("minimap", minimap);
229 return this;
230 }
231
232
233
234
235 public EditorPaddingOptions getPadding() {
236 return (EditorPaddingOptions) (has("padding") ? get("padding") : null);
237 }
238
239
240
241
242
243 public DiffEditorOptions setPadding(final EditorPaddingOptions padding) {
244 put("padding", padding);
245 return this;
246 }
247
248
249
250
251 public EditorParameterHints getParameterHints() {
252 return (EditorParameterHints) (has("parameterHints") ? get("parameterHints") : null);
253 }
254
255
256
257
258
259 public DiffEditorOptions setParameterHints(final EditorParameterHints parameterHints) {
260 put("parameterHints", parameterHints);
261 return this;
262 }
263
264
265
266
267 public EditorQuickSuggestionsOptions getQuickSuggestions() {
268 return (EditorQuickSuggestionsOptions) (has("quickSuggestions") ? get("quickSuggestions") : null);
269 }
270
271
272
273
274
275 public DiffEditorOptions setQuickSuggestions(final EditorQuickSuggestionsOptions quickSuggestions) {
276 put("quickSuggestions", quickSuggestions);
277 return this;
278 }
279
280
281
282
283 public EditorPasteAsOptions getPasteAs() {
284 return (EditorPasteAsOptions) (has("pasteAs") ? get("pasteAs") : null);
285 }
286
287
288
289
290
291 public DiffEditorOptions setPasteAs(final EditorPasteAsOptions pasteAs) {
292 put("pasteAs", pasteAs);
293 return this;
294 }
295
296
297
298
299 public EditorScrollbarOptions getScrollbar() {
300 return (EditorScrollbarOptions) (has("scrollbar") ? get("scrollbar") : null);
301 }
302
303
304
305
306
307 public DiffEditorOptions setScrollbar(final EditorScrollbarOptions scrollbar) {
308 put("scrollbar", scrollbar);
309 return this;
310 }
311
312
313
314
315 public EditorSmartSelectOptions getSmartSelect() {
316 return (EditorSmartSelectOptions) (has("smartSelect") ? get("smartSelect") : null);
317 }
318
319
320
321
322
323 public DiffEditorOptions setSmartSelect(final EditorSmartSelectOptions smartSelect) {
324 put("smartSelect", smartSelect);
325 return this;
326 }
327
328
329
330
331 public EditorStickyScrollOptions getStickyScroll() {
332 return (EditorStickyScrollOptions) (has("stickyScroll") ? get("stickyScroll") : null);
333 }
334
335
336
337
338
339 public DiffEditorOptions setStickyScroll(final EditorStickyScrollOptions stickyScroll) {
340 put("stickyScroll", stickyScroll);
341 return this;
342 }
343
344
345
346
347 public EditorSuggestOptions getSuggest() {
348 return (EditorSuggestOptions) (has("suggest") ? get("suggest") : null);
349 }
350
351
352
353
354
355 public DiffEditorOptions setSuggest(final EditorSuggestOptions suggest) {
356 put("suggest", suggest);
357 return this;
358 }
359
360
361
362
363
364 public EditorUnicodeHighlightOptions getUnicodeHighlight() {
365 return (EditorUnicodeHighlightOptions) (has("unicodeHighlight") ? get("unicodeHighlight") : null);
366 }
367
368
369
370
371
372
373 public DiffEditorOptions setUnicodeHighlight(final EditorUnicodeHighlightOptions unicodeHighlight) {
374 put("unicodeHighlight", unicodeHighlight);
375 return this;
376 }
377
378
379
380
381 public String getAutoClosingOvertype() {
382 return (String) (has("autoClosingOvertype") ? get("autoClosingOvertype") : null);
383 }
384
385
386
387
388
389 public DiffEditorOptions setAutoClosingOvertype(final EAutoClosingOvertype autoClosingOvertype) {
390 put("autoClosingOvertype", autoClosingOvertype != null ? autoClosingOvertype.toString() : null);
391 return this;
392 }
393
394
395
396
397
398 public DiffEditorOptions setAutoClosingOvertype(final String autoClosingOvertype) {
399 put("autoClosingOvertype", autoClosingOvertype);
400 return this;
401 }
402
403
404
405
406
407 public String getAutoIndent() {
408 return (String) (has("autoIndent") ? get("autoIndent") : null);
409 }
410
411
412
413
414
415
416 public DiffEditorOptions setAutoIndent(final EAutoIndent autoIndent) {
417 put("autoIndent", autoIndent != null ? autoIndent.toString() : null);
418 return this;
419 }
420
421
422
423
424
425
426 public DiffEditorOptions setAutoIndent(final String autoIndent) {
427 put("autoIndent", autoIndent);
428 return this;
429 }
430
431
432
433
434 public String getAcceptSuggestionOnEnter() {
435 return (String) (has("acceptSuggestionOnEnter") ? get("acceptSuggestionOnEnter") : null);
436 }
437
438
439
440
441
442 public DiffEditorOptions setAcceptSuggestionOnEnter(final EAcceptSuggestionOnEnter acceptSuggestionOnEnter) {
443 put("acceptSuggestionOnEnter", acceptSuggestionOnEnter != null ? acceptSuggestionOnEnter.toString() : null);
444 return this;
445 }
446
447
448
449
450
451 public DiffEditorOptions setAcceptSuggestionOnEnter(final String acceptSuggestionOnEnter) {
452 put("acceptSuggestionOnEnter", acceptSuggestionOnEnter);
453 return this;
454 }
455
456
457
458
459
460 public String getAccessibilitySupport() {
461 return (String) (has("accessibilitySupport") ? get("accessibilitySupport") : null);
462 }
463
464
465
466
467
468
469 public DiffEditorOptions setAccessibilitySupport(final EAccessibilitySupport accessibilitySupport) {
470 put("accessibilitySupport", accessibilitySupport != null ? accessibilitySupport.toString() : null);
471 return this;
472 }
473
474
475
476
477
478
479 public DiffEditorOptions setAccessibilitySupport(final String accessibilitySupport) {
480 put("accessibilitySupport", accessibilitySupport);
481 return this;
482 }
483
484
485
486
487 public String getAutoClosingBrackets() {
488 return (String) (has("autoClosingBrackets") ? get("autoClosingBrackets") : null);
489 }
490
491
492
493
494
495 public DiffEditorOptions setAutoClosingBrackets(final EAutoClosingBrackets autoClosingBrackets) {
496 put("autoClosingBrackets", autoClosingBrackets != null ? autoClosingBrackets.toString() : null);
497 return this;
498 }
499
500
501
502
503
504 public DiffEditorOptions setAutoClosingBrackets(final String autoClosingBrackets) {
505 put("autoClosingBrackets", autoClosingBrackets);
506 return this;
507 }
508
509
510
511
512 public String getAutoClosingDelete() {
513 return (String) (has("autoClosingDelete") ? get("autoClosingDelete") : null);
514 }
515
516
517
518
519
520 public DiffEditorOptions setAutoClosingDelete(final EAutoClosingEditStrategy autoClosingDelete) {
521 put("autoClosingDelete", autoClosingDelete != null ? autoClosingDelete.toString() : null);
522 return this;
523 }
524
525
526
527
528
529 public DiffEditorOptions setAutoClosingDelete(final String autoClosingDelete) {
530 put("autoClosingDelete", autoClosingDelete);
531 return this;
532 }
533
534
535
536
537 public String getAutoClosingQuotes() {
538 return (String) (has("autoClosingQuotes") ? get("autoClosingQuotes") : null);
539 }
540
541
542
543
544
545 public DiffEditorOptions setAutoClosingQuotes(final EAutoClosingQuotes autoClosingQuotes) {
546 put("autoClosingQuotes", autoClosingQuotes != null ? autoClosingQuotes.toString() : null);
547 return this;
548 }
549
550
551
552
553
554 public DiffEditorOptions setAutoClosingQuotes(final String autoClosingQuotes) {
555 put("autoClosingQuotes", autoClosingQuotes);
556 return this;
557 }
558
559
560
561
562 public String getAutoSurround() {
563 return (String) (has("autoSurround") ? get("autoSurround") : null);
564 }
565
566
567
568
569
570 public DiffEditorOptions setAutoSurround(final EAutoSurround autoSurround) {
571 put("autoSurround", autoSurround != null ? autoSurround.toString() : null);
572 return this;
573 }
574
575
576
577
578
579 public DiffEditorOptions setAutoSurround(final String autoSurround) {
580 put("autoSurround", autoSurround);
581 return this;
582 }
583
584
585
586
587 public String getColorDecoratorsActivatedOn() {
588 return (String) (has("colorDecoratorsActivatedOn") ? get("colorDecoratorsActivatedOn") : null);
589 }
590
591
592
593
594
595 public DiffEditorOptions setColorDecoratorsActivatedOn(final EColorDecoratorsActivatedOnMode colorDecoratorsActivatedOn) {
596 put("colorDecoratorsActivatedOn", colorDecoratorsActivatedOn != null ? colorDecoratorsActivatedOn.toString() : null);
597 return this;
598 }
599
600
601
602
603
604 public DiffEditorOptions setColorDecoratorsActivatedOn(final String colorDecoratorsActivatedOn) {
605 put("colorDecoratorsActivatedOn", colorDecoratorsActivatedOn);
606 return this;
607 }
608
609
610
611
612
613 public String getCursorBlinking() {
614 return (String) (has("cursorBlinking") ? get("cursorBlinking") : null);
615 }
616
617
618
619
620
621
622 public DiffEditorOptions setCursorBlinking(final ECursorBlinking cursorBlinking) {
623 put("cursorBlinking", cursorBlinking != null ? cursorBlinking.toString() : null);
624 return this;
625 }
626
627
628
629
630
631
632 public DiffEditorOptions setCursorBlinking(final String cursorBlinking) {
633 put("cursorBlinking", cursorBlinking);
634 return this;
635 }
636
637
638
639
640 public String getCursorSmoothCaretAnimation() {
641 return (String) (has("cursorSmoothCaretAnimation") ? get("cursorSmoothCaretAnimation") : null);
642 }
643
644
645
646
647
648 public DiffEditorOptions setCursorSmoothCaretAnimation(final ECursorSmoothCaretAnimation cursorSmoothCaretAnimation) {
649 put("cursorSmoothCaretAnimation", cursorSmoothCaretAnimation != null ? cursorSmoothCaretAnimation.toString() : null);
650 return this;
651 }
652
653
654
655
656
657 public DiffEditorOptions setCursorSmoothCaretAnimation(final String cursorSmoothCaretAnimation) {
658 put("cursorSmoothCaretAnimation", cursorSmoothCaretAnimation);
659 return this;
660 }
661
662
663
664
665 public String getCursorStyle() {
666 return (String) (has("cursorStyle") ? get("cursorStyle") : null);
667 }
668
669
670
671
672
673 public DiffEditorOptions setCursorStyle(final ECursorStyle cursorStyle) {
674 put("cursorStyle", cursorStyle != null ? cursorStyle.toString() : null);
675 return this;
676 }
677
678
679
680
681
682 public DiffEditorOptions setCursorStyle(final String cursorStyle) {
683 put("cursorStyle", cursorStyle);
684 return this;
685 }
686
687
688
689
690
691 public String getCursorSurroundingLinesStyle() {
692 return (String) (has("cursorSurroundingLinesStyle") ? get("cursorSurroundingLinesStyle") : null);
693 }
694
695
696
697
698
699
700 public DiffEditorOptions setCursorSurroundingLinesStyle(final ECursorSurroundingLinesStyle cursorSurroundingLinesStyle) {
701 put("cursorSurroundingLinesStyle", cursorSurroundingLinesStyle != null ? cursorSurroundingLinesStyle.toString() : null);
702 return this;
703 }
704
705
706
707
708
709
710 public DiffEditorOptions setCursorSurroundingLinesStyle(final String cursorSurroundingLinesStyle) {
711 put("cursorSurroundingLinesStyle", cursorSurroundingLinesStyle);
712 return this;
713 }
714
715
716
717
718 public String getExperimentalWhitespaceRendering() {
719 return (String) (has("experimentalWhitespaceRendering") ? get("experimentalWhitespaceRendering") : null);
720 }
721
722
723
724
725
726 public DiffEditorOptions setExperimentalWhitespaceRendering(final EExperimentalWhitespaceRendering experimentalWhitespaceRendering) {
727 put("experimentalWhitespaceRendering", experimentalWhitespaceRendering != null ? experimentalWhitespaceRendering.toString() : null);
728 return this;
729 }
730
731
732
733
734
735 public DiffEditorOptions setExperimentalWhitespaceRendering(final String experimentalWhitespaceRendering) {
736 put("experimentalWhitespaceRendering", experimentalWhitespaceRendering);
737 return this;
738 }
739
740
741
742
743
744 public String getFoldingStrategy() {
745 return (String) (has("foldingStrategy") ? get("foldingStrategy") : null);
746 }
747
748
749
750
751
752
753 public DiffEditorOptions setFoldingStrategy(final EFoldingStrategy foldingStrategy) {
754 put("foldingStrategy", foldingStrategy != null ? foldingStrategy.toString() : null);
755 return this;
756 }
757
758
759
760
761
762
763 public DiffEditorOptions setFoldingStrategy(final String foldingStrategy) {
764 put("foldingStrategy", foldingStrategy);
765 return this;
766 }
767
768
769
770
771 public String getFontWeight() {
772 return (String) (has("fontWeight") ? get("fontWeight") : null);
773 }
774
775
776
777
778
779 public DiffEditorOptions setFontWeight(final EFontWeight fontWeight) {
780 put("fontWeight", fontWeight != null ? fontWeight.toString() : null);
781 return this;
782 }
783
784
785
786
787
788 public DiffEditorOptions setFontWeight(final String fontWeight) {
789 put("fontWeight", fontWeight);
790 return this;
791 }
792
793
794
795
796
797
798 public String getLineNumbers() {
799 return (String) (has("lineNumbers") ? get("lineNumbers") : null);
800 }
801
802
803
804
805
806
807
808
809 public DiffEditorOptions setLineNumbers(final ELineNumbers lineNumbers) {
810 put("lineNumbers", lineNumbers != null ? lineNumbers.toString() : null);
811 return this;
812 }
813
814
815
816
817
818
819
820
821 public DiffEditorOptions setLineNumbers(final String lineNumbers) {
822 put("lineNumbers", lineNumbers);
823 return this;
824 }
825
826
827
828
829 public String getMatchBrackets() {
830 return (String) (has("matchBrackets") ? get("matchBrackets") : null);
831 }
832
833
834
835
836
837 public DiffEditorOptions setMatchBrackets(final EMatchBrackets matchBrackets) {
838 put("matchBrackets", matchBrackets != null ? matchBrackets.toString() : null);
839 return this;
840 }
841
842
843
844
845
846 public DiffEditorOptions setMatchBrackets(final String matchBrackets) {
847 put("matchBrackets", matchBrackets);
848 return this;
849 }
850
851
852
853
854 public String getMouseStyle() {
855 return (String) (has("mouseStyle") ? get("mouseStyle") : null);
856 }
857
858
859
860
861
862 public DiffEditorOptions setMouseStyle(final EMouseStyle mouseStyle) {
863 put("mouseStyle", mouseStyle != null ? mouseStyle.toString() : null);
864 return this;
865 }
866
867
868
869
870
871 public DiffEditorOptions setMouseStyle(final String mouseStyle) {
872 put("mouseStyle", mouseStyle);
873 return this;
874 }
875
876
877
878
879 public String getMultiCursorModifier() {
880 return (String) (has("multiCursorModifier") ? get("multiCursorModifier") : null);
881 }
882
883
884
885
886
887
888 public DiffEditorOptions setMultiCursorModifier(final EMultiCursorModifier multiCursorModifier) {
889 put("multiCursorModifier", multiCursorModifier != null ? multiCursorModifier.toString() : null);
890 return this;
891 }
892
893
894
895
896
897
898 public DiffEditorOptions setMultiCursorModifier(final String multiCursorModifier) {
899 put("multiCursorModifier", multiCursorModifier);
900 return this;
901 }
902
903
904
905
906
907 public String getMultiCursorPaste() {
908 return (String) (has("multiCursorPaste") ? get("multiCursorPaste") : null);
909 }
910
911
912
913
914
915
916 public DiffEditorOptions setMultiCursorPaste(final EMultiCursorPaste multiCursorPaste) {
917 put("multiCursorPaste", multiCursorPaste != null ? multiCursorPaste.toString() : null);
918 return this;
919 }
920
921
922
923
924
925
926 public DiffEditorOptions setMultiCursorPaste(final String multiCursorPaste) {
927 put("multiCursorPaste", multiCursorPaste);
928 return this;
929 }
930
931
932
933
934 public String getOccurrencesHighlight() {
935 return (String) (has("occurrencesHighlight") ? get("occurrencesHighlight") : null);
936 }
937
938
939
940
941
942 public DiffEditorOptions setOccurrencesHighlight(final EOccurrencesHighlight occurrencesHighlight) {
943 put("occurrencesHighlight", occurrencesHighlight != null ? occurrencesHighlight.toString() : null);
944 return this;
945 }
946
947
948
949
950
951 public DiffEditorOptions setOccurrencesHighlight(final String occurrencesHighlight) {
952 put("occurrencesHighlight", occurrencesHighlight);
953 return this;
954 }
955
956
957
958
959 public String getPeekWidgetDefaultFocus() {
960 return (String) (has("peekWidgetDefaultFocus") ? get("peekWidgetDefaultFocus") : null);
961 }
962
963
964
965
966
967
968 public DiffEditorOptions setPeekWidgetDefaultFocus(final EPeekWidgetDefaultFocus peekWidgetDefaultFocus) {
969 put("peekWidgetDefaultFocus", peekWidgetDefaultFocus != null ? peekWidgetDefaultFocus.toString() : null);
970 return this;
971 }
972
973
974
975
976
977
978 public DiffEditorOptions setPeekWidgetDefaultFocus(final String peekWidgetDefaultFocus) {
979 put("peekWidgetDefaultFocus", peekWidgetDefaultFocus);
980 return this;
981 }
982
983
984
985
986
987 public String getRenderFinalNewline() {
988 return (String) (has("renderFinalNewline") ? get("renderFinalNewline") : null);
989 }
990
991
992
993
994
995
996 public DiffEditorOptions setRenderFinalNewline(final ERenderFinalNewline renderFinalNewline) {
997 put("renderFinalNewline", renderFinalNewline != null ? renderFinalNewline.toString() : null);
998 return this;
999 }
1000
1001
1002
1003
1004
1005
1006 public DiffEditorOptions setRenderFinalNewline(final String renderFinalNewline) {
1007 put("renderFinalNewline", renderFinalNewline);
1008 return this;
1009 }
1010
1011
1012
1013
1014 public String getRenderLineHighlight() {
1015 return (String) (has("renderLineHighlight") ? get("renderLineHighlight") : null);
1016 }
1017
1018
1019
1020
1021
1022 public DiffEditorOptions setRenderLineHighlight(final ERenderLineHighlight renderLineHighlight) {
1023 put("renderLineHighlight", renderLineHighlight != null ? renderLineHighlight.toString() : null);
1024 return this;
1025 }
1026
1027
1028
1029
1030
1031 public DiffEditorOptions setRenderLineHighlight(final String renderLineHighlight) {
1032 put("renderLineHighlight", renderLineHighlight);
1033 return this;
1034 }
1035
1036
1037
1038
1039 public String getRenderValidationDecorations() {
1040 return (String) (has("renderValidationDecorations") ? get("renderValidationDecorations") : null);
1041 }
1042
1043
1044
1045
1046
1047 public DiffEditorOptions setRenderValidationDecorations(final ERenderValidationDecorations renderValidationDecorations) {
1048 put("renderValidationDecorations", renderValidationDecorations != null ? renderValidationDecorations.toString() : null);
1049 return this;
1050 }
1051
1052
1053
1054
1055
1056 public DiffEditorOptions setRenderValidationDecorations(final String renderValidationDecorations) {
1057 put("renderValidationDecorations", renderValidationDecorations);
1058 return this;
1059 }
1060
1061
1062
1063
1064 public String getRenderWhitespace() {
1065 return (String) (has("renderWhitespace") ? get("renderWhitespace") : null);
1066 }
1067
1068
1069
1070
1071
1072 public DiffEditorOptions setRenderWhitespace(final ERenderWhitespace renderWhitespace) {
1073 put("renderWhitespace", renderWhitespace != null ? renderWhitespace.toString() : null);
1074 return this;
1075 }
1076
1077
1078
1079
1080
1081 public DiffEditorOptions setRenderWhitespace(final String renderWhitespace) {
1082 put("renderWhitespace", renderWhitespace);
1083 return this;
1084 }
1085
1086
1087
1088
1089
1090 public String getShowFoldingControls() {
1091 return (String) (has("showFoldingControls") ? get("showFoldingControls") : null);
1092 }
1093
1094
1095
1096
1097
1098
1099 public DiffEditorOptions setShowFoldingControls(final EShowFoldingControls showFoldingControls) {
1100 put("showFoldingControls", showFoldingControls != null ? showFoldingControls.toString() : null);
1101 return this;
1102 }
1103
1104
1105
1106
1107
1108
1109 public DiffEditorOptions setShowFoldingControls(final String showFoldingControls) {
1110 put("showFoldingControls", showFoldingControls);
1111 return this;
1112 }
1113
1114
1115
1116
1117 public String getSnippetSuggestions() {
1118 return (String) (has("snippetSuggestions") ? get("snippetSuggestions") : null);
1119 }
1120
1121
1122
1123
1124
1125 public DiffEditorOptions setSnippetSuggestions(final ESnippetSuggestions snippetSuggestions) {
1126 put("snippetSuggestions", snippetSuggestions != null ? snippetSuggestions.toString() : null);
1127 return this;
1128 }
1129
1130
1131
1132
1133
1134 public DiffEditorOptions setSnippetSuggestions(final String snippetSuggestions) {
1135 put("snippetSuggestions", snippetSuggestions);
1136 return this;
1137 }
1138
1139
1140
1141
1142
1143 public String getSuggestSelection() {
1144 return (String) (has("suggestSelection") ? get("suggestSelection") : null);
1145 }
1146
1147
1148
1149
1150
1151
1152 public DiffEditorOptions setSuggestSelection(final ESuggestSelection suggestSelection) {
1153 put("suggestSelection", suggestSelection != null ? suggestSelection.toString() : null);
1154 return this;
1155 }
1156
1157
1158
1159
1160
1161
1162 public DiffEditorOptions setSuggestSelection(final String suggestSelection) {
1163 put("suggestSelection", suggestSelection);
1164 return this;
1165 }
1166
1167
1168
1169
1170 public String getTabCompletion() {
1171 return (String) (has("tabCompletion") ? get("tabCompletion") : null);
1172 }
1173
1174
1175
1176
1177
1178 public DiffEditorOptions setTabCompletion(final ETabCompletion tabCompletion) {
1179 put("tabCompletion", tabCompletion != null ? tabCompletion.toString() : null);
1180 return this;
1181 }
1182
1183
1184
1185
1186
1187 public DiffEditorOptions setTabCompletion(final String tabCompletion) {
1188 put("tabCompletion", tabCompletion);
1189 return this;
1190 }
1191
1192
1193
1194
1195
1196 public String getUnusualLineTerminators() {
1197 return (String) (has("unusualLineTerminators") ? get("unusualLineTerminators") : null);
1198 }
1199
1200
1201
1202
1203
1204
1205 public DiffEditorOptions setUnusualLineTerminators(final EUnusualLineTerminators unusualLineTerminators) {
1206 put("unusualLineTerminators", unusualLineTerminators != null ? unusualLineTerminators.toString() : null);
1207 return this;
1208 }
1209
1210
1211
1212
1213
1214
1215 public DiffEditorOptions setUnusualLineTerminators(final String unusualLineTerminators) {
1216 put("unusualLineTerminators", unusualLineTerminators);
1217 return this;
1218 }
1219
1220
1221
1222
1223
1224
1225 public String getWordBreak() {
1226 return (String) (has("wordBreak") ? get("wordBreak") : null);
1227 }
1228
1229
1230
1231
1232
1233
1234
1235 public DiffEditorOptions setWordBreak(final EWordBreak wordBreak) {
1236 put("wordBreak", wordBreak != null ? wordBreak.toString() : null);
1237 return this;
1238 }
1239
1240
1241
1242
1243
1244
1245
1246 public DiffEditorOptions setWordBreak(final String wordBreak) {
1247 put("wordBreak", wordBreak);
1248 return this;
1249 }
1250
1251
1252
1253
1254
1255
1256
1257 public String getWordWrap() {
1258 return (String) (has("wordWrap") ? get("wordWrap") : null);
1259 }
1260
1261
1262
1263
1264
1265
1266
1267
1268 public DiffEditorOptions setWordWrap(final EWordWrap wordWrap) {
1269 put("wordWrap", wordWrap != null ? wordWrap.toString() : null);
1270 return this;
1271 }
1272
1273
1274
1275
1276
1277
1278
1279
1280 public DiffEditorOptions setWordWrap(final String wordWrap) {
1281 put("wordWrap", wordWrap);
1282 return this;
1283 }
1284
1285
1286
1287
1288 public String getWordWrapOverride1() {
1289 return (String) (has("wordWrapOverride1") ? get("wordWrapOverride1") : null);
1290 }
1291
1292
1293
1294
1295
1296 public DiffEditorOptions setWordWrapOverride1(final EWordWrapOverride1 wordWrapOverride1) {
1297 put("wordWrapOverride1", wordWrapOverride1 != null ? wordWrapOverride1.toString() : null);
1298 return this;
1299 }
1300
1301
1302
1303
1304
1305 public DiffEditorOptions setWordWrapOverride1(final String wordWrapOverride1) {
1306 put("wordWrapOverride1", wordWrapOverride1);
1307 return this;
1308 }
1309
1310
1311
1312
1313 public String getWordWrapOverride2() {
1314 return (String) (has("wordWrapOverride2") ? get("wordWrapOverride2") : null);
1315 }
1316
1317
1318
1319
1320
1321 public DiffEditorOptions setWordWrapOverride2(final EWordWrapOverride2 wordWrapOverride2) {
1322 put("wordWrapOverride2", wordWrapOverride2 != null ? wordWrapOverride2.toString() : null);
1323 return this;
1324 }
1325
1326
1327
1328
1329
1330 public DiffEditorOptions setWordWrapOverride2(final String wordWrapOverride2) {
1331 put("wordWrapOverride2", wordWrapOverride2);
1332 return this;
1333 }
1334
1335
1336
1337
1338
1339 public String getWrappingIndent() {
1340 return (String) (has("wrappingIndent") ? get("wrappingIndent") : null);
1341 }
1342
1343
1344
1345
1346
1347
1348 public DiffEditorOptions setWrappingIndent(final EWrappingIndent wrappingIndent) {
1349 put("wrappingIndent", wrappingIndent != null ? wrappingIndent.toString() : null);
1350 return this;
1351 }
1352
1353
1354
1355
1356
1357
1358 public DiffEditorOptions setWrappingIndent(final String wrappingIndent) {
1359 put("wrappingIndent", wrappingIndent);
1360 return this;
1361 }
1362
1363
1364
1365
1366 public String getWrappingStrategy() {
1367 return (String) (has("wrappingStrategy") ? get("wrappingStrategy") : null);
1368 }
1369
1370
1371
1372
1373
1374 public DiffEditorOptions setWrappingStrategy(final EWrappingStrategy wrappingStrategy) {
1375 put("wrappingStrategy", wrappingStrategy != null ? wrappingStrategy.toString() : null);
1376 return this;
1377 }
1378
1379
1380
1381
1382
1383 public DiffEditorOptions setWrappingStrategy(final String wrappingStrategy) {
1384 put("wrappingStrategy", wrappingStrategy);
1385 return this;
1386 }
1387
1388
1389
1390
1391 public JSONArray getRulers() {
1392 return (JSONArray) (has("rulers") ? get("rulers") : null);
1393 }
1394
1395
1396
1397
1398
1399 public DiffEditorOptions setRulers(final JSONArray rulers) {
1400 put("rulers", rulers);
1401 return this;
1402 }
1403
1404
1405
1406
1407 public DiffEditorOptions addRuler(final EditorRulerOption ... items) {
1408 JSONArray x = getRulers();
1409 if (x == null) {
1410 x = new JSONArray();
1411 setRulers(x);
1412 }
1413 for (EditorRulerOption item : items) x.put(item);
1414 return this;
1415 }
1416
1417
1418
1419
1420
1421 public DiffEditorOptions setRulers(final java.util.List<EditorRulerOption> rulers) {
1422 return setRulers(new JSONArray(rulers));
1423 }
1424
1425
1426
1427
1428 public Boolean isAcceptSuggestionOnCommitCharacter() {
1429 return (Boolean) (has("acceptSuggestionOnCommitCharacter") ? get("acceptSuggestionOnCommitCharacter") : null);
1430 }
1431
1432
1433
1434
1435
1436
1437 public DiffEditorOptions setAcceptSuggestionOnCommitCharacter(final Boolean acceptSuggestionOnCommitCharacter) {
1438 put("acceptSuggestionOnCommitCharacter", acceptSuggestionOnCommitCharacter);
1439 return this;
1440 }
1441
1442
1443
1444
1445
1446 public Boolean isAutoDetectHighContrast() {
1447 return (Boolean) (has("autoDetectHighContrast") ? get("autoDetectHighContrast") : null);
1448 }
1449
1450
1451
1452
1453
1454
1455 public DiffEditorOptions setAutoDetectHighContrast(final Boolean autoDetectHighContrast) {
1456 put("autoDetectHighContrast", autoDetectHighContrast);
1457 return this;
1458 }
1459
1460
1461
1462
1463
1464 public Boolean isAutomaticLayout() {
1465 return (Boolean) (has("automaticLayout") ? get("automaticLayout") : null);
1466 }
1467
1468
1469
1470
1471
1472
1473 public DiffEditorOptions setAutomaticLayout(final Boolean automaticLayout) {
1474 put("automaticLayout", automaticLayout);
1475 return this;
1476 }
1477
1478
1479
1480
1481 public Boolean isCodeLens() {
1482 return (Boolean) (has("codeLens") ? get("codeLens") : null);
1483 }
1484
1485
1486
1487
1488
1489 public DiffEditorOptions setCodeLens(final Boolean codeLens) {
1490 put("codeLens", codeLens);
1491 return this;
1492 }
1493
1494
1495
1496
1497 public Boolean isColorDecorators() {
1498 return (Boolean) (has("colorDecorators") ? get("colorDecorators") : null);
1499 }
1500
1501
1502
1503
1504
1505 public DiffEditorOptions setColorDecorators(final Boolean colorDecorators) {
1506 put("colorDecorators", colorDecorators);
1507 return this;
1508 }
1509
1510
1511
1512
1513 public Boolean isColorDecoratorsLimit() {
1514 return (Boolean) (has("colorDecoratorsLimit") ? get("colorDecoratorsLimit") : null);
1515 }
1516
1517
1518
1519
1520
1521
1522 public DiffEditorOptions setColorDecoratorsLimit(final Boolean colorDecoratorsLimit) {
1523 put("colorDecoratorsLimit", colorDecoratorsLimit);
1524 return this;
1525 }
1526
1527
1528
1529
1530 public Boolean isColumnSelection() {
1531 return (Boolean) (has("columnSelection") ? get("columnSelection") : null);
1532 }
1533
1534
1535
1536
1537
1538
1539 public DiffEditorOptions setColumnSelection(final Boolean columnSelection) {
1540 put("columnSelection", columnSelection);
1541 return this;
1542 }
1543
1544
1545
1546
1547 public Boolean isContextmenu() {
1548 return (Boolean) (has("contextmenu") ? get("contextmenu") : null);
1549 }
1550
1551
1552
1553
1554
1555 public DiffEditorOptions setContextmenu(final Boolean contextmenu) {
1556 put("contextmenu", contextmenu);
1557 return this;
1558 }
1559
1560
1561
1562
1563 public Boolean isCopyWithSyntaxHighlighting() {
1564 return (Boolean) (has("copyWithSyntaxHighlighting") ? get("copyWithSyntaxHighlighting") : null);
1565 }
1566
1567
1568
1569
1570
1571 public DiffEditorOptions setCopyWithSyntaxHighlighting(final Boolean copyWithSyntaxHighlighting) {
1572 put("copyWithSyntaxHighlighting", copyWithSyntaxHighlighting);
1573 return this;
1574 }
1575
1576
1577
1578
1579 public Boolean isDefaultColorDecorators() {
1580 return (Boolean) (has("defaultColorDecorators") ? get("defaultColorDecorators") : null);
1581 }
1582
1583
1584
1585
1586
1587
1588 public DiffEditorOptions setDefaultColorDecorators(final Boolean defaultColorDecorators) {
1589 put("defaultColorDecorators", defaultColorDecorators);
1590 return this;
1591 }
1592
1593
1594
1595
1596 public Boolean isDefinitionLinkOpensInPeek() {
1597 return (Boolean) (has("definitionLinkOpensInPeek") ? get("definitionLinkOpensInPeek") : null);
1598 }
1599
1600
1601
1602
1603
1604
1605 public DiffEditorOptions setDefinitionLinkOpensInPeek(final Boolean definitionLinkOpensInPeek) {
1606 put("definitionLinkOpensInPeek", definitionLinkOpensInPeek);
1607 return this;
1608 }
1609
1610
1611
1612
1613
1614
1615 public Boolean isDisableLayerHinting() {
1616 return (Boolean) (has("disableLayerHinting") ? get("disableLayerHinting") : null);
1617 }
1618
1619
1620
1621
1622
1623
1624
1625 public DiffEditorOptions setDisableLayerHinting(final Boolean disableLayerHinting) {
1626 put("disableLayerHinting", disableLayerHinting);
1627 return this;
1628 }
1629
1630
1631
1632
1633 public Boolean isDisableMonospaceOptimizations() {
1634 return (Boolean) (has("disableMonospaceOptimizations") ? get("disableMonospaceOptimizations") : null);
1635 }
1636
1637
1638
1639
1640
1641 public DiffEditorOptions setDisableMonospaceOptimizations(final Boolean disableMonospaceOptimizations) {
1642 put("disableMonospaceOptimizations", disableMonospaceOptimizations);
1643 return this;
1644 }
1645
1646
1647
1648
1649 public Boolean isDragAndDrop() {
1650 return (Boolean) (has("dragAndDrop") ? get("dragAndDrop") : null);
1651 }
1652
1653
1654
1655
1656
1657
1658 public DiffEditorOptions setDragAndDrop(final Boolean dragAndDrop) {
1659 put("dragAndDrop", dragAndDrop);
1660 return this;
1661 }
1662
1663
1664
1665
1666 public Boolean isEmptySelectionClipboard() {
1667 return (Boolean) (has("emptySelectionClipboard") ? get("emptySelectionClipboard") : null);
1668 }
1669
1670
1671
1672
1673
1674 public DiffEditorOptions setEmptySelectionClipboard(final Boolean emptySelectionClipboard) {
1675 put("emptySelectionClipboard", emptySelectionClipboard);
1676 return this;
1677 }
1678
1679 public EditorInlineEditOptions getExperimentalInlineEdit() {
1680 return (EditorInlineEditOptions) (has("experimentalInlineEdit") ? get("experimentalInlineEdit") : null);
1681 }
1682
1683 public DiffEditorOptions setExperimentalInlineEdit(final EditorInlineEditOptions experimentalInlineEdit) {
1684 put("experimentalInlineEdit", experimentalInlineEdit);
1685 return this;
1686 }
1687
1688
1689
1690
1691 public Boolean isFixedOverflowWidgets() {
1692 return (Boolean) (has("fixedOverflowWidgets") ? get("fixedOverflowWidgets") : null);
1693 }
1694
1695
1696
1697
1698
1699 public DiffEditorOptions setFixedOverflowWidgets(final Boolean fixedOverflowWidgets) {
1700 put("fixedOverflowWidgets", fixedOverflowWidgets);
1701 return this;
1702 }
1703
1704
1705
1706
1707 public Boolean isFolding() {
1708 return (Boolean) (has("folding") ? get("folding") : null);
1709 }
1710
1711
1712
1713
1714
1715 public DiffEditorOptions setFolding(final Boolean folding) {
1716 put("folding", folding);
1717 return this;
1718 }
1719
1720
1721
1722
1723 public Boolean isFoldingHighlight() {
1724 return (Boolean) (has("foldingHighlight") ? get("foldingHighlight") : null);
1725 }
1726
1727
1728
1729
1730
1731 public DiffEditorOptions setFoldingHighlight(final Boolean foldingHighlight) {
1732 put("foldingHighlight", foldingHighlight);
1733 return this;
1734 }
1735
1736
1737
1738
1739 public Boolean isFoldingImportsByDefault() {
1740 return (Boolean) (has("foldingImportsByDefault") ? get("foldingImportsByDefault") : null);
1741 }
1742
1743
1744
1745
1746
1747 public DiffEditorOptions setFoldingImportsByDefault(final Boolean foldingImportsByDefault) {
1748 put("foldingImportsByDefault", foldingImportsByDefault);
1749 return this;
1750 }
1751
1752 public Boolean isFontLigatures() {
1753 final Object tmp = (has("fontLigatures") ? get("fontLigatures") : null);
1754 return (Boolean) (tmp instanceof Boolean ? tmp : null);
1755 }
1756
1757 public String getFontLigatures() {
1758 final Object tmp = (has("fontLigatures") ? get("fontLigatures") : null);
1759 return (String) (tmp instanceof String ? tmp : null);
1760 }
1761
1762 public DiffEditorOptions setFontLigatures(final Boolean fontLigatures) {
1763 put("fontLigatures", fontLigatures);
1764 return this;
1765 }
1766
1767 public DiffEditorOptions setFontLigatures(final String fontLigatures) {
1768 put("fontLigatures", fontLigatures);
1769 return this;
1770 }
1771
1772 public Boolean isFontVariations() {
1773 final Object tmp = (has("fontVariations") ? get("fontVariations") : null);
1774 return (Boolean) (tmp instanceof Boolean ? tmp : null);
1775 }
1776
1777 public String getFontVariations() {
1778 final Object tmp = (has("fontVariations") ? get("fontVariations") : null);
1779 return (String) (tmp instanceof String ? tmp : null);
1780 }
1781
1782 public DiffEditorOptions setFontVariations(final Boolean fontVariations) {
1783 put("fontVariations", fontVariations);
1784 return this;
1785 }
1786
1787 public DiffEditorOptions setFontVariations(final String fontVariations) {
1788 put("fontVariations", fontVariations);
1789 return this;
1790 }
1791
1792
1793
1794
1795 public Boolean isFormatOnPaste() {
1796 return (Boolean) (has("formatOnPaste") ? get("formatOnPaste") : null);
1797 }
1798
1799
1800
1801
1802
1803 public DiffEditorOptions setFormatOnPaste(final Boolean formatOnPaste) {
1804 put("formatOnPaste", formatOnPaste);
1805 return this;
1806 }
1807
1808
1809
1810
1811 public Boolean isFormatOnType() {
1812 return (Boolean) (has("formatOnType") ? get("formatOnType") : null);
1813 }
1814
1815
1816
1817
1818
1819 public DiffEditorOptions setFormatOnType(final Boolean formatOnType) {
1820 put("formatOnType", formatOnType);
1821 return this;
1822 }
1823
1824
1825
1826
1827
1828 public Boolean isGlyphMargin() {
1829 return (Boolean) (has("glyphMargin") ? get("glyphMargin") : null);
1830 }
1831
1832
1833
1834
1835
1836
1837 public DiffEditorOptions setGlyphMargin(final Boolean glyphMargin) {
1838 put("glyphMargin", glyphMargin);
1839 return this;
1840 }
1841
1842
1843
1844
1845 public Boolean isHideCursorInOverviewRuler() {
1846 return (Boolean) (has("hideCursorInOverviewRuler") ? get("hideCursorInOverviewRuler") : null);
1847 }
1848
1849
1850
1851
1852
1853 public DiffEditorOptions setHideCursorInOverviewRuler(final Boolean hideCursorInOverviewRuler) {
1854 put("hideCursorInOverviewRuler", hideCursorInOverviewRuler);
1855 return this;
1856 }
1857
1858
1859
1860
1861
1862 public Boolean isInlineCompletionsAccessibilityVerbose() {
1863 return (Boolean) (has("inlineCompletionsAccessibilityVerbose") ? get("inlineCompletionsAccessibilityVerbose") : null);
1864 }
1865
1866
1867
1868
1869
1870
1871 public DiffEditorOptions setInlineCompletionsAccessibilityVerbose(final Boolean inlineCompletionsAccessibilityVerbose) {
1872 put("inlineCompletionsAccessibilityVerbose", inlineCompletionsAccessibilityVerbose);
1873 return this;
1874 }
1875
1876
1877
1878
1879 public Boolean isLargeFileOptimizations() {
1880 return (Boolean) (has("largeFileOptimizations") ? get("largeFileOptimizations") : null);
1881 }
1882
1883
1884
1885
1886
1887
1888 public DiffEditorOptions setLargeFileOptimizations(final Boolean largeFileOptimizations) {
1889 put("largeFileOptimizations", largeFileOptimizations);
1890 return this;
1891 }
1892
1893
1894
1895
1896 public Boolean isLinkedEditing() {
1897 return (Boolean) (has("linkedEditing") ? get("linkedEditing") : null);
1898 }
1899
1900
1901
1902
1903
1904 public DiffEditorOptions setLinkedEditing(final Boolean linkedEditing) {
1905 put("linkedEditing", linkedEditing);
1906 return this;
1907 }
1908
1909
1910
1911
1912 public Boolean isLinks() {
1913 return (Boolean) (has("links") ? get("links") : null);
1914 }
1915
1916
1917
1918
1919
1920 public DiffEditorOptions setLinks(final Boolean links) {
1921 put("links", links);
1922 return this;
1923 }
1924
1925
1926
1927
1928 public Boolean isMatchOnWordStartOnly() {
1929 return (Boolean) (has("matchOnWordStartOnly") ? get("matchOnWordStartOnly") : null);
1930 }
1931
1932
1933
1934
1935
1936
1937 public DiffEditorOptions setMatchOnWordStartOnly(final Boolean matchOnWordStartOnly) {
1938 put("matchOnWordStartOnly", matchOnWordStartOnly);
1939 return this;
1940 }
1941
1942
1943
1944
1945
1946 public Boolean isMouseWheelZoom() {
1947 return (Boolean) (has("mouseWheelZoom") ? get("mouseWheelZoom") : null);
1948 }
1949
1950
1951
1952
1953
1954
1955 public DiffEditorOptions setMouseWheelZoom(final Boolean mouseWheelZoom) {
1956 put("mouseWheelZoom", mouseWheelZoom);
1957 return this;
1958 }
1959
1960
1961
1962
1963 public Boolean isMultiCursorMergeOverlapping() {
1964 return (Boolean) (has("multiCursorMergeOverlapping") ? get("multiCursorMergeOverlapping") : null);
1965 }
1966
1967
1968
1969
1970
1971 public DiffEditorOptions setMultiCursorMergeOverlapping(final Boolean multiCursorMergeOverlapping) {
1972 put("multiCursorMergeOverlapping", multiCursorMergeOverlapping);
1973 return this;
1974 }
1975
1976
1977
1978
1979 public Boolean isOverviewRulerBorder() {
1980 return (Boolean) (has("overviewRulerBorder") ? get("overviewRulerBorder") : null);
1981 }
1982
1983
1984
1985
1986
1987
1988 public DiffEditorOptions setOverviewRulerBorder(final Boolean overviewRulerBorder) {
1989 put("overviewRulerBorder", overviewRulerBorder);
1990 return this;
1991 }
1992
1993
1994
1995
1996 public Boolean isReadOnly() {
1997 return (Boolean) (has("readOnly") ? get("readOnly") : null);
1998 }
1999
2000
2001
2002
2003
2004 public DiffEditorOptions setReadOnly(final Boolean readOnly) {
2005 put("readOnly", readOnly);
2006 return this;
2007 }
2008
2009
2010
2011
2012
2013 @Deprecated
2014 public Boolean isRenameOnType() {
2015 return (Boolean) (has("renameOnType") ? get("renameOnType") : null);
2016 }
2017
2018
2019
2020
2021
2022
2023 @Deprecated
2024 public DiffEditorOptions setRenameOnType(final Boolean renameOnType) {
2025 put("renameOnType", renameOnType);
2026 return this;
2027 }
2028
2029
2030
2031
2032 public Boolean isRenderControlCharacters() {
2033 return (Boolean) (has("renderControlCharacters") ? get("renderControlCharacters") : null);
2034 }
2035
2036
2037
2038
2039
2040 public DiffEditorOptions setRenderControlCharacters(final Boolean renderControlCharacters) {
2041 put("renderControlCharacters", renderControlCharacters);
2042 return this;
2043 }
2044
2045
2046
2047
2048
2049 public Boolean isRenderLineHighlightOnlyWhenFocus() {
2050 return (Boolean) (has("renderLineHighlightOnlyWhenFocus") ? get("renderLineHighlightOnlyWhenFocus") : null);
2051 }
2052
2053
2054
2055
2056
2057
2058 public DiffEditorOptions setRenderLineHighlightOnlyWhenFocus(final Boolean renderLineHighlightOnlyWhenFocus) {
2059 put("renderLineHighlightOnlyWhenFocus", renderLineHighlightOnlyWhenFocus);
2060 return this;
2061 }
2062
2063
2064
2065
2066 public Boolean isRoundedSelection() {
2067 return (Boolean) (has("roundedSelection") ? get("roundedSelection") : null);
2068 }
2069
2070
2071
2072
2073
2074 public DiffEditorOptions setRoundedSelection(final Boolean roundedSelection) {
2075 put("roundedSelection", roundedSelection);
2076 return this;
2077 }
2078
2079
2080
2081
2082 public Boolean isScreenReaderAnnounceInlineSuggestion() {
2083 return (Boolean) (has("screenReaderAnnounceInlineSuggestion") ? get("screenReaderAnnounceInlineSuggestion") : null);
2084 }
2085
2086
2087
2088
2089
2090
2091 public DiffEditorOptions setScreenReaderAnnounceInlineSuggestion(final Boolean screenReaderAnnounceInlineSuggestion) {
2092 put("screenReaderAnnounceInlineSuggestion", screenReaderAnnounceInlineSuggestion);
2093 return this;
2094 }
2095
2096
2097
2098
2099 public Boolean isScrollBeyondLastLine() {
2100 return (Boolean) (has("scrollBeyondLastLine") ? get("scrollBeyondLastLine") : null);
2101 }
2102
2103
2104
2105
2106
2107
2108 public DiffEditorOptions setScrollBeyondLastLine(final Boolean scrollBeyondLastLine) {
2109 put("scrollBeyondLastLine", scrollBeyondLastLine);
2110 return this;
2111 }
2112
2113
2114
2115
2116
2117 public Boolean isScrollPredominantAxis() {
2118 return (Boolean) (has("scrollPredominantAxis") ? get("scrollPredominantAxis") : null);
2119 }
2120
2121
2122
2123
2124
2125
2126 public DiffEditorOptions setScrollPredominantAxis(final Boolean scrollPredominantAxis) {
2127 put("scrollPredominantAxis", scrollPredominantAxis);
2128 return this;
2129 }
2130
2131
2132
2133
2134 public Boolean isSelectOnLineNumbers() {
2135 return (Boolean) (has("selectOnLineNumbers") ? get("selectOnLineNumbers") : null);
2136 }
2137
2138
2139
2140
2141
2142
2143 public DiffEditorOptions setSelectOnLineNumbers(final Boolean selectOnLineNumbers) {
2144 put("selectOnLineNumbers", selectOnLineNumbers);
2145 return this;
2146 }
2147
2148
2149
2150
2151 public Boolean isSelectionClipboard() {
2152 return (Boolean) (has("selectionClipboard") ? get("selectionClipboard") : null);
2153 }
2154
2155
2156
2157
2158
2159 public DiffEditorOptions setSelectionClipboard(final Boolean selectionClipboard) {
2160 put("selectionClipboard", selectionClipboard);
2161 return this;
2162 }
2163
2164
2165
2166
2167 public Boolean isSelectionHighlight() {
2168 return (Boolean) (has("selectionHighlight") ? get("selectionHighlight") : null);
2169 }
2170
2171
2172
2173
2174
2175 public DiffEditorOptions setSelectionHighlight(final Boolean selectionHighlight) {
2176 put("selectionHighlight", selectionHighlight);
2177 return this;
2178 }
2179
2180
2181
2182
2183 public Boolean isShowDeprecated() {
2184 return (Boolean) (has("showDeprecated") ? get("showDeprecated") : null);
2185 }
2186
2187
2188
2189
2190
2191 public DiffEditorOptions setShowDeprecated(final Boolean showDeprecated) {
2192 put("showDeprecated", showDeprecated);
2193 return this;
2194 }
2195
2196
2197
2198
2199 public Boolean isShowUnused() {
2200 return (Boolean) (has("showUnused") ? get("showUnused") : null);
2201 }
2202
2203
2204
2205
2206
2207 public DiffEditorOptions setShowUnused(final Boolean showUnused) {
2208 put("showUnused", showUnused);
2209 return this;
2210 }
2211
2212
2213
2214
2215 public Boolean isSmoothScrolling() {
2216 return (Boolean) (has("smoothScrolling") ? get("smoothScrolling") : null);
2217 }
2218
2219
2220
2221
2222
2223 public DiffEditorOptions setSmoothScrolling(final Boolean smoothScrolling) {
2224 put("smoothScrolling", smoothScrolling);
2225 return this;
2226 }
2227
2228
2229
2230
2231
2232 public Boolean isStablePeek() {
2233 return (Boolean) (has("stablePeek") ? get("stablePeek") : null);
2234 }
2235
2236
2237
2238
2239
2240
2241 public DiffEditorOptions setStablePeek(final Boolean stablePeek) {
2242 put("stablePeek", stablePeek);
2243 return this;
2244 }
2245
2246
2247
2248
2249 public Boolean isSuggestOnTriggerCharacters() {
2250 return (Boolean) (has("suggestOnTriggerCharacters") ? get("suggestOnTriggerCharacters") : null);
2251 }
2252
2253
2254
2255
2256
2257
2258 public DiffEditorOptions setSuggestOnTriggerCharacters(final Boolean suggestOnTriggerCharacters) {
2259 put("suggestOnTriggerCharacters", suggestOnTriggerCharacters);
2260 return this;
2261 }
2262
2263
2264
2265
2266 public Boolean isTabFocusMode() {
2267 return (Boolean) (has("tabFocusMode") ? get("tabFocusMode") : null);
2268 }
2269
2270
2271
2272
2273
2274 public DiffEditorOptions setTabFocusMode(final Boolean tabFocusMode) {
2275 put("tabFocusMode", tabFocusMode);
2276 return this;
2277 }
2278
2279
2280
2281
2282
2283 public Boolean isUnfoldOnClickAfterEndOfLine() {
2284 return (Boolean) (has("unfoldOnClickAfterEndOfLine") ? get("unfoldOnClickAfterEndOfLine") : null);
2285 }
2286
2287
2288
2289
2290
2291
2292 public DiffEditorOptions setUnfoldOnClickAfterEndOfLine(final Boolean unfoldOnClickAfterEndOfLine) {
2293 put("unfoldOnClickAfterEndOfLine", unfoldOnClickAfterEndOfLine);
2294 return this;
2295 }
2296
2297
2298
2299
2300 public Boolean isUseShadowDOM() {
2301 return (Boolean) (has("useShadowDOM") ? get("useShadowDOM") : null);
2302 }
2303
2304
2305
2306
2307
2308 public DiffEditorOptions setUseShadowDOM(final Boolean useShadowDOM) {
2309 put("useShadowDOM", useShadowDOM);
2310 return this;
2311 }
2312
2313
2314
2315
2316 public Boolean isUseTabStops() {
2317 return (Boolean) (has("useTabStops") ? get("useTabStops") : null);
2318 }
2319
2320
2321
2322
2323
2324 public DiffEditorOptions setUseTabStops(final Boolean useTabStops) {
2325 put("useTabStops", useTabStops);
2326 return this;
2327 }
2328
2329
2330
2331
2332 public Boolean isWordWrapMinified() {
2333 return (Boolean) (has("wordWrapMinified") ? get("wordWrapMinified") : null);
2334 }
2335
2336
2337
2338
2339
2340
2341 public DiffEditorOptions setWordWrapMinified(final Boolean wordWrapMinified) {
2342 put("wordWrapMinified", wordWrapMinified);
2343 return this;
2344 }
2345
2346
2347
2348
2349 public Number getAccessibilityPageSize() {
2350 return (Number) (has("accessibilityPageSize") ? get("accessibilityPageSize") : null);
2351 }
2352
2353
2354
2355
2356
2357 public DiffEditorOptions setAccessibilityPageSize(final Number accessibilityPageSize) {
2358 put("accessibilityPageSize", accessibilityPageSize);
2359 return this;
2360 }
2361
2362
2363
2364
2365 public Number getCodeActionsOnSaveTimeout() {
2366 return (Number) (has("codeActionsOnSaveTimeout") ? get("codeActionsOnSaveTimeout") : null);
2367 }
2368
2369
2370
2371
2372
2373 public DiffEditorOptions setCodeActionsOnSaveTimeout(final Number codeActionsOnSaveTimeout) {
2374 put("codeActionsOnSaveTimeout", codeActionsOnSaveTimeout);
2375 return this;
2376 }
2377
2378
2379
2380
2381 public Number getCodeLensFontSize() {
2382 return (Number) (has("codeLensFontSize") ? get("codeLensFontSize") : null);
2383 }
2384
2385
2386
2387
2388
2389 public DiffEditorOptions setCodeLensFontSize(final Number codeLensFontSize) {
2390 put("codeLensFontSize", codeLensFontSize);
2391 return this;
2392 }
2393
2394
2395
2396
2397
2398 public Number getCursorSurroundingLines() {
2399 return (Number) (has("cursorSurroundingLines") ? get("cursorSurroundingLines") : null);
2400 }
2401
2402
2403
2404
2405
2406
2407 public DiffEditorOptions setCursorSurroundingLines(final Number cursorSurroundingLines) {
2408 put("cursorSurroundingLines", cursorSurroundingLines);
2409 return this;
2410 }
2411
2412
2413
2414
2415 public Number getCursorWidth() {
2416 return (Number) (has("cursorWidth") ? get("cursorWidth") : null);
2417 }
2418
2419
2420
2421
2422
2423 public DiffEditorOptions setCursorWidth(final Number cursorWidth) {
2424 put("cursorWidth", cursorWidth);
2425 return this;
2426 }
2427
2428
2429
2430
2431 public Number getFastScrollSensitivity() {
2432 return (Number) (has("fastScrollSensitivity") ? get("fastScrollSensitivity") : null);
2433 }
2434
2435
2436
2437
2438
2439 public DiffEditorOptions setFastScrollSensitivity(final Number fastScrollSensitivity) {
2440 put("fastScrollSensitivity", fastScrollSensitivity);
2441 return this;
2442 }
2443
2444
2445
2446
2447 public Number getFoldingMaximumRegions() {
2448 return (Number) (has("foldingMaximumRegions") ? get("foldingMaximumRegions") : null);
2449 }
2450
2451
2452
2453
2454
2455 public DiffEditorOptions setFoldingMaximumRegions(final Number foldingMaximumRegions) {
2456 put("foldingMaximumRegions", foldingMaximumRegions);
2457 return this;
2458 }
2459
2460
2461
2462
2463 public Number getFontSize() {
2464 return (Number) (has("fontSize") ? get("fontSize") : null);
2465 }
2466
2467
2468
2469
2470
2471 public DiffEditorOptions setFontSize(final Number fontSize) {
2472 put("fontSize", fontSize);
2473 return this;
2474 }
2475
2476
2477
2478
2479 public Boolean isInDiffEditor() {
2480 return (Boolean) (has("inDiffEditor") ? get("inDiffEditor") : null);
2481 }
2482
2483
2484
2485
2486
2487 public DiffEditorOptions setInDiffEditor(final Boolean inDiffEditor) {
2488 put("inDiffEditor", inDiffEditor);
2489 return this;
2490 }
2491
2492
2493
2494
2495
2496 public Boolean isStickyTabStops() {
2497 return (Boolean) (has("stickyTabStops") ? get("stickyTabStops") : null);
2498 }
2499
2500
2501
2502
2503
2504
2505 public DiffEditorOptions setStickyTabStops(final Boolean stickyTabStops) {
2506 put("stickyTabStops", stickyTabStops);
2507 return this;
2508 }
2509
2510
2511
2512
2513 public Number getLetterSpacing() {
2514 return (Number) (has("letterSpacing") ? get("letterSpacing") : null);
2515 }
2516
2517
2518
2519
2520
2521 public DiffEditorOptions setLetterSpacing(final Number letterSpacing) {
2522 put("letterSpacing", letterSpacing);
2523 return this;
2524 }
2525
2526
2527
2528
2529 public Number getLineHeight() {
2530 return (Number) (has("lineHeight") ? get("lineHeight") : null);
2531 }
2532
2533
2534
2535
2536
2537 public DiffEditorOptions setLineHeight(final Number lineHeight) {
2538 put("lineHeight", lineHeight);
2539 return this;
2540 }
2541
2542
2543
2544
2545
2546
2547 public Number getLineNumbersMinChars() {
2548 return (Number) (has("lineNumbersMinChars") ? get("lineNumbersMinChars") : null);
2549 }
2550
2551
2552
2553
2554
2555
2556
2557
2558 public DiffEditorOptions setLineNumbersMinChars(final Number lineNumbersMinChars) {
2559 put("lineNumbersMinChars", lineNumbersMinChars);
2560 return this;
2561 }
2562
2563
2564
2565
2566
2567 public Number getMouseWheelScrollSensitivity() {
2568 return (Number) (has("mouseWheelScrollSensitivity") ? get("mouseWheelScrollSensitivity") : null);
2569 }
2570
2571
2572
2573
2574
2575
2576 public DiffEditorOptions setMouseWheelScrollSensitivity(final Number mouseWheelScrollSensitivity) {
2577 put("mouseWheelScrollSensitivity", mouseWheelScrollSensitivity);
2578 return this;
2579 }
2580
2581
2582
2583
2584 public Number getMultiCursorLimit() {
2585 return (Number) (has("multiCursorLimit") ? get("multiCursorLimit") : null);
2586 }
2587
2588
2589
2590
2591
2592 public DiffEditorOptions setMultiCursorLimit(final Number multiCursorLimit) {
2593 put("multiCursorLimit", multiCursorLimit);
2594 return this;
2595 }
2596
2597
2598
2599
2600 public Number getOverviewRulerLanes() {
2601 return (Number) (has("overviewRulerLanes") ? get("overviewRulerLanes") : null);
2602 }
2603
2604
2605
2606
2607
2608 public DiffEditorOptions setOverviewRulerLanes(final Number overviewRulerLanes) {
2609 put("overviewRulerLanes", overviewRulerLanes);
2610 return this;
2611 }
2612
2613
2614
2615
2616 public Number getQuickSuggestionsDelay() {
2617 return (Number) (has("quickSuggestionsDelay") ? get("quickSuggestionsDelay") : null);
2618 }
2619
2620
2621
2622
2623
2624 public DiffEditorOptions setQuickSuggestionsDelay(final Number quickSuggestionsDelay) {
2625 put("quickSuggestionsDelay", quickSuggestionsDelay);
2626 return this;
2627 }
2628
2629
2630
2631
2632
2633
2634 public Number getRevealHorizontalRightPadding() {
2635 return (Number) (has("revealHorizontalRightPadding") ? get("revealHorizontalRightPadding") : null);
2636 }
2637
2638
2639
2640
2641
2642
2643
2644 public DiffEditorOptions setRevealHorizontalRightPadding(final Number revealHorizontalRightPadding) {
2645 put("revealHorizontalRightPadding", revealHorizontalRightPadding);
2646 return this;
2647 }
2648
2649
2650
2651
2652 public Number getScrollBeyondLastColumn() {
2653 return (Number) (has("scrollBeyondLastColumn") ? get("scrollBeyondLastColumn") : null);
2654 }
2655
2656
2657
2658
2659
2660
2661 public DiffEditorOptions setScrollBeyondLastColumn(final Number scrollBeyondLastColumn) {
2662 put("scrollBeyondLastColumn", scrollBeyondLastColumn);
2663 return this;
2664 }
2665
2666
2667
2668
2669
2670 public Number getStopRenderingLineAfter() {
2671 return (Number) (has("stopRenderingLineAfter") ? get("stopRenderingLineAfter") : null);
2672 }
2673
2674
2675
2676
2677
2678
2679 public DiffEditorOptions setStopRenderingLineAfter(final Number stopRenderingLineAfter) {
2680 put("stopRenderingLineAfter", stopRenderingLineAfter);
2681 return this;
2682 }
2683
2684
2685
2686
2687 public Number getSuggestFontSize() {
2688 return (Number) (has("suggestFontSize") ? get("suggestFontSize") : null);
2689 }
2690
2691
2692
2693
2694
2695 public DiffEditorOptions setSuggestFontSize(final Number suggestFontSize) {
2696 put("suggestFontSize", suggestFontSize);
2697 return this;
2698 }
2699
2700
2701
2702
2703 public Number getSuggestLineHeight() {
2704 return (Number) (has("suggestLineHeight") ? get("suggestLineHeight") : null);
2705 }
2706
2707
2708
2709
2710
2711 public DiffEditorOptions setSuggestLineHeight(final Number suggestLineHeight) {
2712 put("suggestLineHeight", suggestLineHeight);
2713 return this;
2714 }
2715
2716
2717
2718
2719 public Number getTabIndex() {
2720 return (Number) (has("tabIndex") ? get("tabIndex") : null);
2721 }
2722
2723
2724
2725
2726
2727 public DiffEditorOptions setTabIndex(final Number tabIndex) {
2728 put("tabIndex", tabIndex);
2729 return this;
2730 }
2731
2732
2733
2734
2735
2736
2737
2738 public Number getWordWrapColumn() {
2739 return (Number) (has("wordWrapColumn") ? get("wordWrapColumn") : null);
2740 }
2741
2742
2743
2744
2745
2746
2747
2748
2749 public DiffEditorOptions setWordWrapColumn(final Number wordWrapColumn) {
2750 put("wordWrapColumn", wordWrapColumn);
2751 return this;
2752 }
2753
2754 public String getLineDecorationsWidth() {
2755 return (String) (has("lineDecorationsWidth") ? get("lineDecorationsWidth") : null);
2756 }
2757
2758 public DiffEditorOptions setLineDecorationsWidth(final Number lineDecorationsWidth) {
2759 put("lineDecorationsWidth", lineDecorationsWidth != null ? lineDecorationsWidth.toString() + "px" : null);
2760 return this;
2761 }
2762
2763 public DiffEditorOptions setLineDecorationsWidth(final String lineDecorationsWidth) {
2764 put("lineDecorationsWidth", lineDecorationsWidth);
2765 return this;
2766 }
2767
2768
2769
2770
2771 public String getAriaLabel() {
2772 return (String) (has("ariaLabel") ? get("ariaLabel") : null);
2773 }
2774
2775
2776
2777
2778
2779 public DiffEditorOptions setAriaLabel(final String ariaLabel) {
2780 put("ariaLabel", ariaLabel);
2781 return this;
2782 }
2783
2784
2785
2786
2787 public String getCodeLensFontFamily() {
2788 return (String) (has("codeLensFontFamily") ? get("codeLensFontFamily") : null);
2789 }
2790
2791
2792
2793
2794
2795 public DiffEditorOptions setCodeLensFontFamily(final String codeLensFontFamily) {
2796 put("codeLensFontFamily", codeLensFontFamily);
2797 return this;
2798 }
2799
2800
2801
2802
2803 public String getExtraEditorClassName() {
2804 return (String) (has("extraEditorClassName") ? get("extraEditorClassName") : null);
2805 }
2806
2807
2808
2809
2810
2811 public DiffEditorOptions setExtraEditorClassName(final String extraEditorClassName) {
2812 put("extraEditorClassName", extraEditorClassName);
2813 return this;
2814 }
2815
2816
2817
2818
2819 public String getFontFamily() {
2820 return (String) (has("fontFamily") ? get("fontFamily") : null);
2821 }
2822
2823
2824
2825
2826
2827 public DiffEditorOptions setFontFamily(final String fontFamily) {
2828 put("fontFamily", fontFamily);
2829 return this;
2830 }
2831
2832
2833
2834
2835 public String getPlaceholder() {
2836 return (String) (has("placeholder") ? get("placeholder") : null);
2837 }
2838
2839
2840
2841
2842
2843 public DiffEditorOptions setPlaceholder(final String placeholder) {
2844 put("placeholder", placeholder);
2845 return this;
2846 }
2847
2848
2849
2850
2851
2852
2853 public JSONArray getWordSegmenterLocales() {
2854 return (JSONArray) (has("wordSegmenterLocales") ? get("wordSegmenterLocales") : null);
2855 }
2856
2857
2858
2859
2860
2861
2862
2863 public DiffEditorOptions setWordSegmenterLocales(final JSONArray wordSegmenterLocales) {
2864 put("wordSegmenterLocales", wordSegmenterLocales);
2865 return this;
2866 }
2867
2868
2869
2870
2871
2872
2873 public DiffEditorOptions addWordSegmenterLocale(final String ... items) {
2874 JSONArray x = getWordSegmenterLocales();
2875 if (x == null) {
2876 x = new JSONArray();
2877 setWordSegmenterLocales(x);
2878 }
2879 for (String item : items) x.put(item);
2880 return this;
2881 }
2882
2883
2884
2885
2886
2887
2888
2889 public DiffEditorOptions setWordSegmenterLocales(final java.util.List<String> wordSegmenterLocales) {
2890 return setWordSegmenterLocales(new JSONArray(wordSegmenterLocales));
2891 }
2892
2893
2894
2895
2896
2897 public String getWordSeparators() {
2898 return (String) (has("wordSeparators") ? get("wordSeparators") : null);
2899 }
2900
2901
2902
2903
2904
2905
2906 public DiffEditorOptions setWordSeparators(final String wordSeparators) {
2907 put("wordSeparators", wordSeparators);
2908 return this;
2909 }
2910
2911
2912
2913
2914
2915 public String getWordWrapBreakAfterCharacters() {
2916 return (String) (has("wordWrapBreakAfterCharacters") ? get("wordWrapBreakAfterCharacters") : null);
2917 }
2918
2919
2920
2921
2922
2923
2924 public DiffEditorOptions setWordWrapBreakAfterCharacters(final String wordWrapBreakAfterCharacters) {
2925 put("wordWrapBreakAfterCharacters", wordWrapBreakAfterCharacters);
2926 return this;
2927 }
2928
2929
2930
2931
2932
2933 public String getWordWrapBreakBeforeCharacters() {
2934 return (String) (has("wordWrapBreakBeforeCharacters") ? get("wordWrapBreakBeforeCharacters") : null);
2935 }
2936
2937
2938
2939
2940
2941
2942 public DiffEditorOptions setWordWrapBreakBeforeCharacters(final String wordWrapBreakBeforeCharacters) {
2943 put("wordWrapBreakBeforeCharacters", wordWrapBreakBeforeCharacters);
2944 return this;
2945 }
2946
2947
2948
2949
2950 public EditorDimension getDimension() {
2951 return (EditorDimension) (has("dimension") ? get("dimension") : null);
2952 }
2953
2954
2955
2956
2957
2958 public DiffEditorOptions setDimension(final EditorDimension dimension) {
2959 put("dimension", dimension);
2960 return this;
2961 }
2962
2963
2964
2965
2966 public EditorHideUnchangedRegions getHideUnchangedRegions() {
2967 return (EditorHideUnchangedRegions) (has("hideUnchangedRegions") ? get("hideUnchangedRegions") : null);
2968 }
2969
2970
2971
2972
2973
2974 public DiffEditorOptions setHideUnchangedRegions(final EditorHideUnchangedRegions hideUnchangedRegions) {
2975 put("hideUnchangedRegions", hideUnchangedRegions);
2976 return this;
2977 }
2978
2979
2980
2981
2982 public String getDiffAlgorithm() {
2983 return (String) (has("diffAlgorithm") ? get("diffAlgorithm") : null);
2984 }
2985
2986
2987
2988
2989
2990 public DiffEditorOptions setDiffAlgorithm(final EDiffAlgorithm diffAlgorithm) {
2991 put("diffAlgorithm", diffAlgorithm != null ? diffAlgorithm.toString() : null);
2992 return this;
2993 }
2994
2995
2996
2997
2998
2999 public DiffEditorOptions setDiffAlgorithm(final String diffAlgorithm) {
3000 put("diffAlgorithm", diffAlgorithm);
3001 return this;
3002 }
3003
3004
3005
3006
3007 public String getDiffWordWrap() {
3008 return (String) (has("diffWordWrap") ? get("diffWordWrap") : null);
3009 }
3010
3011
3012
3013
3014
3015 public DiffEditorOptions setDiffWordWrap(final EDiffWordWrap diffWordWrap) {
3016 put("diffWordWrap", diffWordWrap != null ? diffWordWrap.toString() : null);
3017 return this;
3018 }
3019
3020
3021
3022
3023
3024 public DiffEditorOptions setDiffWordWrap(final String diffWordWrap) {
3025 put("diffWordWrap", diffWordWrap);
3026 return this;
3027 }
3028
3029
3030
3031
3032
3033
3034 public String getTheme() {
3035 return (String) (has("theme") ? get("theme") : null);
3036 }
3037
3038
3039
3040
3041
3042
3043
3044 public DiffEditorOptions setTheme(final ETheme theme) {
3045 put("theme", theme != null ? theme.toString() : null);
3046 return this;
3047 }
3048
3049
3050
3051
3052
3053
3054
3055 public DiffEditorOptions setTheme(final String theme) {
3056 put("theme", theme);
3057 return this;
3058 }
3059
3060
3061
3062
3063 public Boolean isAccessibilityVerbose() {
3064 return (Boolean) (has("accessibilityVerbose") ? get("accessibilityVerbose") : null);
3065 }
3066
3067
3068
3069
3070
3071 public DiffEditorOptions setAccessibilityVerbose(final Boolean accessibilityVerbose) {
3072 put("accessibilityVerbose", accessibilityVerbose);
3073 return this;
3074 }
3075
3076
3077
3078
3079 public Boolean isCompactMode() {
3080 return (Boolean) (has("compactMode") ? get("compactMode") : null);
3081 }
3082
3083
3084
3085
3086
3087 public DiffEditorOptions setCompactMode(final Boolean compactMode) {
3088 put("compactMode", compactMode);
3089 return this;
3090 }
3091
3092
3093
3094
3095 public Boolean isDiffCodeLens() {
3096 return (Boolean) (has("diffCodeLens") ? get("diffCodeLens") : null);
3097 }
3098
3099
3100
3101
3102
3103 public DiffEditorOptions setDiffCodeLens(final Boolean diffCodeLens) {
3104 put("diffCodeLens", diffCodeLens);
3105 return this;
3106 }
3107
3108
3109
3110
3111 public Boolean isEnableSplitViewResizing() {
3112 return (Boolean) (has("enableSplitViewResizing") ? get("enableSplitViewResizing") : null);
3113 }
3114
3115
3116
3117
3118
3119 public DiffEditorOptions setEnableSplitViewResizing(final Boolean enableSplitViewResizing) {
3120 put("enableSplitViewResizing", enableSplitViewResizing);
3121 return this;
3122 }
3123
3124
3125
3126
3127 public Boolean isIgnoreTrimWhitespace() {
3128 return (Boolean) (has("ignoreTrimWhitespace") ? get("ignoreTrimWhitespace") : null);
3129 }
3130
3131
3132
3133
3134
3135 public DiffEditorOptions setIgnoreTrimWhitespace(final Boolean ignoreTrimWhitespace) {
3136 put("ignoreTrimWhitespace", ignoreTrimWhitespace);
3137 return this;
3138 }
3139
3140
3141
3142
3143 public Boolean isOnlyShowAccessibleDiffViewer() {
3144 return (Boolean) (has("onlyShowAccessibleDiffViewer") ? get("onlyShowAccessibleDiffViewer") : null);
3145 }
3146
3147
3148
3149
3150
3151 public DiffEditorOptions setOnlyShowAccessibleDiffViewer(final Boolean onlyShowAccessibleDiffViewer) {
3152 put("onlyShowAccessibleDiffViewer", onlyShowAccessibleDiffViewer);
3153 return this;
3154 }
3155
3156
3157
3158
3159 public Boolean isRenderGutterMenu() {
3160 return (Boolean) (has("renderGutterMenu") ? get("renderGutterMenu") : null);
3161 }
3162
3163
3164
3165
3166
3167 public DiffEditorOptions setRenderGutterMenu(final Boolean renderGutterMenu) {
3168 put("renderGutterMenu", renderGutterMenu);
3169 return this;
3170 }
3171
3172
3173
3174
3175 public Boolean isRenderIndicators() {
3176 return (Boolean) (has("renderIndicators") ? get("renderIndicators") : null);
3177 }
3178
3179
3180
3181
3182
3183 public DiffEditorOptions setRenderIndicators(final Boolean renderIndicators) {
3184 put("renderIndicators", renderIndicators);
3185 return this;
3186 }
3187
3188
3189
3190
3191 public Boolean isRenderMarginRevertIcon() {
3192 return (Boolean) (has("renderMarginRevertIcon") ? get("renderMarginRevertIcon") : null);
3193 }
3194
3195
3196
3197
3198
3199 public DiffEditorOptions setRenderMarginRevertIcon(final Boolean renderMarginRevertIcon) {
3200 put("renderMarginRevertIcon", renderMarginRevertIcon);
3201 return this;
3202 }
3203
3204
3205
3206
3207 public Boolean isRenderOverviewRuler() {
3208 return (Boolean) (has("renderOverviewRuler") ? get("renderOverviewRuler") : null);
3209 }
3210
3211
3212
3213
3214
3215 public DiffEditorOptions setRenderOverviewRuler(final Boolean renderOverviewRuler) {
3216 put("renderOverviewRuler", renderOverviewRuler);
3217 return this;
3218 }
3219
3220
3221
3222
3223 public Boolean isRenderSideBySide() {
3224 return (Boolean) (has("renderSideBySide") ? get("renderSideBySide") : null);
3225 }
3226
3227
3228
3229
3230
3231 public DiffEditorOptions setRenderSideBySide(final Boolean renderSideBySide) {
3232 put("renderSideBySide", renderSideBySide);
3233 return this;
3234 }
3235
3236
3237
3238
3239
3240 public Boolean isUseInlineViewWhenSpaceIsLimited() {
3241 return (Boolean) (has("useInlineViewWhenSpaceIsLimited") ? get("useInlineViewWhenSpaceIsLimited") : null);
3242 }
3243
3244
3245
3246
3247
3248
3249
3250 public DiffEditorOptions setUseInlineViewWhenSpaceIsLimited(final Boolean useInlineViewWhenSpaceIsLimited) {
3251 put("useInlineViewWhenSpaceIsLimited", useInlineViewWhenSpaceIsLimited);
3252 return this;
3253 }
3254
3255
3256
3257
3258 public Number getMaxComputationTime() {
3259 return (Number) (has("maxComputationTime") ? get("maxComputationTime") : null);
3260 }
3261
3262
3263
3264
3265
3266
3267 public DiffEditorOptions setMaxComputationTime(final Number maxComputationTime) {
3268 put("maxComputationTime", maxComputationTime);
3269 return this;
3270 }
3271
3272
3273
3274
3275 public Number getMaxFileSize() {
3276 return (Number) (has("maxFileSize") ? get("maxFileSize") : null);
3277 }
3278
3279
3280
3281
3282
3283 public DiffEditorOptions setMaxFileSize(final Number maxFileSize) {
3284 put("maxFileSize", maxFileSize);
3285 return this;
3286 }
3287
3288
3289
3290
3291
3292 public Number getRenderSideBySideInlineBreakpoint() {
3293 return (Number) (has("renderSideBySideInlineBreakpoint") ? get("renderSideBySideInlineBreakpoint") : null);
3294 }
3295
3296
3297
3298
3299
3300
3301
3302 public DiffEditorOptions setRenderSideBySideInlineBreakpoint(final Number renderSideBySideInlineBreakpoint) {
3303 put("renderSideBySideInlineBreakpoint", renderSideBySideInlineBreakpoint);
3304 return this;
3305 }
3306
3307
3308
3309
3310
3311 public Number getSplitViewDefaultRatio() {
3312 return (Number) (has("splitViewDefaultRatio") ? get("splitViewDefaultRatio") : null);
3313 }
3314
3315
3316
3317
3318
3319
3320 public DiffEditorOptions setSplitViewDefaultRatio(final Number splitViewDefaultRatio) {
3321 put("splitViewDefaultRatio", splitViewDefaultRatio);
3322 return this;
3323 }
3324
3325
3326
3327
3328 public String getModifiedAriaLabel() {
3329 return (String) (has("modifiedAriaLabel") ? get("modifiedAriaLabel") : null);
3330 }
3331
3332
3333
3334
3335
3336 public DiffEditorOptions setModifiedAriaLabel(final String modifiedAriaLabel) {
3337 put("modifiedAriaLabel", modifiedAriaLabel);
3338 return this;
3339 }
3340
3341
3342
3343
3344 public String getOriginalAriaLabel() {
3345 return (String) (has("originalAriaLabel") ? get("originalAriaLabel") : null);
3346 }
3347
3348
3349
3350
3351
3352 public DiffEditorOptions setOriginalAriaLabel(final String originalAriaLabel) {
3353 put("originalAriaLabel", originalAriaLabel);
3354 return this;
3355 }
3356
3357
3358
3359
3360 JSONObject getJSONObject() {
3361 return this;
3362 }
3363 }