@@ -57,7 +57,7 @@ public class ContributionManagerDialog {
5757 // the calling editor, so updates can be applied
5858 Editor editor ;
5959 String category ;
60- String compatibleContribType ;
60+ String compatibleCheckboxLabel ;
6161 boolean isCompatibilityFilter ;
6262 ContributionListing contribListing ;
6363
@@ -66,21 +66,26 @@ public ContributionManagerDialog(ContributionType type) {
6666 if (type == null ) {
6767 title = Language .text ("contrib.manager_title.update" );
6868 filter = ContributionType .createUpdateFilter ();
69- compatibleContribType = "Updates" ;
69+ compatibleCheckboxLabel = Language . text ( "contrib.show_only_compatible.update" ) ;
7070 } else {
71- if (type == ContributionType .MODE )
71+ if (type == ContributionType .MODE ) {
7272 title = Language .text ("contrib.manager_title.mode" );
73- else if (type == ContributionType .TOOL )
73+ compatibleCheckboxLabel = Language .text ("contrib.show_only_compatible.mode" );
74+ }
75+ else if (type == ContributionType .TOOL ) {
7476 title = Language .text ("contrib.manager_title.tool" );
75- else if (type == ContributionType .LIBRARY )
77+ compatibleCheckboxLabel = Language .text ("contrib.show_only_compatible.tool" );
78+ }
79+ else if (type == ContributionType .LIBRARY ) {
7680 title = Language .text ("contrib.manager_title.library" );
81+ compatibleCheckboxLabel = Language .text ("contrib.show_only_compatible.library" );
82+ }
83+ else if (type == ContributionType .EXAMPLES_PACKAGE ) {
84+ title = Language .text ("contrib.manager_title.examples-package" );
85+ compatibleCheckboxLabel = Language .text ("contrib.show_only_compatible.examples-package" );
86+ }
7787
78- filter = type .createFilter ();
79-
80- if (type == ContributionType .LIBRARY )
81- compatibleContribType = "Libraries" ;
82- else
83- compatibleContribType = type .getTitle () + "s" ;
88+ filter = type .createFilter ();
8489 }
8590 contribListing = ContributionListing .getInstance ();
8691 contributionListPanel = new ContributionListPanel (this , filter );
@@ -237,7 +242,7 @@ public void itemStateChanged(ItemEvent e) {
237242
238243 filterPanel .add (Box .createHorizontalStrut (5 ));
239244
240- final JCheckBox compatibleContrib = new JCheckBox ("Show Only Compatible " + compatibleContribType );
245+ final JCheckBox compatibleContrib = new JCheckBox (compatibleCheckboxLabel );
241246 compatibleContrib .addItemListener (new ItemListener () {
242247
243248 @ Override
0 commit comments