|
|
@ -120,7 +120,7 @@ public class InstallComponentAction extends UpdateAction { |
|
|
|
|
|
|
|
|
|
|
|
private boolean containRues(File[] chosenFiles) { |
|
|
|
private boolean containRues(File[] chosenFiles) { |
|
|
|
for (File file : chosenFiles) { |
|
|
|
for (File file : chosenFiles) { |
|
|
|
if (file.getName().endsWith(ReuxUtils.REUS_SUFFIX)) |
|
|
|
if (ReuxUtils.isReusFile(file)) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
return false; |
|
|
|
return false; |
|
|
@ -142,8 +142,7 @@ public class InstallComponentAction extends UpdateAction { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
ShareComponentUtils.checkReadMe(); |
|
|
|
ShareComponentUtils.checkReadMe(); |
|
|
|
boolean isReus = chosenFile.getName().endsWith(ReuxUtils.REUS_SUFFIX); |
|
|
|
return ReuxUtils.isReusFile(chosenFile) ? InstallUtils.installReusFile(chosenFile, installTime, failList) : InstallUtils.installReuFile(chosenFile, installTime, failList); |
|
|
|
return isReus ? InstallUtils.installReusFile(chosenFile, installTime, failList) : InstallUtils.installReuFile(chosenFile, installTime, failList); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static class InstallBackInfo { |
|
|
|
private static class InstallBackInfo { |
|
|
|