no message
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user