2023-11-19 02:12:44 +03:00
|
|
|
package Visual_DVM_2021.Passes.All;
|
2024-10-09 23:37:58 +03:00
|
|
|
import Visual_DVM_2021.Passes.Pass;
|
2023-09-17 22:13:42 +03:00
|
|
|
|
|
|
|
|
import java.util.Vector;
|
2024-10-09 23:37:58 +03:00
|
|
|
public class ExtractRecipients extends Pass {
|
2023-09-17 22:13:42 +03:00
|
|
|
Vector<String> new_recipients = new Vector<>();
|
|
|
|
|
@Override
|
|
|
|
|
public boolean needsConfirmations() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public String getIconPath() {
|
|
|
|
|
return "/icons/LastOpened.png";
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public String getButtonText() {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected void body() throws Exception {
|
|
|
|
|
/*
|
|
|
|
|
new_recipients.clear();
|
|
|
|
|
for (BugReport bugReport : Global.componentsServer.db.bugReports.Data.values()) {
|
|
|
|
|
Vector<String> recipients = BugReportInterface.getRecipients(bugReport,false);
|
|
|
|
|
for (String email : recipients)
|
|
|
|
|
if (!Global.db.recipients.Data.containsKey(email)) {
|
|
|
|
|
Global.db.Insert(new DBRecipient("отредактируйте имя", email));
|
|
|
|
|
new_recipients.add(email);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected void showDone() throws Exception {
|
|
|
|
|
/*
|
|
|
|
|
Global.db.recipients.ShowUI();
|
|
|
|
|
String finalMessage = "Найдено " + new_recipients.size() + " новых адресатов.";
|
|
|
|
|
if (!new_recipients.isEmpty())
|
|
|
|
|
finalMessage += "\n" + String.join("\n", new_recipients);
|
|
|
|
|
UI.Info(finalMessage);
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
}
|