+ imageName + "-" + PlatformStringResources.TEMPLATE
+ "." + PlatformStringResources.CONFIG_EXTENSION);
+ if (!templateFile.exists()) {
+ // load standard-template file (x86-standard-template.xml)
+ templateFile = new File(platform.platformPath + File.separator
+ + FilePathResources.getPlatformTemplatePath()
+ + File.separator
+ + cpu + "-standard-" + PlatformStringResources.TEMPLATE
+ + "." + PlatformStringResources.CONFIG_EXTENSION);
+ }
+
if (templateFile.exists()) {
JAXBElement<ItemList> element = null;
try {
}
}
-
// load default
File propertyFile = new File(platform.platformPath + File.separator
+ FilePathResources.getPlatformTemplatePath()
+ File.separator
+ imageName + "." + PlatformStringResources.CONFIG_EXTENSION);
+
+ if (!propertyFile.exists()) {
+ // load standard-default file.(x86-standard.xml)
+ propertyFile = new File(platform.platformPath + File.separator
+ + FilePathResources.getPlatformTemplatePath()
+ + File.separator
+ + cpu + "-standard" + "." + PlatformStringResources.CONFIG_EXTENSION);
+ }
if (propertyFile.exists()) {
EmulatorVMList vmList = EmulatorVMList.getInstance();
defaultProperty = vmList.parseXML(propertyFile);
private TextDetailBox emptyView;
private void makeDetailView() {
emptyView = new TextDetailBox(this.getItemListComposite(),
- "Failed to load plug-in");
+ "Failed to load template");
infoItemList = new ArrayList<InfoViewItemList>();
ExtensionItem item = null;
ItemList template = image.getItemList();
if (template != null) {
templateList.add(template);
+ infoItemList.add(new InfoViewItemList(item, this.getItemListComposite(),
+ template, platform.getProfile(), image.getName(), false));
}
- infoItemList.add(new InfoViewItemList(item, this.getItemListComposite(),
- template, platform.getProfile(), image.getName(), false));
}
// add itemlist for custom.
if (templateList.size() > 0) {
infoItemList.add(new InfoViewItemList(item, this.getItemListComposite(),
templateList, platform.getProfile()));
} else {
- infoItemList.add(new InfoViewItemList(item, this.getItemListComposite(),
- null, platform.getProfile(), null, true));
+// infoItemList.add(new InfoViewItemList(item, this.getItemListComposite(),
+// null, platform.getProfile(), null, true));
}
}
}
private TextDetailBox emptyView;
private void makeModifyView() {
emptyView = new TextDetailBox(this.getItemListComposite(),
- "Failed to load plug-in");
+ "Failed to load template");
modifyItemList = new ArrayList<ModifyViewItemList>();
ExtensionItem item = null;
for (Platform platform : PlatformList.getPlatformList()) {
ItemList template = image.getItemList();
if (template != null) {
templateList.add(template);
+ modifyItemList.add(new ModifyViewItemList(item, this,
+ template, platform.getProfile(), image.getName(), false));
}
- modifyItemList.add(new ModifyViewItemList(item, this,
- template, platform.getProfile(), image.getName(), false));
}
// add itemlist for custom.
if (templateList.size() > 0) {
modifyItemList.add(new ModifyViewItemList(item, this,
templateList, platform.getProfile()));
} else {
- modifyItemList.add(new ModifyViewItemList(item, this, null, platform.getProfile(), null, true));
+// modifyItemList.add(new ModifyViewItemList(item, this, null, platform.getProfile(), null, true));
}
}
}