no message

This commit is contained in:
2024-10-14 15:19:13 +03:00
parent 8eef367bd4
commit 5e09fb44ea
634 changed files with 3751 additions and 3263 deletions

View File

@@ -1,7 +1,7 @@
package _VisualDVM.Passes.All;
import Common.Visual.Windows.Dialog.VFileChooser;
import _VisualDVM.Global;
import _VisualDVM.GlobalProperties;
import Common.Visual.Windows.Dialog.VFileChooser;
import _VisualDVM.Passes.CurrentComponentPass;
import java.io.File;
@@ -19,11 +19,11 @@ public class InstallComponentFromFolder extends CurrentComponentPass {
}
@Override
protected boolean canStart(Object... args) throws Exception {
if (super.canStart(args)){
if (super.canStart(args)) {
VFileChooser fileChooser = target.getFileChooser();
String propertyName = target.getComponentType()+"Path";
String propertyName = target.getComponentType() + "Path";
String lastDirectory = (String) GlobalProperties.class.getField(propertyName).get(Global.properties);
if (!lastDirectory.isEmpty()){
if (!lastDirectory.isEmpty()) {
//настройка выставлена не впервые, устанавливаем ее как папку
fileChooser.SetCurrentDirectory(lastDirectory);
}