28
28
import org .eclipse .core .runtime .Status ;
29
29
30
30
import io .sloeber .core .Activator ;
31
+ import io .sloeber .core .common .Common ;
31
32
import io .sloeber .core .common .ConfigurationPreferences ;
32
33
import io .sloeber .core .common .Const ;
33
34
@@ -96,14 +97,14 @@ public String getSize() {
96
97
return this .size ;
97
98
}
98
99
99
- public List <Board > getBoards () throws CoreException {
100
+ public List <Board > getBoards () {
100
101
if (isInstalled () && this .boardsFile == null ) {
101
102
Properties boardProps = new Properties ();
102
103
try (Reader reader = new FileReader (getBoardsFile ())) {
103
104
boardProps .load (reader );
104
105
} catch (IOException e ) {
105
- throw new CoreException (
106
- new Status ( IStatus . ERROR , Activator . getId (), Messages . Platform_loading_boards , e )) ;
106
+ Common . log ( new Status ( IStatus . ERROR , Activator . getId (), Messages . Platform_loading_boards , e ));
107
+ return this . boards ;
107
108
}
108
109
109
110
this .boardsFile = new HierarchicalProperties (boardProps );
@@ -120,7 +121,7 @@ public List<Board> getBoards() throws CoreException {
120
121
return this .boards ;
121
122
}
122
123
123
- public Board getBoard (String boardName ) throws CoreException {
124
+ public Board getBoard (String boardName ) {
124
125
for (Board board : getBoards ()) {
125
126
if (boardName .equals (board .getName ())) {
126
127
return board ;
0 commit comments