Files
VisualSapfor/src/_VisualDVM/Passes/All/ExtractRecipients.java

44 lines
1.4 KiB
Java
Raw Normal View History

2024-10-14 12:14:01 +03:00
package _VisualDVM.Passes.All;
2024-10-10 23:57:36 +03:00
import Common.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);
*/
}
}