mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-18 21:55:45 +02:00
Bug 480114 Fix package URL dialog box.
This commit is contained in:
parent
652943dfdf
commit
8e38e98780
2 changed files with 3 additions and 3 deletions
|
@ -21,8 +21,8 @@ public class ArduinoPreferences {
|
||||||
|
|
||||||
private static final String defaultHome = Paths.get(System.getProperty("user.home"), ".arduinocdt").toString(); //$NON-NLS-1$ //$NON-NLS-2$
|
private static final String defaultHome = Paths.get(System.getProperty("user.home"), ".arduinocdt").toString(); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
private static final String defaultBoardUrls = "http://downloads.arduino.cc/packages/package_index.json" //$NON-NLS-1$
|
private static final String defaultBoardUrls = "http://downloads.arduino.cc/packages/package_index.json" //$NON-NLS-1$
|
||||||
+ "\r\nhttp://arduino.esp8266.com/stable/package_esp8266com_index.json" //$NON-NLS-1$
|
+ "\nhttp://arduino.esp8266.com/stable/package_esp8266com_index.json" //$NON-NLS-1$
|
||||||
+ "\r\nhttps://adafruit.github.io/arduino-board-index/package_adafruit_index.json"; //$NON-NLS-1$
|
+ "\nhttps://adafruit.github.io/arduino-board-index/package_adafruit_index.json"; //$NON-NLS-1$
|
||||||
|
|
||||||
private static IEclipsePreferences getPrefs() {
|
private static IEclipsePreferences getPrefs() {
|
||||||
return InstanceScope.INSTANCE.getNode(Activator.getId());
|
return InstanceScope.INSTANCE.getNode(Activator.getId());
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class ArduinoPreferencePage extends PreferencePage implements IWorkbenchP
|
||||||
desc.setBackground(parent.getBackground());
|
desc.setBackground(parent.getBackground());
|
||||||
desc.setText(Messages.ArduinoPreferencePage_desc);
|
desc.setText(Messages.ArduinoPreferencePage_desc);
|
||||||
|
|
||||||
urlsText = new Text(control, SWT.BORDER);
|
urlsText = new Text(control, SWT.BORDER | SWT.MULTI);
|
||||||
urlsText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
|
urlsText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
|
||||||
urlsText.setText(ArduinoPreferences.getBoardUrls());
|
urlsText.setText(ArduinoPreferences.getBoardUrls());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue