no message

This commit is contained in:
2024-10-14 12:14:01 +03:00
parent 3a29898d5f
commit 452c4c7268
466 changed files with 1255 additions and 1100 deletions

View File

@@ -0,0 +1,55 @@
package _VisualDVM.Passes.All;
import Common.Utils.Utils_;
import _VisualDVM.Visual.UI;
import _VisualDVM.ProjectData.Files.DBProjectFile;
import _VisualDVM.Passes.Sapfor.SapforAnalysis;
public class SPF_GetFileLineInfo extends SapforAnalysis {
@Override
public String phase() {
return "FILE_LINE_INFO";
}
@Override
public void performPreparation() throws Exception {
super.performPreparation(); //удаление интеррупта.
target.numLines = 0;
target.numSPF = 0;
target.numDVM = 0;
}
@Override
protected void showPreparation() throws Exception {
UI.getMainWindow().getProjectWindow().getAnalysisWindow().ShowNoMetrics();
}
@Override
protected void unpack(String packed) throws Exception {
//----------------------------------------
String[] data_ = packed.split("@");
DBProjectFile file_ = null;
for (int i = 0; i < data_.length; ++i) {
String s = data_[i];
if (i % 2 == 0) {
file_ = target.db.files.Data.get(Utils_.toW(s));
} else {
String[] local = s.split("_");
int num = Integer.parseInt(local[0]);
target.numSPF += Integer.parseInt(local[1]);
target.numDVM += Integer.parseInt(local[2]);
if (file_ != null)
file_.lines_count = num;
target.numLines += num;
}
}
target.UpdateDVMCount();
target.UpdateSPFCount();
target.UpdateLinesCount();
}
@Override
protected void showDone() throws Exception {
UI.getMainWindow().getProjectWindow().getAnalysisWindow().ShowMetrics();
super.showDone();
}
@Override
protected void FocusResult() {
super.FocusResult();
UI.getMainWindow().getProjectWindow().FocusAnalysis();
}
}