class FormEditorPresenter extends KieEditor<FormModelerContent> {

    public void onLockStatusChange(@Observes UpdatedLockStatusEvent updatedLockStatusEvent) {
        if (updatedLockStatusEvent.getFile().equals(versionRecordManager.getCurrentPath())) {
            if (updatedLockStatusEvent.isLocked() && !updatedLockStatusEvent.isLockedByCurrentUser()) {
                layoutEditor.lock();
            } else {
                layoutEditor.unlock();
            }
        }
    }

    @Inject public  FormEditorPresenter(FormEditorView view,
                               ChangesNotificationDisplayer changesNotificationDisplayer,
                               FormDefinitionResourceType resourceType,
                               Caller<FormEditorService> editorService,
                               TranslationService translationService,
                               ManagedInstance<EditorFieldLayoutComponent> editorFieldLayoutComponents,
                               ShowAssetUsagesDisplayer showAssetUsagesDisplayer,
                               ErrorMessageDisplayer errorMessageDisplayer,
                               LayoutEditorPropertiesPresenter layoutEditorPropertiesPresenter);

}