|
8 | 8 |
|
9 | 9 | @SuppressWarnings("nls")
|
10 | 10 | public class Defaults {
|
11 |
| - public static final String EXAMPLE_PACKAGE = "examples_Arduino_1_8_10.zip"; |
12 |
| - public static final String EXAMPLES_URL = "https://github.com/Sloeber/arduino-eclipse-plugin/releases/download/V4_3_2/" + EXAMPLE_PACKAGE; |
13 |
| - |
14 |
| - public static final String DEFAULT_INSTALL_PLATFORM_NAME = "Arduino AVR Boards"; |
15 |
| - public static final String DEFAULT_INSTALL_ARCHITECTURE= "AVR"; |
16 |
| - public static final String DEFAULT_INSTALL_MAINTAINER= "Arduino"; |
17 |
| - public static final String[] DEFAULT_INSTALLED_LIBRARIES = new String[] { "Ethernet", "Firmata", "GSM", "Keyboard", |
18 |
| - "LiquidCrystal", "Mouse", "SD", "Servo", "Stepper", "TFT", "WiFi", "CapacitiveSensor" }; |
19 |
| - public static final String DEFAULT = "Default"; |
20 |
| - |
21 |
| - public static final boolean updateJsonFiles = true; |
22 |
| - public static final boolean useBonjour=true; |
23 |
| - public static final boolean autoInstallLibraries = true; |
24 |
| - public static final boolean useArduinoToolSelection= true; |
25 |
| - |
26 |
| - |
27 |
| - |
28 |
| - /** |
29 |
| - * Arduino has the default libraries in the user home directory in subfolder |
30 |
| - * Arduino/libraries. As the home directory is platform dependent getting |
31 |
| - * the value is resolved by this method |
32 |
| - * |
33 |
| - * @return the folder where Arduino puts the libraries by default. |
34 |
| - */ |
35 |
| - public static String getPrivateLibraryPath() { |
36 |
| - IPath homPath = new Path(System.getProperty("user.home")); |
37 |
| - if(SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_WINDOWS ) { |
38 |
| - homPath=homPath.append("Documents"); |
39 |
| - } |
40 |
| - return homPath.append("Arduino").append(LIBRARY_PATH_SUFFIX).toString(); |
41 |
| - } |
42 |
| - |
43 |
| - public static String getPrivateHardwarePath() { |
44 |
| - IPath homPath = new Path(System.getProperty("user.home")); |
45 |
| - if(SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_WINDOWS ) { |
46 |
| - homPath=homPath.append("Documents"); |
47 |
| - } |
| 11 | + public static final String EXAMPLE_PACKAGE = "examples_Arduino_1_8_10.zip"; |
| 12 | + public static final String EXAMPLES_URL = "https://github.com/Sloeber/arduino-eclipse-plugin/releases/download/V4_3_2/" |
| 13 | + + EXAMPLE_PACKAGE; |
| 14 | + |
| 15 | + public static final String DEFAULT_INSTALL_PLATFORM_NAME = "Arduino AVR Boards"; |
| 16 | + public static final String DEFAULT_INSTALL_ARCHITECTURE = "AVR"; |
| 17 | + public static final String DEFAULT_INSTALL_MAINTAINER = "Arduino"; |
| 18 | + public static final String[] DEFAULT_INSTALLED_LIBRARIES = new String[] { "Ethernet", "Firmata", "GSM", "Keyboard", |
| 19 | + "LiquidCrystal", "Mouse", "SD", "Servo", "Stepper", "TFT", "WiFi", "CapacitiveSensor" }; |
| 20 | + public static final String DEFAULT = "Default"; |
| 21 | + |
| 22 | + public static final boolean updateJsonFiles = true; |
| 23 | + public static final boolean useBonjour = true; |
| 24 | + public static final boolean autoInstallLibraries = true; |
| 25 | + public static final boolean useArduinoToolSelection = true; |
| 26 | + |
| 27 | + /** |
| 28 | + * Arduino has the default libraries in the user home directory in subfolder |
| 29 | + * Arduino/libraries. As the home directory is platform dependent getting the |
| 30 | + * value is resolved by this method |
| 31 | + * |
| 32 | + * @return the folder where Arduino puts the libraries by default. |
| 33 | + */ |
| 34 | + public static String getPrivateLibraryPath() { |
| 35 | + IPath homPath = new Path(System.getProperty("user.home")); |
| 36 | + if (SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_WINDOWS) { |
| 37 | + homPath = homPath.append("Documents"); |
| 38 | + } |
| 39 | + return homPath.append("Arduino").append(LIBRARY_PATH_SUFFIX).toString(); |
| 40 | + } |
| 41 | + |
| 42 | + public static String getPrivateHardwarePath() { |
| 43 | + IPath homPath = new Path(System.getProperty("user.home")); |
| 44 | + if (SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_WINDOWS) { |
| 45 | + homPath = homPath.append("Documents"); |
| 46 | + } |
48 | 47 | return homPath.append("Arduino").append(ARDUINO_HARDWARE_FOLDER_NAME).toString();
|
49 |
| - } |
| 48 | + } |
50 | 49 |
|
51 |
| - public static String getDefaultUploadProtocol() { |
52 |
| - return DEFAULT; |
53 |
| - } |
54 |
| - |
55 |
| - |
56 |
| - |
57 |
| - |
58 |
| - } |
| 50 | +} |
0 commit comments