35
35
import cc .arduino .contributions .packages .ContributionInstaller ;
36
36
import cc .arduino .contributions .packages .filters .UpdatablePlatformPredicate ;
37
37
import cc .arduino .view .NotificationPopup ;
38
+ import com .sun .javafx .binding .Logging ;
38
39
import processing .app .*;
39
40
40
41
import javax .swing .*;
@@ -85,6 +86,10 @@ public void run() {
85
86
final String text ;
86
87
final String button1Name ;
87
88
final String button2Name ;
89
+ final String boardsButtonName = tr ("Boards" );
90
+ final String librariesButtonName = tr ("Libraries" );
91
+
92
+ // default to no anchors
88
93
String openAnchor1 = "" ;
89
94
String closeAnchor1 = "" ;
90
95
String openAnchor2 = "" ;
@@ -93,7 +98,7 @@ public void run() {
93
98
if (updatableLibraries && !updatablePlatforms ) {
94
99
if (setAccessible ) {
95
100
button1Name = null ;
96
- button2Name = tr ( "libraries" ) ;
101
+ button2Name = librariesButtonName ;
97
102
}
98
103
else {
99
104
button1Name = null ;
@@ -104,7 +109,7 @@ public void run() {
104
109
text = I18n .format (tr ("Updates available for some of your {0}libraries{1}" ), openAnchor1 , closeAnchor1 );
105
110
} else if (!updatableLibraries && updatablePlatforms ) {
106
111
if (setAccessible ) {
107
- button1Name = tr ( "boards" ) ;
112
+ button1Name = boardsButtonName ;
108
113
button2Name = null ;
109
114
}
110
115
else {
@@ -116,8 +121,8 @@ public void run() {
116
121
text = I18n .format (tr ("Updates available for some of your {0}boards{1}" ), openAnchor1 , closeAnchor1 );
117
122
} else {
118
123
if (setAccessible ) {
119
- button1Name = tr ( "boards" ) ;
120
- button2Name = tr ( "libraries" ) ;
124
+ button1Name = boardsButtonName ;
125
+ button2Name = librariesButtonName ;
121
126
}
122
127
else {
123
128
button1Name = null ;
@@ -173,6 +178,7 @@ private void goToManager(String link) {
173
178
((UpdatableBoardsLibsFakeURLsHandler ) hyperlinkListener ).openBoardLibManager (new URL (link ));
174
179
}
175
180
catch (Exception e ){
181
+ Logging .getLogger ().warning ("Exception while attempting to go to board manager" , e );
176
182
}
177
183
}
178
184
// callback for boards button
0 commit comments