[Desc.] make disable file sharing to the mac and change checking running emulator routine in the modify function.
[Issue] N_SE-13129
+*1.3.52
+- make disable file sharing to the mac os.
+- change checking running emulator in the modify function.(N_SE-13129)
+- change running parameter when start emulator for the arm image.
+== 김지혜 <jihye1128.kim@samsung.com> 2012-11-05
+
*1.3.51
- modify select skin routine.
- add resolution : 320x480, 1280x800, 1920x1080, 2560x1600
Source: emulator-manager
-Version: 1.3.51
+Version: 1.3.52
Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
Package: emulator-manager
private static boolean isInhoseMode = true;
private static RandomAccessFile randomAccessFile;
+ private static boolean isMac = false;
+ {
+ if (System.getProperty("os.name").toLowerCase().indexOf("mac") > -1) {
+ isMac = true;
+ }
+ }
public static EmulatorManager getInstance() {
return instance;
}
}
+ public static boolean isMac() {
+ return isMac;
+ }
+
public enum ManagerModeType {
PUBLIC_MODE("public"),
INHOUSE_MODE("inhouse");
// VMsProperty View
public final static String SUPPORTED = "Supported";
public final static String NOT_SUPPORTED = "Not supported";
+
+ public final static String None = "( None )";
// key type
public final static String ONE_KEY = "1key";
public final static String THREE_KEYS = "3keys";
public void widgetSelected(SelectionEvent e) {
String type = leftButton.getText();
if (type.equals(StringResource.MODIFY)) {
- MessageDialog msg = new MessageDialog();
VMsProperty property = detailView.getCurrentPoperty();
- if(property.getWorker().isRunningNow()) {
- msg.openInfoDialog("Not allowed to modify active VMs\n" + "[" + property.getName() + "] is running now...");
- return;
- }
openModifyView(property);
} else if (type.equals(StringResource.CREATE)) {
openCreateView();
}
public void openModifyView(VMsProperty property) {
+ MessageDialog msg = new MessageDialog();
+ if(property.getWorker().isRunningNow()) {
+ msg.openInfoDialog("Not allowed to modify active VMs\n" + "[" + property.getName() + "] is running now...");
+ return;
+ }
+
setToolBarState(State.FALSE);
leftButton.setText(StringResource.CANCEL);
}
public String getValue(VMPropertyValue value) {
- return value.isFileShareSupport
+ return value.isFileShareSupport && !EmulatorManager.isMac()
? StringResource.SUPPORTED : StringResource.NOT_SUPPORTED;
}
VMCreateHelper helper = new VMCreateHelper();
shareTypeCombo = helper.makeCombo(table);
helper.addComboItem(shareTypeCombo, SupportType.getInstance().getList());
- shareTypeCombo.select(oldIsSupport == true ? 0 : 1);
+ shareTypeCombo.select(oldIsSupport == true && !EmulatorManager.isMac() ? 0 : 1);
+
+ if (EmulatorManager.isMac()) {
+ shareTypeCombo.setEnabled(false);
+ }
+
return true;
}
}
public String getValue(VMPropertyValue value) {
- return value.fileSharePathName;
+ if (EmulatorManager.isMac()) {
+ return StringResource.None;
+ } else {
+ return value.fileSharePathName;
+ }
}
public void setValue(VMPropertyValue value) {
shareFolderButton = new Button(table, SWT.PUSH);
shareFolderButton.setImage(image);
- shareFolderButton.setText(oldPathName);
- shareFolderButton.setEnabled(value.isFileShareSupport);
+
+ if (EmulatorManager.isMac()) {
+ shareFolderButton.setText(StringResource.None);
+ shareFolderButton.setEnabled(false);
+ } else {
+ shareFolderButton.setText(oldPathName);
+ shareFolderButton.setEnabled(value.isFileShareSupport);
+
+ }
return true;
}
cmd.add("-device");
cmd.add("virtio-net,netdev=virtio-net,transport=virtio-mmio.1");
cmd.add("-append");
- cmd.add("yagl= 0 console=ttySAC2,115200 video=s3cfb:"
+ cmd.add("yagl= 1 console=ttySAC2,115200 video=s3cfb:"
+ width
+ "x"
+ height
import org.tizen.emulator.manager.image.Skin;
import org.tizen.emulator.manager.logging.EMLogger;
import org.tizen.emulator.manager.tool.CheckVirtualization;
+import org.tizen.emulator.manager.tool.StringResource;
import org.tizen.emulator.manager.vms.xml.DisplayType.Resolution;
import org.tizen.emulator.manager.vms.xml.TouchType;
(fileSharePath.lastIndexOf(File.separator) + 1, fileSharePath.length());
} else {
fileSharePath = "";
- fileSharePathName = "( None )";
+ fileSharePathName = StringResource.None;
}
ramSize = property.getConfiguration().getDevice().getRAM().getSize().getValue();
isFileShareSupport = false;
fileSharePath = "";
- fileSharePathName = "( None )";
+ fileSharePathName = StringResource.None;
isHWVirtualization = CheckVirtualization.getInstance().isSupportVirtualization();
isGLAcceleration = true;
archType = isStandard ? template.getArch().toString() : "x86";
baseImagePath = "";
- baseImagePathName = isStandard ? (archType.equals("x86") ? "( emulimg-2.0.x86 )" : "( emulimg-2.0.arm )") : " ( None )";
+ baseImagePathName = isStandard ? (archType.equals("x86") ? "( emulimg-2.0.x86 )" : "( emulimg-2.0.arm )") : StringResource.None;
settingConfigure(template);
}