Сделал сворачивание через меню настроек.

This commit is contained in:
2024-03-20 23:32:24 +03:00
parent 7bfb980d69
commit 34df30fcd5
17 changed files with 101 additions and 132 deletions

View File

@@ -1,6 +1,8 @@
package Visual_DVM_2021.Passes.All;
import Common.Current;
import Common.Global;
import Common.GlobalProperties;
import Common.UI.UI;
import Visual_DVM_2021.Passes.Pass_2021;
import java.lang.reflect.Field;
@@ -25,4 +27,38 @@ public class UpdateProperty extends Pass_2021<Object> {
field.set(Global.properties, newValue);
Global.properties.Update();
}
@Override
protected void showDone() throws Exception {
switch (name) {
case "collapseCredentials":
if ((boolean) newValue)
UI.getMainWindow().getTestingWindow().CollapseCredentials();
else
UI.getMainWindow().getTestingWindow().ExpandCredentials();
break;
case "collapseProjectTrees":
if (Current.HasProject()) {
if ((boolean) newValue)
UI.getMainWindow().getProjectWindow().CollapseProjectTrees();
else UI.getMainWindow().getProjectWindow().ExpandProjectTrees();
}
break;
case "collapseFileGraphs":
if (Current.HasFile()) {
if ((boolean) newValue)
Current.getFile().form.CollapseGraphs();
else
Current.getFile().form.ExpandGraphs();
}
break;
case "collapseFileMessages":
if (Current.HasFile()) {
if ((boolean) newValue)
Current.getFile().form.CollapseMessages();
else
Current.getFile().form.ExpandMessages();
}
break;
}
}
}