2023-11-19 02:12:44 +03:00
|
|
|
package Visual_DVM_2021.Passes;
|
2024-10-07 00:58:29 +03:00
|
|
|
import Common_old.Current;
|
|
|
|
|
import Common_old.UI.UI;
|
2023-09-17 22:13:42 +03:00
|
|
|
public class SapforPass extends SilentSapforPass {
|
|
|
|
|
//отличается наличием журнала и сообщений
|
|
|
|
|
@Override
|
|
|
|
|
protected void performFinish() throws Exception {
|
|
|
|
|
target.db.BeginTransaction();
|
2023-11-01 19:06:07 +03:00
|
|
|
try {
|
|
|
|
|
unpackMessages();
|
2023-11-26 16:11:17 +03:00
|
|
|
} catch (PassException ex) {
|
2023-11-01 19:06:07 +03:00
|
|
|
Log.Writeln_(ex.getMessage());
|
|
|
|
|
}
|
2023-09-17 22:13:42 +03:00
|
|
|
target.db.Commit();
|
|
|
|
|
}
|
|
|
|
|
protected void unpackMessages() throws Exception {
|
|
|
|
|
target.unpackMessagesAndLog(sapfor.getOutputMessage(), sapfor.getOutput());
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected void showFinish() throws Exception {
|
|
|
|
|
UI.getMainWindow().getProjectWindow().RefreshProjectTreeAndMessages();
|
|
|
|
|
UI.getMainWindow().getProjectWindow().ShowProjectSapforLog();
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public void Interrupt() throws Exception {
|
2023-11-26 16:11:17 +03:00
|
|
|
// target.CreateInterruptFile();
|
|
|
|
|
Current.getSapfor().Interrupt();
|
2023-09-17 22:13:42 +03:00
|
|
|
}
|
|
|
|
|
}
|