import org.tizen.emulator.manager.vms.EmulatorVMList;
import org.tizen.emulator.manager.vms.ILauncher;
import org.tizen.emulator.manager.vms.VMProperty;
-import org.tizen.emulator.manager.vms.VMProperty.FSImageType;
import org.tizen.emulator.manager.vms.helper.HelperClass;
import org.tizen.emulator.manager.vms.helper.VMWorkerException;
import org.tizen.emulator.manager.vms.option.LaunchConfig;
public class ConsoleProcessor {
private EmulatorVMList vms = EmulatorVMList.getInstance();
- public VMProperty getProperty(String value) {
- return vms.getProperty(value);
+ public VMProperty getProperty(String name) {
+ ProfileList.settingVMPropertyList();
+ return vms.getProperty(name);
+ }
+
+ public VMProperty[] getProperties() {
+ vms.refreshProperties();
+ return vms.getProperties();
}
public String getAboutInfo() {
try {
str += String.format("%s" + StringResources.NEW_LINE, prop.getName());
str+= String.format("\t%-17s : %s" + StringResources.NEW_LINE, "ImageType",prop.getImageType());
- if (prop.getImageType() == FSImageType.standard) {
- str+= String.format("\t%-17s : %s" + StringResources.NEW_LINE, "Version" ,
- prop.getConfiguration().getBaseInformation().getDiskImage().getVersion());
- str+= String.format("\t%-17s : %s" + StringResources.NEW_LINE, "Image Version" ,
- prop.getConfiguration().getBaseInformation().getDiskImage().getBase());
- }
-
+ str+= String.format("\t%-17s : %s" + StringResources.NEW_LINE, "Platform", prop.getImagePlatform());
+ str+= String.format("\t%-17s : %s" + StringResources.NEW_LINE, "Profile", prop.getImageProfile());
+ str+= String.format("\t%-17s : %s" + StringResources.NEW_LINE, "Version", prop.getImageVersion());
+ str+= String.format("\t%-17s : %s" + StringResources.NEW_LINE, "Image Name" ,
+ prop.getConfiguration().getBaseInformation().getDiskImage().getBase());
str+= String.format("\t%-17s : %s" + StringResources.NEW_LINE, "Base Disk Image",
prop.getConfiguration().getBaseInformation().getDiskImage().getBaseDiskImage().getValue());
str+= String.format("\t%-17s : %s" + StringResources.NEW_LINE, "Child Disk Image",
}
public String getDetailInfoOfVM(String value) {
- VMProperty prop = vms.getProperty(value);
+ VMProperty prop = getProperty(value);
if (prop == null) {
// error
return "Error: The name (" + value + ") dose not exist in the VM list.";
public ArrayList<String> getInfoOfVMList(boolean isDetail) {
ArrayList<String> message = new ArrayList<String>();
- VMProperty[] properties = (VMProperty[])vms.getProperties();
+ VMProperty[] properties = (VMProperty[])getProperties();
if (properties.length == 0) {
// error
message.add("VM list is empty.");
}
public int getCountOfVMList() {
- return ((VMProperty[])vms.getProperties()).length;
+ return ((VMProperty[])getProperties()).length;
}
public ArrayList<String> getInfoOfImageList(boolean isDetail) {