@@ -209,7 +209,7 @@ public String toString() {
209209 // and linux is all over the map
210210
211211 static final int GUI_BIG = 13 ;
212- static final int GUI_BETWEEN = 10 ;
212+ static final int GUI_BETWEEN = 5 ;
213213 static final int GUI_SMALL = 6 ;
214214
215215 // gui elements
@@ -237,7 +237,7 @@ public String toString() {
237237 JTextField proxyHTTPSPort ;
238238 JTextField proxyUser ;
239239 JPasswordField proxyPassword ;
240-
240+ private final JTextField additionalBoardsManagerField ;
241241
242242 // the calling editor, so updates can be applied
243243
@@ -464,6 +464,8 @@ public void actionPerformed(ActionEvent e) {
464464 right = Math .max (right , left + d .width );
465465 top += d .height + GUI_BETWEEN ;
466466
467+ // proxy settings
468+
467469 JPanel proxySettingsContainer = new JPanel ();
468470 pane .add (proxySettingsContainer );
469471 setupProxySettingsFieldSet (proxySettingsContainer );
@@ -472,6 +474,17 @@ public void actionPerformed(ActionEvent e) {
472474 right = Math .max (right , left + d .width );
473475 top += d .height + GUI_BETWEEN ;
474476
477+ // boards manager additional urls
478+ box = Box .createHorizontalBox ();
479+ label = new JLabel (_ ("Additional Boards Manager URLs: " ));
480+ box .add (label );
481+ additionalBoardsManagerField = new JTextField (30 );
482+ box .add (additionalBoardsManagerField );
483+ pane .add (box );
484+ d = box .getPreferredSize ();
485+ box .setBounds (left , top , d .width , d .height );
486+ top += d .height + GUI_BETWEEN ;
487+
475488 // More preferences are in the ...
476489
477490 label = new JLabel (_ ("More preferences can be edited directly in the file" ));
@@ -788,6 +801,8 @@ protected void applyFrame() {
788801 Preferences .set ("proxy.user" , proxyUser .getText ());
789802 Preferences .set ("proxy.password" , new String (proxyPassword .getPassword ()));
790803
804+ Preferences .set ("boardsmanager.additional.urls" , additionalBoardsManagerField .getText ().replace ("\r \n " , "\n " ).replace ("\r " , "\n " ).replace ("\n " , "," ));
805+
791806 editor .applyPreferences ();
792807 }
793808
@@ -834,6 +849,8 @@ protected void showFrame(Editor editor) {
834849 proxyUser .setText (Preferences .get ("proxy.user" ));
835850 proxyPassword .setText (Preferences .get ("proxy.password" ));
836851
852+ additionalBoardsManagerField .setText (Preferences .get ("boardsmanager.additional.urls" ));
853+
837854 dialog .setLocationRelativeTo (editor );
838855 dialog .setVisible (true );
839856 }
0 commit comments