удаление отладочной печати сравнения и не только
This commit is contained in:
@@ -23,16 +23,13 @@ public class InstallComponentFromFolder extends CurrentComponentPass {
|
||||
if (super.canStart(args)){
|
||||
VFileChooser fileChooser = target.getFileChooser();
|
||||
String propertyName = target.getComponentType()+"Path";
|
||||
System.out.println(propertyName);
|
||||
String lastDirectory = (String) GlobalProperties.class.getField(propertyName).get(Global.properties);
|
||||
System.out.println("last directory = "+ Utils.Brackets(lastDirectory));
|
||||
if (!lastDirectory.isEmpty()){
|
||||
//настройка выставлена не впервые, устанавливаем ее как папку
|
||||
fileChooser.SetCurrentDirectory(lastDirectory);
|
||||
}
|
||||
boolean res = (file = fileChooser.ShowDialog()) != null;
|
||||
File newDirectory = fileChooser.getCurrentDirectory();
|
||||
System.out.println("new directory = "+newDirectory.getAbsolutePath());
|
||||
GlobalProperties.class.getField(propertyName).set(Global.properties, newDirectory.getAbsolutePath());
|
||||
Global.properties.Update();
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user