упорядочил папки с кодом.

This commit is contained in:
2023-11-19 01:53:56 +03:00
parent 4883b4af51
commit 44c6daffa3
596 changed files with 2140 additions and 1569 deletions

View File

@@ -0,0 +1,48 @@
package Common.Passes.All;
import Common.Global;
import Repository.ComponentsServer.Component.Component;
import Common.Passes.PassCode_2021;
import Common.Passes.Pass_2021;
import java.util.Vector;
public class UpdateSelectedComponents extends Pass_2021<Vector<Component>> {
@Override
public String getIconPath() {
return "/icons/Update.png";
}
@Override
public String getButtonText() {
return "";
}
@Override
public boolean needsConfirmations() {
return true;
}
@Override
protected boolean canStart(Object... args) throws Exception {
target = new Vector<>();
//------------------------
if (Global.Components.getCheckedCount() == 0) {
Log.Writeln_("Не отмечено ни одного компонента!");
return false;
}
target = Global.Components.getCheckedItems();
return true;
}
@Override
public String getStartDescription() {
Vector<String> question = new Vector<>();
question.add("Обновить компоненты");
for (Component component : Global.Components.getCheckedItems()) {
question.add(component.getComponentType().getDescription());
}
return String.join("\n", question);
}
@Override
protected void body() throws Exception {
for (Component component : target) {
Global.Components.ui_.Select(component.getPK());
passes.get(PassCode_2021.UpdateComponent).Do();
}
}
}