NScreenUtil.nscreen_log("current page css : "
+ pageData.getCurrentCssFile().getCssFilePath());
- getViewer().updateStyle();
+ if (getViewer() != null) {
+ getViewer().updateStyle();
+ }
}
protected void clearSelectorsOfRootPart() {
rootPart.clearAllSelector();
- // CssFile currentCssFile = pageData.getCurrentCssFile();
- // Collection<CssSelector> selectors = rootPart.getSelectors();
- // for (CssSelector selector : currentCssFile.getSelectors()) {
- // String pageId = selector.getPageId();
- // Part pagePart = rootPart.getChildOfIdPropertyValue(pageId, true);
- // if (pagePart != null) {
- // String partId = selector.getPartId();
- // Part part = rootPart.getChildOfIdPropertyValue(partId, true);
- // if (part != null) {
- // part.removeSelector(selector.getSelectorName(), false);
- // }
- // }
- // }
}
private DescriptorManager getDescriptorManager() {
}
nscreen = new NScreenHistory();
nscreen.setLastResolution(device.getDisplayName());
+ nscreen.setModelName(BuilderConstants.NSCREENCOMMON);
nscreen.setScale(1f);
currentScreen = resolution.getScreenSize(device.getDisplayName());
screenSizeText.setText(currentScreen.getScreenSize());
+ mainEditor.setNscreenIndex2(device, nscreen);
}
public void setResolution(List<Device> devices, NScreenItem nsItem) {