|
|
@ -32,6 +32,9 @@ public class ProjectManager {
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
this.path = new File(System.getProperty("user.home"), "project");
|
|
|
|
this.path = new File(System.getProperty("user.home"), "project");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!path.exists()) {
|
|
|
|
|
|
|
|
path.mkdirs();
|
|
|
|
|
|
|
|
}
|
|
|
|
invalidate();
|
|
|
|
invalidate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -275,8 +278,8 @@ public class ProjectManager {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void run() {
|
|
|
|
public void run() {
|
|
|
|
boolean mkdirs = sdk.mkdirs();
|
|
|
|
boolean mkdirs = sdk.mkdirs();
|
|
|
|
File reqList = new File(module,"req");
|
|
|
|
File reqList = new File(module, "req");
|
|
|
|
File rspList = new File(module,"rsp");
|
|
|
|
File rspList = new File(module, "rsp");
|
|
|
|
File entList = new File(module, "ent");
|
|
|
|
File entList = new File(module, "ent");
|
|
|
|
File enumsList = new File(module, "enums");
|
|
|
|
File enumsList = new File(module, "enums");
|
|
|
|
SDKCallable sdkCallable = new SDKCallable(sdk, reqList, rspList, entList, enumsList, apis);
|
|
|
|
SDKCallable sdkCallable = new SDKCallable(sdk, reqList, rspList, entList, enumsList, apis);
|
|
|
@ -357,7 +360,7 @@ public class ProjectManager {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
if (files.length == 0) {
|
|
|
|
if (files == null || files.length == 0) {
|
|
|
|
project = xmlService.inflate(null);
|
|
|
|
project = xmlService.inflate(null);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
project = xmlService.inflate(files[0]);
|
|
|
|
project = xmlService.inflate(files[0]);
|
|
|
|