@@ -249,8 +249,8 @@ public ListBoxModel doFillMavenItems(@AncestorInPath Item item) {
249249 if (item == null ) {
250250 return r ; // it's empty
251251 }
252- item .checkPermission (Item .CONFIGURE );
253- r .add ("--- Use system default Maven ---" );
252+ item .checkPermission (Item .EXTENDED_READ );
253+ r .add ("--- Use system default Maven ---" , "" );
254254 for (MavenInstallation installation : getMavenDescriptor ().getInstallations ()) {
255255 r .add (installation .getName ());
256256 }
@@ -267,8 +267,8 @@ public ListBoxModel doFillJdkItems(@AncestorInPath Item item) {
267267 if (item == null ) {
268268 return r ; // it's empty
269269 }
270- item .checkPermission (Item .CONFIGURE );
271- r .add ("--- Use system default JDK ---" );
270+ item .checkPermission (Item .EXTENDED_READ );
271+ r .add ("--- Use system default JDK ---" , "" );
272272 for (JDK installation : getJDKDescriptor ().getInstallations ()) {
273273 r .add (installation .getName ());
274274 }
@@ -281,8 +281,8 @@ public ListBoxModel doFillMavenSettingsConfigItems(@AncestorInPath Item item, @A
281281 if (item == null ) {
282282 return r ; // it's empty
283283 }
284- item .checkPermission (Item .CONFIGURE );
285- r .add ("--- Use system default settings or file path ---" );
284+ item .checkPermission (Item .EXTENDED_READ );
285+ r .add ("--- Use system default settings or file path ---" , "" );
286286 for (Config config : ConfigFiles .getConfigsInContext (context , MavenSettingsConfigProvider .class )) {
287287 r .add (config .name , config .id );
288288 }
@@ -295,8 +295,8 @@ public ListBoxModel doFillGlobalMavenSettingsConfigItems(@AncestorInPath Item it
295295 if (item == null ) {
296296 return r ; // it's empty
297297 }
298- item .checkPermission (Item .CONFIGURE );
299- r .add ("--- Use system default settings or file path ---" );
298+ item .checkPermission (Item .EXTENDED_READ );
299+ r .add ("--- Use system default settings or file path ---" , "" );
300300 for (Config config : ConfigFiles .getConfigsInContext (context , GlobalMavenSettingsConfigProvider .class )) {
301301 r .add (config .name , config .id );
302302 }
@@ -309,7 +309,7 @@ public ListBoxModel doFillPublisherStrategyItems(@AncestorInPath Item item, @Anc
309309 if (item == null ) {
310310 return r ; // it's empty
311311 }
312- item .checkPermission (Item .CONFIGURE );
312+ item .checkPermission (Item .EXTENDED_READ );
313313 for (MavenPublisherStrategy publisherStrategy : MavenPublisherStrategy .values ()) {
314314 r .add (publisherStrategy .getDescription (), publisherStrategy .name ());
315315 }
0 commit comments