class FormEditorPresenter extends KieEditor<FormModelerContent> {

    @PreDestroy
    public void destroy() {
        if (Objects.equals(FormEditorContext.getActiveEditorHelper(), editorHelper)) {
            FormEditorContext.setActiveEditorHelper(null);
        }
        editorFieldLayoutComponents.destroyAll();
    }

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

}