<core:FragmentDefinition
	xmlns="sap.m"
	xmlns:editor="sap.ui.codeeditor"
	xmlns:core="sap.ui.core"
>
	<Dialog
		contentWidth="700px"
		contentHeight="100%"
		verticalScrolling="false"
		resizable="true"
		draggable="true"
	>
		<customHeader>
			<Bar>
				<contentLeft>
					<Button
						icon="sap-icon://syntax"
						tooltip="{i18n>BASE_EDITOR.JSON.BEAUTIFY}"
						press="onBeautify"
					/>
				</contentLeft>
				<contentMiddle>
					<Title
						text="{i18n>BASE_EDITOR.CODE.TITLE}"
						level="H1"
					/>
				</contentMiddle>
			</Bar>
		</customHeader>
		<content>
			<editor:CodeEditor
				type="{= ${config/codeType} !== undefined ? ${config/codeType} : 'json'}"
			/>
		</content>
		<beginButton>
			<Button
				text="{i18n>BASE_EDITOR.CODE.OK}"
				type="Emphasized"
				press="onSave"
			/>
		</beginButton>
		<endButton>
			<Button
				text="{i18n>BASE_EDITOR.CODE.CANCEL}"
				press="onClose"
			/>
		</endButton>
	</Dialog>
</core:FragmentDefinition>