import java.util.List;
import org.eclipse.core.resources.IFile;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.tizen.webuibuilder.BuilderConstants;
import org.tizen.webuibuilder.model.app.AppManager;
import org.tizen.webuibuilder.model.nscreen.NScreenModel;
public class NScreenDescriptor {
+ Logger logger = LoggerFactory.getLogger(NScreenDescriptor.class);
+
private AppManager appManger = null;
private List<NScreenModel> list = null;
}
createCommonNscreen();
- //createOrientationNscreen();
- //createPixelRatioNscreen();
+ // createOrientationNscreen();
+ // createPixelRatioNscreen();
createDeviceNscreen();
}
}
public void createDeviceNscreen() {
- addNscreenModel("Wearable 320x320 (1:1)", NScreenType.RESOLUTION, null, 0, 320, 320);
- addNscreenModel("Wearable 360x480 (3:4)", NScreenType.RESOLUTION, null, 0, 360, 480);
- addNscreenModel("Wearable 480x360 (4:3)", NScreenType.RESOLUTION, null, 0, 480, 360);
- addNscreenModel("Mobile 320x480 (2:3)", NScreenType.RESOLUTION, null, 0, 320, 480);
- addNscreenModel("Mobile 480x320 (3:2)", NScreenType.RESOLUTION, null, 0, 480, 320);
- addNscreenModel("Mobile 360x640 (9:16)", NScreenType.RESOLUTION, null, 0, 720, 1280);
- addNscreenModel("Mobile 640x360 (16:9)", NScreenType.RESOLUTION, null, 0, 1280, 720);
- addNscreenModel("Mobile 800x1280 (10:16)", NScreenType.RESOLUTION, null, 0, 800, 1280);
- addNscreenModel("Mobile 1280x800 (16:10)", NScreenType.RESOLUTION, null, 0, 1280, 800);
+ if (BuilderConstants.PROFILE_WEARABLE_2_3.equalsIgnoreCase(appManger.getProjectManager()
+ .getPlatform())) {
+ addNscreenModel("Wearable 320x320 (1:1)", NScreenType.RESOLUTION, null, 0, 320, 320);
+ addNscreenModel("Wearable 360x480 (3:4)", NScreenType.RESOLUTION, null, 0, 360, 480);
+ addNscreenModel("Wearable 480x360 (4:3)", NScreenType.RESOLUTION, null, 0, 480, 360);
+
+ } else if (BuilderConstants.PROFILE_MOBILE_2_3.equalsIgnoreCase(appManger
+ .getProjectManager().getPlatform())) {
+ // addNscreenModel("Mobile 320x480 (2:3)", NScreenType.RESOLUTION, null, 0, 320, 480);
+ // addNscreenModel("Mobile 480x320 (3:2)", NScreenType.RESOLUTION, null, 0, 480, 320);
+
+ addNscreenModel("Mobile 360x640 (9:16)", NScreenType.RESOLUTION, null, 0, 720, 1280);
+ addNscreenModel("Mobile 640x360 (16:9)", NScreenType.RESOLUTION, null, 0, 1280, 720);
+ addNscreenModel("Mobile 800x1280 (10:16)", NScreenType.RESOLUTION, null, 0, 800, 1280);
+ addNscreenModel("Mobile 1280x800 (16:10)", NScreenType.RESOLUTION, null, 0, 1280, 800);
+
+ } else {
+ logger.info("Not support profile :" + appManger.getProjectManager().getPlatform());
+ }
}
public void addNscreenModel(String name, NScreenType type, Orientation orientation,
Package : web-ui-builder-eplugin
-Version :0.1.433
+Version :0.1.437
OS : ubuntu-32
Build-host-os : ubuntu-32
Maintainer : Hoon Kang <h245.kang@samsung.com>
Description :
Package : web-ui-builder-eplugin
-Version :0.1.433
+Version :0.1.437
OS : ubuntu-64
Build-host-os : ubuntu-64
Maintainer : Hoon Kang <h245.kang@samsung.com>
Description :
Package : web-ui-builder-eplugin
-Version :0.1.433
+Version :0.1.437
OS : windows-32
Build-host-os : ubuntu-32
Maintainer : Hoon Kang <h245.kang@samsung.com>
Description :
Package : web-ui-builder-eplugin
-Version :0.1.433
+Version :0.1.437
OS : windows-64
Build-host-os : ubuntu-64
Maintainer : Hoon Kang <h245.kang@samsung.com>
Description :
Package : web-ui-builder-eplugin
-Version :0.1.433
+Version :0.1.437
OS : macos-64
Build-host-os : ubuntu-64
Maintainer : Hoon Kang <h245.kang@samsung.com>