public void fireModeChanged() { final BrowserModel model = getModel(); if (model instanceof DefaultLiveEditBrowserModel) { this.liveEditView .getModel() .setLiveEditModeEnabled( ((DefaultLiveEditBrowserArea) model.getArea()).isLiveEditModeEnabled()); this.liveEditView.update(); } }
@Override public void setModel(final BrowserModel model) { if (model instanceof DefaultLiveEditBrowserModel) { final CMSSiteModel currentSite = ((DefaultLiveEditBrowserArea) model.getArea()).getCurrentSite(); if (currentSite != null) { ((DefaultLiveEditBrowserModel) model).setCurrentUrl(currentSite.getPreviewURL()); } } super.setModel(model); }