File tree 3 files changed +25
-5
lines changed
it.baeyens.arduino.common/src/it/baeyens/arduino/common
it.baeyens.arduino.core/src/it/baeyens/arduino
3 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ public static long getStoredPreferenceModificatonStamp() {
366
366
return getGlobalLong (KEY_PREFERENCE_MODIFICATION_STAMP );
367
367
}
368
368
369
- public static void getStoredPreferenceModificatonStamp (long stamp ) {
369
+ public static void setStoredPreferenceModificatonStamp (long stamp ) {
370
370
setGlobalValue (KEY_PREFERENCE_MODIFICATION_STAMP , stamp );
371
371
}
372
372
}
Original file line number Diff line number Diff line change @@ -31,9 +31,6 @@ public class ArduinoGetPreferences {
31
31
*/
32
32
private static boolean arduinoIdeSupportsDumpFiles () {
33
33
String IDEVersion = ArduinoInstancePreferences .getArduinoIDEVersion ();
34
- if (IDEVersion .equalsIgnoreCase ("nightly" )) {
35
- return true ;
36
- }
37
34
if (IDEVersion .trim ().split ("\\ ." ).length != 3 )
38
35
return false ;
39
36
if (IDEVersion .compareTo ("1.6.4" ) > 0 ) {
@@ -55,6 +52,16 @@ private static boolean newerBoardsAvailable() {
55
52
return (preferenceFile .lastModified () != storedPreferenceModificatonStamp );
56
53
}
57
54
55
+ private static void storePreferenceModificationStamp () {
56
+
57
+ File preferenceFile = Common .getPreferenceFile ();
58
+ ArduinoInstancePreferences .setStoredPreferenceModificatonStamp (preferenceFile .lastModified ());
59
+ }
60
+
61
+ private static void emptyPreferenceModificationStamp () {
62
+ ArduinoInstancePreferences .setStoredPreferenceModificatonStamp (-1 );
63
+ }
64
+
58
65
/**
59
66
* loops through all the projects and finds all board ID's then for each boardID it will create a arduino ide preference dump file
60
67
*/
@@ -133,10 +140,12 @@ public static boolean updateArduinoEnvironmentVariablesForAllProjectsIfNeeded()
133
140
if (newerBoardsAvailable ()) {
134
141
deleteAllDumpFiles ();
135
142
generateDumpFiles (null );
143
+ storePreferenceModificationStamp ();
136
144
return true ;
137
145
}
138
146
return false ;
139
147
}
148
+ emptyPreferenceModificationStamp ();
140
149
return deleteAllDumpFiles ();
141
150
142
151
}
Original file line number Diff line number Diff line change @@ -179,6 +179,9 @@ public boolean performOk() {
179
179
case "1.6.4" :
180
180
infoMessage = "Arduino IDE " + mArduinoIdeVersion .getStringValue () + " only works with Teensy." ;
181
181
break ;
182
+ case "1.6.5" :
183
+ infoMessage = "Arduino IDE " + mArduinoIdeVersion .getStringValue () + " is currently under test." ;
184
+ break ;
182
185
default :
183
186
infoMessage = "You are using a version of the Arduino IDE that is unknow or newer than available at the release of this plugin." ;
184
187
infoMessage += "\n If it is a newer version please feed back usage results to Jantje." ;
@@ -191,8 +194,10 @@ public boolean performOk() {
191
194
if (!showError (infoMessage )) {
192
195
return false ;
193
196
}
194
- ArduinoGetPreferences . updateArduinoEnvironmentVariablesForAllProjectsIfNeeded ();
197
+
195
198
super .performOk ();
199
+ mArduinoIdeVersion .store ();
200
+ ArduinoGetPreferences .updateArduinoEnvironmentVariablesForAllProjectsIfNeeded ();
196
201
setWorkSpacePathVariables ();
197
202
198
203
// reset the previous selected values
@@ -326,4 +331,10 @@ private boolean testStatus() {
326
331
return false ;
327
332
}
328
333
334
+ @ Override
335
+ protected void performApply () {
336
+ mIsDirty = true ;
337
+ super .performApply ();
338
+ }
339
+
329
340
}
You can’t perform that action at this time.
0 commit comments