public long initLayout() {
imageRegistry = ImageRegistry.getInstance();
- if (skinInfo.isPhoneShape() == true) { /* phone shape skin */
+ if (skinInfo.isGeneralPurposeSkin() == false) {
skinComposer = new PhoneShapeSkinComposer(config, this,
shell, currentState, imageRegistry, communicator);
config.saveSkinProperties();
/* close the Key Window */
- if (skinInfo.isPhoneShape() == false) {
- closeKeyWindow();
- }
+ closeKeyWindow();
/* dispose the color */
if (colorVM != null) {
logger.info("skin info:" + skinInfoProperties); //TODO:
}
- boolean skinPhoneShape = true;
String skinInfoResolutionW =
skinInfoProperties.getProperty(SkinInfoConstants.RESOLUTION_WIDTH);
String skinInfoResolutionH =
skinInfoProperties.getProperty(SkinInfoConstants.RESOLUTION_HEIGHT);
+ boolean isGeneralSkin = false;
if (skinInfoResolutionW.equalsIgnoreCase("all") ||
skinInfoResolutionH.equalsIgnoreCase("all")) {
- skinPhoneShape = false;
+ isGeneralSkin = true;
}
SkinInformation skinInfo = new SkinInformation(
- skinInfoProperties.getProperty(SkinInfoConstants.SKIN_NAME), skinPhoneShape);
+ skinInfoProperties.getProperty(SkinInfoConstants.SKIN_NAME), isGeneralSkin);
/* set emulator window skin property */
String skinPropFilePath = vmPath + File.separator + SKIN_PROPERTIES_FILE_NAME;
import java.util.logging.Logger;
import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.program.Program;
-import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
/**
*
*
- * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (C) 2011 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
*
* Contact:
* GiWoong Kim <giwoong.kim@samsung.com>
*/
public class SkinInformation {
private String skinName;
- private boolean skinPhoneShape;
+ private boolean isGeneralSkin;
private int skinOption;
- public SkinInformation(String skinName, boolean skinPhoneShape) {
+ public SkinInformation(String skinName, boolean isGeneralSkin) {
this.skinName = skinName;
- this.skinPhoneShape = skinPhoneShape;
+ this.isGeneralSkin = isGeneralSkin;
this.skinOption = 0;
}
return skinName;
}
- public boolean isPhoneShape() {
- return skinPhoneShape;
+ public boolean isGeneralPurposeSkin() {
+ return isGeneralSkin;
}
public int getSkinOption() {
import org.tizen.emulator.skin.EmulatorSkin;
import org.tizen.emulator.skin.EmulatorSkinState;
import org.tizen.emulator.skin.comm.ICommunicator.RotationInfo;
-import org.tizen.emulator.skin.comm.ICommunicator.SendCommand;
-import org.tizen.emulator.skin.comm.sock.data.DisplayStateData;
import org.tizen.emulator.skin.config.EmulatorConfig;
import org.tizen.emulator.skin.config.EmulatorConfig.ArgsConstants;
import org.tizen.emulator.skin.config.EmulatorConfig.SkinPropertiesConstants;
currentState.getCurrentResolutionHeight(), scale, rotationId);
if (displayBounds == null) {
- logger.severe("Failed to lcd information for phone shape skin.");
+ logger.severe("Failed to read display information for skin.");
SkinUtil.openMessage(shell, null,
- "Failed to read lcd information for phone shape skin.\n" +
+ "Failed to read display information for skin.\n" +
"Check the contents of skin dbi file.",
SWT.ICON_ERROR, config);
System.exit(-1);
currentState.getCurrentResolutionHeight(), scale, rotationId);
if (lcdBounds == null) {
- logger.severe("Failed to lcd information for phone shape skin.");
+ logger.severe("Failed to read display information for skin.");
SkinUtil.openMessage(shell, null,
- "Failed to read lcd information for phone shape skin.\n" +
+ "Failed to read display information for skin.\n" +
"Check the contents of skin dbi file.",
SWT.ICON_ERROR, config);
System.exit(-1);