@@ -209,7 +209,7 @@ public String toString() {
209
209
// and linux is all over the map
210
210
211
211
static final int GUI_BIG = 13 ;
212
- static final int GUI_BETWEEN = 10 ;
212
+ static final int GUI_BETWEEN = 5 ;
213
213
static final int GUI_SMALL = 6 ;
214
214
215
215
// gui elements
@@ -237,7 +237,7 @@ public String toString() {
237
237
JTextField proxyHTTPSPort ;
238
238
JTextField proxyUser ;
239
239
JPasswordField proxyPassword ;
240
-
240
+ private final JTextField additionalBoardsManagerField ;
241
241
242
242
// the calling editor, so updates can be applied
243
243
@@ -464,6 +464,8 @@ public void actionPerformed(ActionEvent e) {
464
464
right = Math .max (right , left + d .width );
465
465
top += d .height + GUI_BETWEEN ;
466
466
467
+ // proxy settings
468
+
467
469
JPanel proxySettingsContainer = new JPanel ();
468
470
pane .add (proxySettingsContainer );
469
471
setupProxySettingsFieldSet (proxySettingsContainer );
@@ -472,6 +474,17 @@ public void actionPerformed(ActionEvent e) {
472
474
right = Math .max (right , left + d .width );
473
475
top += d .height + GUI_BETWEEN ;
474
476
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
+
475
488
// More preferences are in the ...
476
489
477
490
label = new JLabel (_ ("More preferences can be edited directly in the file" ));
@@ -788,6 +801,8 @@ protected void applyFrame() {
788
801
Preferences .set ("proxy.user" , proxyUser .getText ());
789
802
Preferences .set ("proxy.password" , new String (proxyPassword .getPassword ()));
790
803
804
+ Preferences .set ("boardsmanager.additional.urls" , additionalBoardsManagerField .getText ().replace ("\r \n " , "\n " ).replace ("\r " , "\n " ).replace ("\n " , "," ));
805
+
791
806
editor .applyPreferences ();
792
807
}
793
808
@@ -834,6 +849,8 @@ protected void showFrame(Editor editor) {
834
849
proxyUser .setText (Preferences .get ("proxy.user" ));
835
850
proxyPassword .setText (Preferences .get ("proxy.password" ));
836
851
852
+ additionalBoardsManagerField .setText (Preferences .get ("boardsmanager.additional.urls" ));
853
+
837
854
dialog .setLocationRelativeTo (editor );
838
855
dialog .setVisible (true );
839
856
}
0 commit comments