no message
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.Utils;
|
||||
import _VisualDVM.ProjectData.Project.db_project_info;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import Visual_DVM_2021.Passes.Pass_2021;
|
||||
public class DeleteVersion extends Pass_2021<db_project_info> {
|
||||
import Visual_DVM_2021.Passes.PassCode;
|
||||
import Visual_DVM_2021.Passes.Pass;
|
||||
public class DeleteVersion extends Pass<db_project_info> {
|
||||
db_project_info parent;
|
||||
boolean current;
|
||||
@Override
|
||||
@@ -38,7 +38,7 @@ public class DeleteVersion extends Pass_2021<db_project_info> {
|
||||
target.parent.checkLastModification(target);
|
||||
if (Current.HasProject()) {
|
||||
if ((Current.getProject().Home.getAbsolutePath().startsWith(target.Home.getAbsolutePath())))
|
||||
passes.get(PassCode_2021.CloseCurrentProject).Do();
|
||||
passes.get(PassCode.CloseCurrentProject).Do();
|
||||
}
|
||||
if (CommonUI.isActive()) {
|
||||
UI.getVersionsWindow().RemoveVersionFromComparison(target);
|
||||
@@ -52,11 +52,11 @@ public class DeleteVersion extends Pass_2021<db_project_info> {
|
||||
protected void performDone() throws Exception {
|
||||
parent = target.parent;
|
||||
if (current)
|
||||
CurrentAnchestor.set(Current.Version, null);
|
||||
Current_.set(Current.Version, null);
|
||||
if (parent != null) {
|
||||
UI.getVersionsWindow().getVersionsForm().getTree().RemoveNode(target.node);
|
||||
parent.versions.remove(target.name);
|
||||
} else
|
||||
CurrentAnchestor.set(Current.Root, null);
|
||||
Current_.set(Current.Root, null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user