Skip to content

Commit 8791530

Browse files
author
jantje
committed
More refactoring to get smaller names
1 parent 9560dfd commit 8791530

File tree

8 files changed

+78
-49
lines changed

8 files changed

+78
-49
lines changed

it.baeyens.arduino.common/src/it/baeyens/arduino/common/Common.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,11 @@ public static void UnRegisterSerialUser() {
9090
* @return a name safe to create files or folders
9191
*/
9292
public static String MakeNameCompileSafe(String Name) {
93-
char badChars[] = { ' ', '/', '.', SLACH, ':', ' ', UNDERSCORE, BACK_SLACH, '(', ')', '*', '?', '%', '|', '<',
94-
'>', ',', '-' };
93+
char badChars[] = { ' ', '/', '.', '/', ':', ' ', '\\', '(', ')', '*', '?', '%', '|', '<', '>', ',', '-' };
9594

9695
String ret = Name.trim();
9796
for (char curchar : badChars) {
98-
ret = ret.replace(curchar, UNDERSCORE);
97+
ret = ret.replace(curchar, '_');
9998
}
10099
return ret;
101100
}
@@ -161,8 +160,7 @@ public static void setPersistentProperty(IProject project, String Tag, String Va
161160
// downwards
162161
// compatibility
163162
} catch (CoreException e) {
164-
IStatus status = new Status(IStatus.ERROR, Const.CORE_PLUGIN_ID,
165-
"Failed to write arduino properties", e); //$NON-NLS-1$
163+
IStatus status = new Status(IStatus.ERROR, Const.CORE_PLUGIN_ID, "Failed to write arduino properties", e); //$NON-NLS-1$
166164
Common.log(status);
167165

168166
}

it.baeyens.arduino.common/src/it/baeyens/arduino/common/ConfigurationPreferences.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static Path getInstallationPath() {
4242
return new Path(pathName);
4343
}
4444
}
45-
String storedValue = getGlobalString(Const.KEY_ARDUINO_MANAGER_DOWNLOAD_LOCATION, Const.EMPTY_STRING);
45+
String storedValue = getGlobalString(Const.KEY_MANAGER_DOWNLOAD_LOCATION, Const.EMPTY_STRING);
4646
if (storedValue.isEmpty()) {
4747
URI uri;
4848
try {
@@ -97,11 +97,11 @@ public static File getPostProcessingBoardsFile() {
9797
}
9898

9999
public static String getBoardURLs() {
100-
return getGlobalString(Const.KEY_ARDUINO_MANAGER_BOARD_URLS, Const.DEFAULT_ARDUINO_MANAGER_BOARD_URLS);
100+
return getGlobalString(Const.KEY_MANAGER_BOARD_URLS, Const.DEFAULT_MANAGER_BOARD_URLS);
101101
}
102102

103103
public static void setBoardURLs(String urls) {
104-
setGlobalString(Const.KEY_ARDUINO_MANAGER_BOARD_URLS, urls);
104+
setGlobalString(Const.KEY_MANAGER_BOARD_URLS, urls);
105105
}
106106

107107
public static Path getPathExtensionPath() {

it.baeyens.arduino.common/src/it/baeyens/arduino/common/Const.java

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,15 @@ public class Const {
1212
// have to add all the time
1313
public static final String DOT = ".";// so I do not have to //$NON-NLS-1$
1414
// add all the time
15-
public static final char SLACH = '/';// so I do not have to add $NON-NLS-1$
16-
// all the time
15+
public static final String SLACH = "/";// so I do not have to //$NON-NLS-1$
16+
// add all the time
1717
public static final String COLON = ":";// so I do not have to //$NON-NLS-1$
1818
// add all the time
1919
public static final String SPACE = " "; // so I do not have to //$NON-NLS-1$
2020
// add all the time
21-
public static final char UNDERSCORE = '_';// so I do not have to add
22-
// $NON-NLS-1$ all the time
23-
public static final char BACK_SLACH = '\\';// so I do not have to add
24-
// $NON-NLS-1$ all the time
25-
public static final String FALSE = "false";// so I do not have //$NON-NLS-1$
21+
public static final String FALSE = "FALSE";// so I do not have //$NON-NLS-1$
2622
// to add all the time
27-
public static final String TRUE = "true";// so I do not have //$NON-NLS-1$
23+
public static final String TRUE = "TRUE";// so I do not have //$NON-NLS-1$
2824
// to add all the time
2925
public static final String NEWLINE = "\n";// so I do not have //$NON-NLS-1$
3026
// to add all the time
@@ -51,9 +47,9 @@ public class Const {
5147
// preference keys
5248
public static final String KEY_PRIVATE_LIBRARY_PATHS = "Private Library Path";//$NON-NLS-1$
5349
public static final String KEY_PRIVATE_HARDWARE_PATHS = "Private hardware Path";//$NON-NLS-1$
54-
public static final String KEY_ARDUINO_MANAGER_DOWNLOAD_LOCATION = "arduino Manager downloadlocation"; //$NON-NLS-1$
55-
public static final String KEY_ARDUINO_MANAGER_BOARD_URLS = "Arduino Manager board Urls"; //$NON-NLS-1$
56-
public static final String DEFAULT_ARDUINO_MANAGER_BOARD_URLS = "http://downloads.arduino.cc/packages/package_index.json" //$NON-NLS-1$
50+
public static final String KEY_MANAGER_DOWNLOAD_LOCATION = "arduino Manager downloadlocation"; //$NON-NLS-1$
51+
public static final String KEY_MANAGER_BOARD_URLS = "Arduino Manager board Urls"; //$NON-NLS-1$
52+
public static final String DEFAULT_MANAGER_BOARD_URLS = "http://downloads.arduino.cc/packages/package_index.json" //$NON-NLS-1$
5753
+ "\nhttp://arduino.esp8266.com/stable/package_esp8266com_index.json"; //$NON-NLS-1$
5854

5955
// properties keys
@@ -78,14 +74,15 @@ public class Const {
7874
public static final String DEFAULT = "Default";//$NON-NLS-1$
7975
public static final String BOARDS_FILE_NAME = "boards.txt";//$NON-NLS-1$
8076
public static final String PLATFORM_FILE_NAME = "platform.txt";//$NON-NLS-1$
81-
public static final String ARDUINO_VARIANTS_FOLDER_NAME = "variants";//$NON-NLS-1$
77+
public static final String VARIANTS_FOLDER_NAME = "variants";//$NON-NLS-1$
8278
public static final String PACKAGES_FOLDER_NAME = "packages";//$NON-NLS-1$
8379
public static final String PLATFORM_PLUGIN_FILE_NAME = "eclipse_plugin.txt"; //$NON-NLS-1$
8480

8581
// tags to interpret the arduino input files
8682
public static final String BoardNameKeyTAG = "name";//$NON-NLS-1$
8783
public static final String UploadToolTeensy = "teensy_reboot";//$NON-NLS-1$
8884
public static final String Upload_ssh = "ssh upload";//$NON-NLS-1$
85+
public static final String MENU = "menu";//$NON-NLS-1$
8986

9087
public static final String KEY_BUILD_BEFORE_UPLOAD_OPTION = "Build before upload option";//$NON-NLS-1$
9188
public static final String KEY_OPEN_SERIAL_WITH_MONITOR = "Open serial connections with the monitor";//$NON-NLS-1$
@@ -160,6 +157,9 @@ public class Const {
160157
// $NON-NLS-1$
161158
// $NON-NLS-1$
162159
// $NON-NLS-1$
160+
// $NON-NLS-1$
161+
// $NON-NLS-1$
162+
// $NON-NLS-1$
163163
//$NON-NLS-1$ where
164164
// $NON-NLS-1$
165165
// $NON-NLS-1$
@@ -169,6 +169,9 @@ public class Const {
169169
// $NON-NLS-1$
170170
// $NON-NLS-1$
171171
// $NON-NLS-1$
172+
// $NON-NLS-1$
173+
// $NON-NLS-1$
174+
// $NON-NLS-1$
172175
//$NON-NLS-1$ make
173176
// $NON-NLS-1$
174177
// $NON-NLS-1$
@@ -178,6 +181,9 @@ public class Const {
178181
// $NON-NLS-1$
179182
// $NON-NLS-1$
180183
// $NON-NLS-1$
184+
// $NON-NLS-1$
185+
// $NON-NLS-1$
186+
// $NON-NLS-1$
181187
//$NON-NLS-1$ is
182188
// $NON-NLS-1$
183189
// $NON-NLS-1$
@@ -187,6 +193,9 @@ public class Const {
187193
// $NON-NLS-1$
188194
// $NON-NLS-1$
189195
// $NON-NLS-1$
196+
// $NON-NLS-1$
197+
// $NON-NLS-1$
198+
// $NON-NLS-1$
190199
//$NON-NLS-1$ located
191200
// $NON-NLS-1$
192201
// $NON-NLS-1$
@@ -196,6 +205,9 @@ public class Const {
196205
// $NON-NLS-1$
197206
// $NON-NLS-1$
198207
// $NON-NLS-1$
208+
// $NON-NLS-1$
209+
// $NON-NLS-1$
210+
// $NON-NLS-1$
199211
//$NON-NLS-1$ only
200212
// $NON-NLS-1$
201213
// $NON-NLS-1$
@@ -205,6 +217,9 @@ public class Const {
205217
// $NON-NLS-1$
206218
// $NON-NLS-1$
207219
// $NON-NLS-1$
220+
// $NON-NLS-1$
221+
// $NON-NLS-1$
222+
// $NON-NLS-1$
208223
//$NON-NLS-1$ used
209224
// $NON-NLS-1$
210225
// $NON-NLS-1$
@@ -214,6 +229,9 @@ public class Const {
214229
// $NON-NLS-1$
215230
// $NON-NLS-1$
216231
// $NON-NLS-1$
232+
// $NON-NLS-1$
233+
// $NON-NLS-1$
234+
// $NON-NLS-1$
217235
//$NON-NLS-1$ in
218236
// $NON-NLS-1$
219237
// $NON-NLS-1$
@@ -223,6 +241,9 @@ public class Const {
223241
// $NON-NLS-1$
224242
// $NON-NLS-1$
225243
// $NON-NLS-1$
244+
// $NON-NLS-1$
245+
// $NON-NLS-1$
246+
// $NON-NLS-1$
226247
//$NON-NLS-1$ windows
227248
// public static final String ENV_KEY_JANTJE_PLATFORM_NAME =
228249
// ENV_KEY_JANTJE_START + "PLATFORM.NAME";//$NON-NLS-1$

it.baeyens.arduino.core/src/it/baeyens/arduino/tools/Boards.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
public class Boards {
3232
private File mLastLoadedBoardsFile = null;
3333
private static final String DOT = Const.DOT;
34-
private static final String MENU = "menu"; //$NON-NLS-1$
34+
private static final String MENU = Const.MENU; // $NON-NLS-1$
3535
Map<String, String> settings = null;
3636
// private String mLastLoadedBoard = "";
3737
private Map<String, Map<String, String>> mArduinoSupportedBoards = new LinkedHashMap<>(); // all

it.baeyens.arduino.core/src/it/baeyens/arduino/tools/Helpers.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,9 @@ public static void addArduinoCodeToProject(IProject project, ICConfigurationDesc
483483
String architecture = getBuildEnvironmentVariable(configurationDescription, ENV_KEY_ARCHITECTURE,
484484
EMPTY_STRING);
485485
addCodeFolder(project,
486-
new Path(ARDUINO_HARDWARE_FOLDER_NAME + SLACH + sections[1] + SLACH + architecture + SLACH
487-
+ ARDUINO_CORE_FOLDER_NAME + SLACH + sections[1]),
488-
"arduino/core", configurationDescription); //$NON-NLS-1$
486+
new Path(ARDUINO_HARDWARE_FOLDER_NAME).append(sections[1]).append(architecture)
487+
.append(ARDUINO_CORE_FOLDER_NAME).append(sections[1]),
488+
ARDUINO_CODE_FOLDER_NAME + "/core", configurationDescription); //$NON-NLS-1$
489489
}
490490
} else {
491491
addCodeFolder(project, rootPath.append("cores").append(buildCoreFolder), ARDUINO_CODE_FOLDER_NAME + "/core", //$NON-NLS-1$ //$NON-NLS-2$
@@ -614,7 +614,7 @@ private static void setTheEnvironmentVariablesSetTheDefaults(IContributedEnviron
614614
+ makeEnvironmentVar(ENV_KEY_build_generic_path) + pathDelimiter + makeEnvironmentVar("PATH")); //$NON-NLS-1$
615615

616616
setBuildEnvironmentVariable(contribEnv, confDesc, ENV_KEY_build_path,
617-
makeEnvironmentVar("ProjDirPath") + SLACH + makeEnvironmentVar("ConfigName")); //$NON-NLS-1$ //$NON-NLS-2$
617+
makeEnvironmentVar("ProjDirPath") + '/' + makeEnvironmentVar("ConfigName")); //$NON-NLS-1$ //$NON-NLS-2$
618618

619619
setBuildEnvironmentVariable(contribEnv, confDesc, ENV_KEY_build_project_name, makeEnvironmentVar("ProjName")); //$NON-NLS-1$
620620

@@ -724,7 +724,7 @@ private static void setTheEnvironmentVariablesAddtheBoardsTxt(IContributedEnviro
724724
String menuItemID = keySplit[2];
725725
if (isThisMenuItemSelected(boardsFile, confDesc, boardID, menuID, menuItemID)) {
726726
// we also need to skip the name
727-
String StartValue = "menu." + menuID + DOT + menuItemID + DOT; //$NON-NLS-1$
727+
String StartValue = MENU + DOT + menuID + DOT + menuItemID + DOT; // $NON-NLS-1$
728728
if (currentPair.getKey().startsWith(StartValue)) {
729729
String keyString = MakeKeyString(currentPair.getKey().substring(StartValue.length()));
730730
String valueString = MakeEnvironmentString(currentPair.getValue(), Const.ENV_KEY_BOARD_START);
@@ -734,7 +734,7 @@ private static void setTheEnvironmentVariablesAddtheBoardsTxt(IContributedEnviro
734734
}
735735
}
736736

737-
Map<String, String> menuSectionMap = boardsFile.getSection("menu"); //$NON-NLS-1$
737+
Map<String, String> menuSectionMap = boardsFile.getSection(MENU); // $NON-NLS-1$
738738
String[] optionNames = boardsFile.getMenuNames();
739739
for (int currentOption = 0; currentOption < optionNames.length; currentOption++) {
740740
String optionName = optionNames[currentOption];
@@ -974,7 +974,7 @@ private static void setTheEnvironmentVariablesRedirectToOtherVendors(IContribute
974974
Messages.Helpers_Variant_reference_missing + variant));
975975
} else {
976976
Common.setBuildEnvironmentVariable(contribEnv, confDesc, ENV_KEY_build_variant_path,
977-
variantReference.append(ARDUINO_VARIANTS_FOLDER_NAME).append(variantSplit[1]).toString());
977+
variantReference.append(VARIANTS_FOLDER_NAME).append(variantSplit[1]).toString());
978978
}
979979
} else {
980980
Common.setBuildEnvironmentVariable(contribEnv, confDesc, ENV_KEY_JANTJE_BUILD_VARIANT, variant);

it.baeyens.arduino.core/src/it/baeyens/arduino/tools/PasswordManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public boolean setHost(String host) {
4545
this.myLogin = node.get(Messages.security_login, null);
4646
}
4747
if (this.myPassword == null) {
48-
PasswordDialog dialog = new PasswordDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
48+
PasswordDialog dialog = new PasswordDialog(
49+
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
4950
if (this.myLogin != null)
5051
dialog.setUser(this.myLogin);
5152
dialog.sethost(host);
@@ -86,7 +87,7 @@ public static void ErasePassword(String host) {
8687

8788
private static String ConvertHostToNodeName(String host) {
8889

89-
return "ssh/" + host.replace(Const.DOT, "/"); //$NON-NLS-1$ //$NON-NLS-2$
90+
return "ssh/" + host.replace(Const.DOT, Const.SLACH); //$NON-NLS-1$
9091
}
9192

9293
}

it.baeyens.arduino.core/src/it/baeyens/arduino/ui/BoardSelectionPage.java

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,16 @@
3333
import org.eclipse.swt.widgets.Listener;
3434
import org.eclipse.swt.widgets.Text;
3535

36+
import it.baeyens.arduino.common.Common;
3637
import it.baeyens.arduino.common.Const;
3738
import it.baeyens.arduino.common.InstancePreferences;
38-
import it.baeyens.arduino.common.Common;
3939
import it.baeyens.arduino.tools.Boards;
4040
import it.baeyens.arduino.tools.Helpers;
4141

4242
/**
43-
* The ArduinoSelectionPage class is used in the new wizard and the project properties. This class controls the gui and the data underneath the gui.
44-
* This class allows to select the arduino board and the port name
43+
* The ArduinoSelectionPage class is used in the new wizard and the project
44+
* properties. This class controls the gui and the data underneath the gui. This
45+
* class allows to select the arduino board and the port name
4546
*
4647
* @author Jan Baeyens
4748
* @see ArduinoProperties ArduinoSettingsPage
@@ -60,13 +61,15 @@ public class BoardSelectionPage extends AbstractCPropertyTab {
6061
protected Listener mBoardSelectionChangedListener = null;
6162

6263
// the properties to modify
63-
private String[] mAllBoardsFileNames; // contains the boards.txt file names found
64+
private String[] mAllBoardsFileNames; // contains the boards.txt file names
65+
// found
6466
// for the current arduino environment
6567
Boards mAllBoardsFiles[] = null; // contains the boards.txt content found
66-
// for the current arduino environment
68+
// for the current arduino environment
6769

6870
/**
69-
* Get the configuration we are currently working in. The configuration is null if we are in the create sketch wizard.
71+
* Get the configuration we are currently working in. The configuration is
72+
* null if we are in the create sketch wizard.
7073
*
7174
* @return the configuration to save info into
7275
*/
@@ -78,7 +81,8 @@ public ICConfigurationDescription getConfdesc() {
7881
}
7982

8083
/**
81-
* Listener for the child or leave fields. The listener saves the information in the configuration
84+
* Listener for the child or leave fields. The listener saves the
85+
* information in the configuration
8286
*
8387
* @author jan
8488
*
@@ -140,8 +144,8 @@ public void handleEvent(Event e) {
140144
String boardName = BoardSelectionPage.this.mcontrolBoardName.getText();
141145

142146
for (LabelCombo curLabelCombo : BoardSelectionPage.this.mBoardOptionCombos) {
143-
curLabelCombo.setItems(
144-
BoardSelectionPage.this.mAllBoardsFiles[selectedBoardFile].getMenuItemNames(curLabelCombo.getMenuName(), boardName));
147+
curLabelCombo.setItems(BoardSelectionPage.this.mAllBoardsFiles[selectedBoardFile]
148+
.getMenuItemNames(curLabelCombo.getMenuName(), boardName));
145149
}
146150

147151
IEnvironmentVariableManager envManager = CCorePlugin.getDefault().getBuildEnvironmentManager();
@@ -238,7 +242,8 @@ public void draw(Composite composite) {
238242
this.mcontrolBoardName.setEnabled(false);
239243

240244
// ----
241-
this.mControlUploadPort = new LabelCombo(composite, Messages.ui_port, this.ncol - 1, Const.ENV_KEY_JANTJE_COM_PORT, false);
245+
this.mControlUploadPort = new LabelCombo(composite, Messages.ui_port, this.ncol - 1,
246+
Const.ENV_KEY_JANTJE_COM_PORT, false);
242247

243248
this.mControlUploadPort.setItems(ArrayUtil.addAll(Activator.bonjourDiscovery.getList(), Common.listComPorts()));
244249

@@ -252,8 +257,8 @@ public void draw(Composite composite) {
252257
this.mBoardOptionCombos = new LabelCombo[menuNames.length];
253258
for (int currentOption = 0; currentOption < menuNames.length; currentOption++) {
254259
String menuName = menuNames[currentOption];
255-
this.mBoardOptionCombos[currentOption] = new LabelCombo(composite, menuName, this.ncol - 1, Const.ENV_KEY_JANTJE_START + menuName,
256-
true);
260+
this.mBoardOptionCombos[currentOption] = new LabelCombo(composite, menuName, this.ncol - 1,
261+
Const.ENV_KEY_JANTJE_START + menuName, true);
257262
}
258263

259264
// Create the control to alert parents of changes
@@ -298,8 +303,8 @@ public boolean isPageComplete() {
298303
}
299304

300305
ret = !this.mcontrolBoardName.getText().trim().isEmpty() && MenuOpionsValidAndComplete;
301-
if (!this.mFeedbackControl.getText().equals(ret ? "true" : "false")) { //$NON-NLS-1$ //$NON-NLS-2$
302-
this.mFeedbackControl.setText(ret ? "true" : "false"); //$NON-NLS-1$//$NON-NLS-2$
306+
if (!this.mFeedbackControl.getText().equals(ret ? Const.TRUE : Const.FALSE)) {
307+
this.mFeedbackControl.setText(ret ? Const.TRUE : Const.FALSE);
303308
}
304309
if (ret) {
305310
if (this.mBoardSelectionChangedListener != null) {
@@ -367,14 +372,17 @@ public void saveAllSelections(ICConfigurationDescription confdesc) {
367372
IContributedEnvironment contribEnv = envManager.getContributedEnvironment();
368373

369374
// Set the path variables
370-
IPath platformPath = new Path(new File(this.mControlBoardsTxtFile.getText().trim()).getParent()).append(Const.PLATFORM_FILE_NAME);
375+
IPath platformPath = new Path(new File(this.mControlBoardsTxtFile.getText().trim()).getParent())
376+
.append(Const.PLATFORM_FILE_NAME);
371377
Common.setBuildEnvironmentVariable(contribEnv, confdesc, Const.ENV_KEY_JANTJE_BOARDS_FILE, boardFile);
372-
Common.setBuildEnvironmentVariable(contribEnv, confdesc, Const.ENV_KEY_JANTJE_PLATFORM_FILE, platformPath.toString());
378+
Common.setBuildEnvironmentVariable(contribEnv, confdesc, Const.ENV_KEY_JANTJE_PLATFORM_FILE,
379+
platformPath.toString());
373380
Common.setBuildEnvironmentVariable(contribEnv, confdesc, Const.ENV_KEY_JANTJE_BOARD_NAME, boardName);
374381
Common.setBuildEnvironmentVariable(contribEnv, confdesc, Const.ENV_KEY_JANTJE_COM_PORT, uploadPort);
375382

376383
Common.setBuildEnvironmentVariable(contribEnv, confdesc, Const.ENV_KEY_JANTJE_PACKAGE_ID, getPackage());
377-
Common.setBuildEnvironmentVariable(contribEnv, confdesc, Const.ENV_KEY_JANTJE_ARCITECTURE_ID, getArchitecture());
384+
Common.setBuildEnvironmentVariable(contribEnv, confdesc, Const.ENV_KEY_JANTJE_ARCITECTURE_ID,
385+
getArchitecture());
378386
Common.setBuildEnvironmentVariable(contribEnv, confdesc, Const.ENV_KEY_JANTJE_BOARD_ID, getBoardID());
379387

380388
for (LabelCombo curLabelCombo : this.mBoardOptionCombos) {
@@ -407,7 +415,8 @@ private void setValues(ICConfigurationDescription confdesc) {
407415

408416
// set the options in the combo boxes before setting the value
409417
for (LabelCombo curLabelCombo : this.mBoardOptionCombos) {
410-
curLabelCombo.setItems(this.mAllBoardsFiles[selectedBoardFile].getMenuItemNames(curLabelCombo.getMenuName(), boardName));
418+
curLabelCombo.setItems(
419+
this.mAllBoardsFiles[selectedBoardFile].getMenuItemNames(curLabelCombo.getMenuName(), boardName));
411420
if (confdesc != null) {
412421
curLabelCombo.getStoredValue(confdesc);
413422
} else {

it.baeyens.arduino.core/src/it/baeyens/arduino/ui/LinkPreferencePage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public boolean performOk() {
6262

6363
@Override
6464
protected void performDefaults() {
65-
String defaultBoardUrl = Const.DEFAULT_ARDUINO_MANAGER_BOARD_URLS;
65+
String defaultBoardUrl = Const.DEFAULT_MANAGER_BOARD_URLS;
6666
this.urlsText.setText(defaultBoardUrl);
6767
ConfigurationPreferences.setBoardURLs(defaultBoardUrl);
6868
super.performDefaults();

0 commit comments

Comments
 (0)