isAvailablePath = true;
}
if (isAvailablePath == true) {
- File strFile = new File(strDir + File.separator + Config.SDK_DIRECTORY);
+ File strFile = new File(strDir);
setTextStyle(installDirectoryText, strFile.getAbsolutePath());
setAvailableSpace(strDir);
spaceRequiredLabel.setText("Download size : " + convertToVolumeSize(requiredSize)
public void mouseDown(MouseEvent e) {
String strDir = showSettingSDKWorkSpacePathDlg();
if (strDir != null) {
- File strFile = new File(strDir + File.separator + Config.CONFIG_DIRECTORY_NAME);
+ File strFile = new File(strDir);
setTextStyle(sdkDataText, strFile.getAbsolutePath());
}
}
}
} else if (sdkLabel == SDKLABEL.DATAPATH) {
File dataPath = new File(path);
- if (dataPath.exists()) {
+ File[] children = dataPath.listFiles();
+ if (children.length != 0) {
return false;
} else {
return true;