@@ -97,16 +97,17 @@ public void updateIndex() throws Exception {
97
97
rescanLibraryIndex (progress );
98
98
}
99
99
100
- public void install (ContributedLibrary lib , ContributedLibrary replacedLib ) throws Exception {
100
+ public void install (ContributedLibrary lib , ContributedLibrary replacedLib ) {
101
101
if (lib .isInstalled ()) {
102
- throw new Exception (_ ("Library is already installed!" ));
102
+ System .out .println (_ ("Library is already installed: \" " + lib .getName () + "\" " ));
103
+ return ;
103
104
}
104
105
105
106
final MultiStepProgress progress = new MultiStepProgress (3 );
106
107
107
108
// Step 1: Download library
108
109
try {
109
- downloader .download (lib , progress , _ ("Downloading library. " ));
110
+ downloader .download (lib , progress , _ ("Downloading library: \" " + lib . getName () + " \" " ));
110
111
} catch (InterruptedException e ) {
111
112
// Download interrupted... just exit
112
113
return ;
@@ -117,7 +118,7 @@ public void install(ContributedLibrary lib, ContributedLibrary replacedLib) thro
117
118
// all the temporary folders and abort installation.
118
119
119
120
// Step 2: Unpack library on the correct location
120
- progress .setStatus (_ ("Installing library... " ));
121
+ progress .setStatus (_ ("Installing library: \" " + lib . getName () + " \" " ));
121
122
onProgress (progress );
122
123
File libsFolder = indexer .getSketchbookLibrariesFolder ();
123
124
File tmpFolder = FileUtils .createTempFolderIn (libsFolder );
@@ -148,7 +149,7 @@ public void remove(ContributedLibrary lib) throws IOException {
148
149
final MultiStepProgress progress = new MultiStepProgress (2 );
149
150
150
151
// Step 1: Remove library
151
- progress .setStatus (_ ("Removing library... " ));
152
+ progress .setStatus (_ ("Removing library: \" " + lib . getName () + " \" " ));
152
153
onProgress (progress );
153
154
FileUtils .recursiveDelete (lib .getInstalledFolder ());
154
155
progress .stepDone ();
0 commit comments