File tree Expand file tree Collapse file tree 8 files changed +3
-45
lines changed
examples/org.eclipse.swt.examples
src/org/eclipse/swt/examples Expand file tree Collapse file tree 8 files changed +3
-45
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Manifest-Version: 1.0
2
2
Bundle-ManifestVersion : 2
3
3
Bundle-Name : %plugin.SWTStandaloneExampleSet.name
4
4
Bundle-SymbolicName : org.eclipse.swt.examples; singleton:=true
5
- Bundle-Version : 3.107.0 .qualifier
5
+ Bundle-Version : 3.107.100 .qualifier
6
6
Bundle-Vendor : %providerName
7
7
Bundle-Localization : plugin
8
8
Bundle-RequiredExecutionEnvironment : JavaSE-11
Original file line number Diff line number Diff line change 19
19
</parent >
20
20
<groupId >org.eclipse.swt</groupId >
21
21
<artifactId >org.eclipse.swt.examples</artifactId >
22
- <version >3.107.0 -SNAPSHOT</version >
22
+ <version >3.107.100 -SNAPSHOT</version >
23
23
<packaging >eclipse-plugin</packaging >
24
24
</project >
Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2000, 2016 IBM Corporation and others.
2
+ * Copyright (c) 2000, 2021 IBM Corporation and others.
3
3
*
4
4
* This program and the accompanying materials
5
5
* are made available under the terms of the Eclipse Public License 2.0
@@ -393,23 +393,16 @@ public void showList(CTabFolderEvent event) {
393
393
@ Override
394
394
void resetColorsAndFonts () {
395
395
super .resetColorsAndFonts ();
396
- Color oldColor = selectionForegroundColor ;
397
396
selectionForegroundColor = null ;
398
397
setSelectionForeground ();
399
- if (oldColor != null ) oldColor .dispose ();
400
- oldColor = selectionBackgroundColor ;
401
398
selectionBackgroundColor = null ;
402
399
setSelectionBackground ();
403
- if (oldColor != null ) oldColor .dispose ();
404
400
Font oldFont = itemFont ;
405
401
itemFont = null ;
406
402
setItemFont ();
407
403
if (oldFont != null ) oldFont .dispose ();
408
- oldColor = itemForegroundColor ;
409
404
itemForegroundColor = null ;
410
405
setItemForeground ();
411
- if (oldColor != null ) oldColor .dispose ();
412
- oldColor = itemBackgroundColor ;
413
406
itemBackgroundColor = null ;
414
407
setItemBackground ();
415
408
}
Original file line number Diff line number Diff line change @@ -128,10 +128,8 @@ void setLinkForeground () {
128
128
@ Override
129
129
void resetColorsAndFonts () {
130
130
super .resetColorsAndFonts ();
131
- Color oldColor = linkForegroundColor ;
132
131
linkForegroundColor = null ;
133
132
setLinkForeground ();
134
- if (oldColor != null ) oldColor .dispose ();
135
133
}
136
134
137
135
@ Override
Original file line number Diff line number Diff line change @@ -1622,14 +1622,10 @@ void recreateExampleWidgets () {
1622
1622
* and fonts to default settings as well.
1623
1623
*/
1624
1624
void resetColorsAndFonts () {
1625
- Color oldColor = foregroundColor ;
1626
1625
foregroundColor = null ;
1627
1626
setExampleWidgetForeground ();
1628
- if (oldColor != null ) oldColor .dispose ();
1629
- oldColor = backgroundColor ;
1630
1627
backgroundColor = null ;
1631
1628
setExampleWidgetBackground ();
1632
- if (oldColor != null ) oldColor .dispose ();
1633
1629
Font oldFont = font ;
1634
1630
font = null ;
1635
1631
setExampleWidgetFont ();
Original file line number Diff line number Diff line change @@ -453,38 +453,26 @@ String getTabText () {
453
453
@ Override
454
454
void resetColorsAndFonts () {
455
455
super .resetColorsAndFonts ();
456
- Color oldColor = itemForegroundColor ;
457
456
itemForegroundColor = null ;
458
457
setItemForeground ();
459
- if (oldColor != null ) oldColor .dispose ();
460
- oldColor = itemBackgroundColor ;
461
458
itemBackgroundColor = null ;
462
459
setItemBackground ();
463
- if (oldColor != null ) oldColor .dispose ();
464
460
Font oldFont = font ;
465
461
itemFont = null ;
466
462
setItemFont ();
467
463
if (oldFont != null ) oldFont .dispose ();
468
- oldColor = cellForegroundColor ;
469
464
cellForegroundColor = null ;
470
465
setCellForeground ();
471
- if (oldColor != null ) oldColor .dispose ();
472
- oldColor = cellBackgroundColor ;
473
466
cellBackgroundColor = null ;
474
467
setCellBackground ();
475
- if (oldColor != null ) oldColor .dispose ();
476
468
oldFont = font ;
477
469
cellFont = null ;
478
470
setCellFont ();
479
471
if (oldFont != null ) oldFont .dispose ();
480
- oldColor = headerBackgroundColor ;
481
472
headerBackgroundColor = null ;
482
473
setHeaderBackground ();
483
- if (oldColor != null ) oldColor .dispose ();
484
- oldColor = headerForegroundColor ;
485
474
headerForegroundColor = null ;
486
475
setHeaderForeground ();
487
- if (oldColor != null ) oldColor .dispose ();
488
476
}
489
477
490
478
/**
Original file line number Diff line number Diff line change @@ -579,38 +579,26 @@ void setColumnsResizable () {
579
579
@ Override
580
580
void resetColorsAndFonts () {
581
581
super .resetColorsAndFonts ();
582
- Color oldColor = itemForegroundColor ;
583
582
itemForegroundColor = null ;
584
583
setItemForeground ();
585
- if (oldColor != null ) oldColor .dispose ();
586
- oldColor = itemBackgroundColor ;
587
584
itemBackgroundColor = null ;
588
585
setItemBackground ();
589
- if (oldColor != null ) oldColor .dispose ();
590
586
Font oldFont = font ;
591
587
itemFont = null ;
592
588
setItemFont ();
593
589
if (oldFont != null ) oldFont .dispose ();
594
- oldColor = cellForegroundColor ;
595
590
cellForegroundColor = null ;
596
591
setCellForeground ();
597
- if (oldColor != null ) oldColor .dispose ();
598
- oldColor = cellBackgroundColor ;
599
592
cellBackgroundColor = null ;
600
593
setCellBackground ();
601
- if (oldColor != null ) oldColor .dispose ();
602
594
oldFont = font ;
603
595
cellFont = null ;
604
596
setCellFont ();
605
597
if (oldFont != null ) oldFont .dispose ();
606
- oldColor = headerBackgroundColor ;
607
598
headerBackgroundColor = null ;
608
599
setHeaderBackground ();
609
- if (oldColor != null ) oldColor .dispose ();
610
- oldColor = headerForegroundColor ;
611
600
headerForegroundColor = null ;
612
601
setHeaderForeground ();
613
- if (oldColor != null ) oldColor .dispose ();
614
602
615
603
}
616
604
Original file line number Diff line number Diff line change @@ -1215,15 +1215,10 @@ void releaseResources() {
1215
1215
1216
1216
if (textFont != null ) textFont .dispose ();
1217
1217
textFont = null ;
1218
- if (textForeground != null ) textForeground .dispose ();
1219
1218
textForeground = null ;
1220
- if (textBackground != null ) textBackground .dispose ();
1221
1219
textBackground = null ;
1222
- if (strikeoutColor != null ) strikeoutColor .dispose ();
1223
1220
strikeoutColor = null ;
1224
- if (underlineColor != null ) underlineColor .dispose ();
1225
1221
underlineColor = null ;
1226
- if (borderColor != null ) borderColor .dispose ();
1227
1222
borderColor = null ;
1228
1223
1229
1224
if (font != null ) font .dispose ();
You can’t perform that action at this time.
0 commit comments