} else {
prop.skinPath = null;
}
+ } else { // resolutionCommon == null and skinComman == null
+ ArrayList<Skin> list = null;
+ list = prop.baseImage.getPlatform().findGeneralSkinList();
+ if (list != null && !list.isEmpty()) {
+ prop.skin = list.get(0);
+ return;
+ }
+ list = prop.baseImage.getPlatform().getSkins();
+ if (list != null && !list.isEmpty()) {
+ prop.skin = list.get(0);
+ return;
+ }
}
}
}
import org.tizen.emulator.manager.resources.FilePathResources;
import org.tizen.emulator.manager.resources.StringResources;
import org.tizen.emulator.manager.tool.About;
-import org.tizen.emulator.manager.vms.EmulatorVMList;
import org.tizen.emulator.manager.vms.VMProperty;
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 name) {
- ProfileList.settingVMPropertyList();
- return vms.getProperty(name);
+ ArrayList<VMProperty> properties = null;
+ public ConsoleProcessor() {
+ properties = (ArrayList<VMProperty>) ProfileList.getTotalProfile().getEmulatorList();
+ if (properties == null) {
+ properties = new ArrayList<VMProperty>();
+ }
}
- public VMProperty[] getProperties() {
- vms.refreshProperties();
- return vms.getProperties();
+ public VMProperty getProperty(String name) {
+ for (VMProperty prop: properties) {
+ if (name.equals(prop.getName())) {
+ return prop;
+ }
+ }
+ return null;
}
public String getAboutInfo() {
public ArrayList<String> getInfoOfVMList(boolean isDetail) {
ArrayList<String> message = new ArrayList<String>();
- VMProperty[] properties = (VMProperty[])getProperties();
- if (properties.length == 0) {
+ if (properties.isEmpty()) {
// error
message.add("VM list is empty.");
} else {
}
public int getCountOfVMList() {
- return ((VMProperty[])getProperties()).length;
+ return properties.size();
}
public ArrayList<String> getInfoOfImageList(boolean isDetail) {