Lines 101-106
Link Here
|
101 |
); |
101 |
); |
102 |
} |
102 |
} |
103 |
public void testBug027079a1() throws JavaModelException { |
103 |
public void testBug027079a1() throws JavaModelException { |
|
|
104 |
this.formatterPrefs.use_tags = true; |
104 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
105 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
105 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
106 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
106 |
String source = |
107 |
String source = |
Lines 130-135
Link Here
|
130 |
); |
131 |
); |
131 |
} |
132 |
} |
132 |
public void testBug027079a2() throws JavaModelException { |
133 |
public void testBug027079a2() throws JavaModelException { |
|
|
134 |
this.formatterPrefs.use_tags = true; |
133 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
135 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
134 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
136 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
135 |
String source = |
137 |
String source = |
Lines 159-164
Link Here
|
159 |
); |
161 |
); |
160 |
} |
162 |
} |
161 |
public void testBug027079a3() throws JavaModelException { |
163 |
public void testBug027079a3() throws JavaModelException { |
|
|
164 |
this.formatterPrefs.use_tags = true; |
162 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
165 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
163 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
166 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
164 |
String source = |
167 |
String source = |
Lines 188-193
Link Here
|
188 |
); |
191 |
); |
189 |
} |
192 |
} |
190 |
public void testBug027079a4() throws JavaModelException { |
193 |
public void testBug027079a4() throws JavaModelException { |
|
|
194 |
this.formatterPrefs.use_tags = true; |
191 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
195 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
192 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
196 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
193 |
String source = |
197 |
String source = |
Lines 218-223
Link Here
|
218 |
); |
222 |
); |
219 |
} |
223 |
} |
220 |
public void testBug027079b() throws JavaModelException { |
224 |
public void testBug027079b() throws JavaModelException { |
|
|
225 |
this.formatterPrefs.use_tags = true; |
221 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
226 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
222 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
227 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
223 |
String source = |
228 |
String source = |
Lines 256-261
Link Here
|
256 |
); |
261 |
); |
257 |
} |
262 |
} |
258 |
public void testBug027079c() throws JavaModelException { |
263 |
public void testBug027079c() throws JavaModelException { |
|
|
264 |
this.formatterPrefs.use_tags = true; |
259 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
265 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
260 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
266 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
261 |
String source = |
267 |
String source = |
Lines 305-310
Link Here
|
305 |
); |
311 |
); |
306 |
} |
312 |
} |
307 |
public void testBug027079c2() throws JavaModelException { |
313 |
public void testBug027079c2() throws JavaModelException { |
|
|
314 |
this.formatterPrefs.use_tags = true; |
308 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
315 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
309 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
316 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
310 |
String source = |
317 |
String source = |
Lines 352-357
Link Here
|
352 |
); |
359 |
); |
353 |
} |
360 |
} |
354 |
public void testBug027079d() throws JavaModelException { |
361 |
public void testBug027079d() throws JavaModelException { |
|
|
362 |
this.formatterPrefs.use_tags = true; |
355 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
363 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
356 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
364 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
357 |
String source = |
365 |
String source = |
Lines 386-391
Link Here
|
386 |
true/*repeat*/); |
394 |
true/*repeat*/); |
387 |
} |
395 |
} |
388 |
public void testBug027079d2() throws JavaModelException { |
396 |
public void testBug027079d2() throws JavaModelException { |
|
|
397 |
this.formatterPrefs.use_tags = true; |
389 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
398 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
390 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
399 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
391 |
String source = |
400 |
String source = |
Lines 420-425
Link Here
|
420 |
true/*repeat*/); |
429 |
true/*repeat*/); |
421 |
} |
430 |
} |
422 |
public void testBug027079d3() throws JavaModelException { |
431 |
public void testBug027079d3() throws JavaModelException { |
|
|
432 |
this.formatterPrefs.use_tags = true; |
423 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
433 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
424 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
434 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
425 |
String source = |
435 |
String source = |
Lines 454-459
Link Here
|
454 |
true/*repeat*/); |
464 |
true/*repeat*/); |
455 |
} |
465 |
} |
456 |
public void testBug027079d4() throws JavaModelException { |
466 |
public void testBug027079d4() throws JavaModelException { |
|
|
467 |
this.formatterPrefs.use_tags = true; |
457 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
468 |
this.formatterPrefs.disabling_tag = "disable-formatter".toCharArray(); |
458 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
469 |
this.formatterPrefs.enabling_tag = "enable-formatter".toCharArray(); |
459 |
String source = |
470 |
String source = |
Lines 488-493
Link Here
|
488 |
true/*repeat*/); |
499 |
true/*repeat*/); |
489 |
} |
500 |
} |
490 |
public void testBug027079e() throws JavaModelException { |
501 |
public void testBug027079e() throws JavaModelException { |
|
|
502 |
this.formatterPrefs.use_tags = true; |
491 |
this.formatterPrefs.disabling_tag = "format: off".toCharArray(); |
503 |
this.formatterPrefs.disabling_tag = "format: off".toCharArray(); |
492 |
this.formatterPrefs.enabling_tag = "format: on".toCharArray(); |
504 |
this.formatterPrefs.enabling_tag = "format: on".toCharArray(); |
493 |
String source = |
505 |
String source = |
Lines 517-522
Link Here
|
517 |
); |
529 |
); |
518 |
} |
530 |
} |
519 |
public void testBug027079f() throws JavaModelException { |
531 |
public void testBug027079f() throws JavaModelException { |
|
|
532 |
this.formatterPrefs.use_tags = true; |
520 |
this.formatterPrefs.disabling_tag = "format: off".toCharArray(); |
533 |
this.formatterPrefs.disabling_tag = "format: off".toCharArray(); |
521 |
this.formatterPrefs.enabling_tag = "format: on".toCharArray(); |
534 |
this.formatterPrefs.enabling_tag = "format: on".toCharArray(); |
522 |
String source = |
535 |
String source = |
Lines 546-551
Link Here
|
546 |
); |
559 |
); |
547 |
} |
560 |
} |
548 |
public void testBug027079f2() throws JavaModelException { |
561 |
public void testBug027079f2() throws JavaModelException { |
|
|
562 |
this.formatterPrefs.use_tags = true; |
549 |
this.formatterPrefs.disabling_tag = "format: off".toCharArray(); |
563 |
this.formatterPrefs.disabling_tag = "format: off".toCharArray(); |
550 |
this.formatterPrefs.enabling_tag = "format: on".toCharArray(); |
564 |
this.formatterPrefs.enabling_tag = "format: on".toCharArray(); |
551 |
String source = |
565 |
String source = |
Lines 575-580
Link Here
|
575 |
); |
589 |
); |
576 |
} |
590 |
} |
577 |
public void testBug027079f3() throws JavaModelException { |
591 |
public void testBug027079f3() throws JavaModelException { |
|
|
592 |
this.formatterPrefs.use_tags = true; |
578 |
this.formatterPrefs.disabling_tag = " format: off ".toCharArray(); |
593 |
this.formatterPrefs.disabling_tag = " format: off ".toCharArray(); |
579 |
this.formatterPrefs.enabling_tag = " format: on ".toCharArray(); |
594 |
this.formatterPrefs.enabling_tag = " format: on ".toCharArray(); |
580 |
String source = |
595 |
String source = |
Lines 604-609
Link Here
|
604 |
); |
619 |
); |
605 |
} |
620 |
} |
606 |
public void testBug027079f4() throws JavaModelException { |
621 |
public void testBug027079f4() throws JavaModelException { |
|
|
622 |
this.formatterPrefs.use_tags = true; |
607 |
this.formatterPrefs.disabling_tag = " format: off ".toCharArray(); |
623 |
this.formatterPrefs.disabling_tag = " format: off ".toCharArray(); |
608 |
this.formatterPrefs.enabling_tag = " format: on ".toCharArray(); |
624 |
this.formatterPrefs.enabling_tag = " format: on ".toCharArray(); |
609 |
String source = |
625 |
String source = |
Lines 5839-5844
Link Here
|
5839 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=304529" |
5855 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=304529" |
5840 |
*/ |
5856 |
*/ |
5841 |
public void testBug304529() { |
5857 |
public void testBug304529() { |
|
|
5858 |
this.formatterPrefs.use_tags = true; |
5842 |
this.formatterPrefs.disabling_tag = "off".toCharArray(); |
5859 |
this.formatterPrefs.disabling_tag = "off".toCharArray(); |
5843 |
this.formatterPrefs.enabling_tag = null; |
5860 |
this.formatterPrefs.enabling_tag = null; |
5844 |
String source = |
5861 |
String source = |
Lines 5851-5856
Link Here
|
5851 |
formatSource(source); |
5868 |
formatSource(source); |
5852 |
} |
5869 |
} |
5853 |
public void testBug304529b() { |
5870 |
public void testBug304529b() { |
|
|
5871 |
this.formatterPrefs.use_tags = true; |
5854 |
this.formatterPrefs.disabling_tag = null; |
5872 |
this.formatterPrefs.disabling_tag = null; |
5855 |
this.formatterPrefs.enabling_tag = "on".toCharArray(); |
5873 |
this.formatterPrefs.enabling_tag = "on".toCharArray(); |
5856 |
String source = |
5874 |
String source = |
Lines 5871-5876
Link Here
|
5871 |
} |
5889 |
} |
5872 |
public void testBug304529c() { |
5890 |
public void testBug304529c() { |
5873 |
this.formatterPrefs = null; |
5891 |
this.formatterPrefs = null; |
|
|
5892 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_USE_ON_OFF_TAGS, DefaultCodeFormatterConstants.TRUE); |
5874 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_DISABLING_TAG, "off"); |
5893 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_DISABLING_TAG, "off"); |
5875 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_ENABLING_TAG, ""); |
5894 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_ENABLING_TAG, ""); |
5876 |
String source = |
5895 |
String source = |
Lines 5884-5889
Link Here
|
5884 |
} |
5903 |
} |
5885 |
public void testBug304529d() { |
5904 |
public void testBug304529d() { |
5886 |
this.formatterPrefs = null; |
5905 |
this.formatterPrefs = null; |
|
|
5906 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_USE_ON_OFF_TAGS, DefaultCodeFormatterConstants.TRUE); |
5887 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_DISABLING_TAG, ""); |
5907 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_DISABLING_TAG, ""); |
5888 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_ENABLING_TAG, "on"); |
5908 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_ENABLING_TAG, "on"); |
5889 |
String source = |
5909 |
String source = |
Lines 5904-5909
Link Here
|
5904 |
} |
5924 |
} |
5905 |
public void testBug304529e() { |
5925 |
public void testBug304529e() { |
5906 |
this.formatterPrefs = null; |
5926 |
this.formatterPrefs = null; |
|
|
5927 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_USE_ON_OFF_TAGS, DefaultCodeFormatterConstants.TRUE); |
5907 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_DISABLING_TAG, "off"); |
5928 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_DISABLING_TAG, "off"); |
5908 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_ENABLING_TAG, "on"); |
5929 |
this.formatterOptions.put(DefaultCodeFormatterConstants.FORMATTER_ENABLING_TAG, "on"); |
5909 |
String source = |
5930 |
String source = |