private boolean isSortTemplateList = false;
private DeviceTemplate defaultTemplate = null;
+ private boolean isSortBaseImageList = false;
+
public Profile(String name) {
this.name = name;
initLastCreatedPropertyPath();
}
public List<BaseImage> getImageList() {
+ if (!isSortBaseImageList) {
+ sortBaseImageList();
+ }
return imageList;
}
this.imageList = imageList;
}
+ public void clearBaseImageList() {
+ imageList.clear();
+ isSortBaseImageList = false;
+ }
+
public void sortPlatformList() {
isSortPlatformList = true;
PlatformPair[] pairs = new PlatformPair[platformList.size()];
}
public void sortBaseImageList() {
+ isSortBaseImageList = true;
ImagePair[] pairs = new ImagePair[imageList.size()];
for (int i = 0; i < imageList.size(); i++) {
pairs[i] = new ImagePair(imageList.get(i));
settingDeviceTemplateListInternal(true);
}
+ public static void reloadingBaseImageList() {
+ for (Profile profile : profileList) {
+ profile.clearBaseImageList();
+ }
+
+ for (Profile profile : profileList) {
+ for (Platform platform : profile.getPlatformList()) {
+ ProfileList.makeBaesImageList(profile, platform, platform.getPlatformPath());
+ }
+ }
+
+ ProfileList.makeCustomBaseImageList();
+
+ ProfileList.settingVMPropertyListInternal();
+ }
+
private static void initProfileList() {
File platforms = new File(FilePathResources.getPlatformsPath());
if (!platforms.exists() || !platforms.isDirectory()) {