src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js
function () {
				if (!this._oSettingsDialog) {
					this._oSettingsDialog = new sap.ui.xmlfragment("sap.ui.documentation.sdk.view.appSettingsDialog", this);
					this._oView.addDependent(this._oSettingsDialog);
				}

				setTimeout(function () {
					var oAppSettings = this._oCore.getConfiguration(),
						oThemeSelect = this._oCore.byId("ThemeSelect"),
						sUriParamTheme = new UriParameters(window.location.href).get("sap-theme"),
						bDensityMode = this._oViewSettings.densityMode;

					// Theme select
					oThemeSelect.setSelectedKey(sUriParamTheme ? sUriParamTheme : oAppSettings.getTheme());

					// RTL
					this._oCore.byId("RTLSwitch").setState(oAppSettings.getRTL());

					// Density mode select
					this._oCore.byId("DensityModeSwitch").setSelectedKey(bDensityMode);
					this._oSettingsDialog.open();
				}.bind(this), 0);
			}
function () {
				if (!this._oSettingsDialog) {
					this._oSettingsDialog = new sap.ui.xmlfragment("sap.ui.documentation.sdk.view.appSettingsDialog", this);
					this._oView.addDependent(this._oSettingsDialog);
				}

				setTimeout(function () {
					var oAppSettings = this._oCore.getConfiguration(),
						oThemeSelect = this._oCore.byId("ThemeSelect"),
						sUriParamTheme = new UriParameters(window.location.href).get("sap-theme"),
						bDensityMode = this._oViewSettings.densityMode;

					// Theme select
					oThemeSelect.setSelectedKey(sUriParamTheme ? sUriParamTheme : oAppSettings.getTheme());

					// RTL
					this._oCore.byId("RTLSwitch").setState(oAppSettings.getRTL());

					// Density mode select
					this._oCore.byId("DensityModeSwitch").setSelectedKey(bDensityMode);
					this._oSettingsDialog.open();
				}.bind(this), 0);
			}
function ( ) { if ( ! this . _oSettingsDialog ) { this . _oSettingsDialog = new sap . ui . xmlfragment ( "sap.ui.documentation.sdk.view.appSettingsDialog" , this ) ; this . _oView . addDependent ( this . _oSettingsDialog ) ; } setTimeout ( function ( ) { var oAppSettings = this . _oCore . getConfiguration ( ) , oThemeSelect = this . _oCore . byId ( "ThemeSelect" ) , sUriParamTheme = new UriParameters ( window . location . href ) . get ( "sap-theme" ) , bDensityMode = this . _oViewSettings . densityMode ; // Theme select oThemeSelect . setSelectedKey ( sUriParamTheme ? sUriParamTheme : oAppSettings . getTheme ( ) ) ; // RTL this . _oCore . byId ( "RTLSwitch" ) . setState ( oAppSettings . getRTL ( ) ) ; // Density mode select this . _oCore . byId ( "DensityModeSwitch" ) . setSelectedKey ( bDensityMode ) ; this . _oSettingsDialog . open ( ) ; } . bind ( this ) , 0 ) ; }
Opens the View settings dialog
@public
Opens the View settings dialog